/*!
Theme Name: sicurezza
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sicurezza
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

sicurezza is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --navy:  #27303f;
    --clay:  #cf8b76;
    --clay-light: #e4b09e;
    --clay-dark:  #b3705c;
    --cream: #f7f3ef;
    --white: #ffffff;
    --text:  #3a3a3a;
    --muted: #7a7a7a;
    --border: rgba(39,48,63,.12);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--cream);
    color: var(--text);
    overflow-x: hidden;
  }

  /* ─── NAVBAR ─── */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5vw;
    height: auto
    background: rgba(39,48,63,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(207,139,118,.2);
    transition: background .3s;
  }
  .nav-logo {
    display: flex; align-items: center; gap: 12px; text-decoration: none; padding: 0.7em;
  }
  
  .nav-links { display: flex; gap: 36px; list-style: none; }
  .nav-links a {
    font-size: 11px; font-weight: 500; letter-spacing: 1.8px;
    text-transform: uppercase; color: rgba(255,255,255,.7);
    text-decoration: none; position: relative; transition: color .25s;
  }
  .nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
    height: 1px; background: var(--clay);
    transform: scaleX(0); transform-origin: left; transition: transform .25s;
  }
  .nav-links a:hover { color: var(--white); }
  .nav-links a:hover::after { transform: scaleX(1); }
  .nav-cta {
    background: var(--clay); color: var(--white) !important;
    padding: 8px 20px; border-radius: 2px;
  }
  .nav-cta::after { display: none !important; }
  .nav-cta:hover { background: var(--clay-dark); }
  .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
  .hamburger span { width: 24px; height: 1.5px; background: var(--white); transition: .3s; }

  /* ─── HERO / BANNER ─── */
  .hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background:
      linear-gradient(135deg,
        rgba(39,48,63,0.88) 0%,
        rgba(39,48,63,0.55) 50%,
        rgba(207,139,118,0.35) 100%),
      url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600&auto=format&fit=crop') center/cover no-repeat;
  }
  /* layered geometric accent */
  .hero-accent {
    position: absolute; top: -80px; right: -80px;
    width: 480px; height: 480px;
    border: 1px solid rgba(207,139,118,.18);
    border-radius: 50%;
    animation: spin 40s linear infinite;
  }
  .hero-accent::before {
    content: ''; position: absolute; inset: 40px;
    border: 1px solid rgba(207,139,118,.12);
    border-radius: 50%;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .hero-content {
    position: relative; z-index: 2;
    max-width: 700px; margin-left: 10vw;
    padding: 120px 0 80px;
    animation: fadeUp .9s ease both;
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
  }
  .hero-eyebrow span {
    font-size: 11px; font-weight: 500; letter-spacing: 3px;
    text-transform: uppercase; color: var(--clay-light);
  }
  .hero-eyebrow::before {
    content: ''; width: 40px; height: 1px; background: var(--clay);
  }
  .hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 300; line-height: 1.08;
    color: var(--white);
    margin-bottom: 24px;
  }
  .hero h1 em { font-style: italic; color: var(--clay-light); }
  .hero p {
    font-size: 16px; font-weight: 300; line-height: 1.75;
    color: rgba(255,255,255,.75); max-width: 480px; margin-bottom: 40px;
  }
  .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn-primary {
    background: var(--clay); color: var(--white);
    padding: 14px 32px; border: none; cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
    text-transform: uppercase; text-decoration: none;
    transition: background .25s, transform .2s;
    display: inline-block;
  }
  .btn-primary:hover { background: var(--clay-dark); transform: translateY(-2px); }
  .btn-outline {
    background: transparent; color: var(--white);
    padding: 13px 32px;
    border: 1px solid rgba(255,255,255,.4);
    cursor: pointer; font-family: 'DM Sans', sans-serif;
    font-size: 12px; font-weight: 500; letter-spacing: 1.5px;
    text-transform: uppercase; text-decoration: none;
    transition: border-color .25s, color .25s;
    display: inline-block;
  }
  .btn-outline:hover { border-color: var(--clay); color: var(--clay-light); }
  .hero-stats {
    position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; background: rgba(39,48,63,.95);
    border-top: 1px solid rgba(207,139,118,.2);
  }
  .hero-stat {
    flex: 1; padding: 22px 0; text-align: center;
    border-right: 1px solid rgba(207,139,118,.15);
  }
  .hero-stat:last-child { border-right: none; }
  .hero-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 300; color: var(--clay-light);
  }
  .hero-stat-label {
    font-size: 10px; font-weight: 500; letter-spacing: 2px;
    text-transform: uppercase; color: rgba(255,255,255,.5); margin-top: 2px;
  }

  /* INSTITUCIONES STRIP */
.inst-strip{
      position: absolute; bottom: 0; left: 0; right: 0;
    display: flex; background: rgba(39,48,63,.95);
   justify-content: center;
  border-top:1px solid var(--border2);border-bottom:1px solid var(--border2);
  padding:28px 48px;
}
.inst-inner{max-width:1100px;margin:0 auto;display:flex;align-items:center;gap:32px;flex-wrap:wrap;}
.inst-label{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);white-space:nowrap; margin-right: 15px; }
.inst-logos {display:flex;align-items:center;gap:20px;flex-wrap:wrap;}
.inst-pill{
  font-size:12px;font-weight:700;letter-spacing:.06em;
  color:var(--clay);border:1px solid var(--clay);
  border-radius:2px;padding:5px 12px;
  transition:border-color .2s,color .2s;
}
.inst-pill:hover{border-color:var(--white);color:var(--white);}
.inst-more{font-size:12px;color:var(--cream);font-style:italic;}

/* ─── NAVBAR SINGLE INMUEBLES ─── */
#navbar-inmueble {
  position: fixed; 
  top: 0; 
  left: 0; 
  right: 0; 
  z-index: 100;
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 0 5vw;
  height: 80px;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-back-link {
  position: absolute; 
  left: 50%; 
  transform: translateX(-50%);
  display: flex; 
  align-items: center; 
  gap: 8px;
  color: rgba(255,255,255,0.6); 
  text-decoration: none;
  font-size: 11px; 
  font-weight: 500; 
  letter-spacing: 2px; 
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.nav-back-link:hover { 
  color: var(--white); 
}

.nav-back-link svg { 
  width: 14px; 
  height: 14px; 
}

/* Ajuste del botón para que empate con el tono de la imagen de referencia */
#navbar-inmueble .btn-agendar {
  padding: 12px 24px;
  background: var(--clay);
}

#navbar-inmueble .btn-agendar:hover {
  background: var(--clay-dark);
}

/* Responsivo: Ocultamos el enlace central en móviles muy pequeños para evitar empalmes */
@media (max-width: 600px) {
  .nav-back-link { 
    display: none; 
  }
}


  /* ─── SECTIONS SHARED ─── */
  section { padding: 100px 5vw; }
  .section-tag {
    display: inline-flex; align-items: center; gap: 12px;
    margin-bottom: 14px;
  }
  .section-tag::before { content: ''; width: 32px; height: 1px; background: var(--clay); }
  .section-tag span {
    font-size: 10px; font-weight: 500; letter-spacing: 2.5px;
    text-transform: uppercase; color: var(--clay);
  }
  .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 300; line-height: 1.2; color: var(--navy);
  }
  .section-title em { font-style: italic; color: var(--clay); }
  .section-sub {
    font-size: 15px; font-weight: 300; line-height: 1.8;
    color: var(--muted); margin-top: 16px; max-width: 600px;
  }

  /* ─── ABOUT ─── */
  #quienes-somos {
    background: var(--white);
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  }
  .about-image {
    position: relative; aspect-ratio: 4/5; overflow: hidden;
  }
  .about-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease;
  }
  .about-image:hover img { transform: scale(1.04); }
  .about-image-frame {
    position: absolute; bottom: -16px; right: -16px;
    width: 160px; height: 160px;
    border: 2px solid var(--clay); opacity: .4;
    pointer-events: none;
  }
  .about-badge {
    position: absolute; bottom: 30px; left: -20px;
    background: var(--navy); color: var(--white);
    padding: 16px 20px; min-width: 140px;
    text-align: center;
  }
  .about-badge-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.4rem; font-weight: 300; color: var(--clay-light);
    line-height: 1;
  }
  .about-badge-text {
    font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,.6); margin-top: 4px;
  }
  .about-text { padding: 20px 0; }
  .about-promise {
    margin-top: 32px; padding: 24px 28px;
    border-left: 2px solid var(--clay);
    background: var(--cream);
  }
  .about-promise p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem; font-style: italic; line-height: 1.7;
    color: var(--navy);
  }

  /* ─── SERVICES ─── */
  #servicios { background: var(--cream); }
  .services-intro { max-width: 560px; margin-bottom: 60px; }
  .services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2px;
  }
  .service-card {
    background: var(--white); padding: 44px 36px;
    border-bottom: 3px solid transparent;
    transition: border-color .3s, transform .3s, box-shadow .3s;
    cursor: default;
  }
  .service-card:hover {
    border-bottom-color: var(--clay);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(39,48,63,.1);
  }
  .service-icon {
    width: 52px; height: 52px; margin-bottom: 24px;
    border: 1px solid var(--clay); display: flex; align-items: center;
    justify-content: center;
  }
  .service-icon svg { width: 24px; height: 24px; stroke: var(--clay); fill: none; stroke-width: 1.5; }
  .service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; font-weight: 400; color: var(--navy); margin-bottom: 12px;
  }
  .service-card p { font-size: 14px; line-height: 1.8; color: var(--muted); }
  .service-list { list-style: none; margin-top: 16px; }
  .service-list li {
    font-size: 13px; color: var(--text); padding: 6px 0;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
  }
  .service-list li::before {
    content: ''; width: 6px; height: 6px; flex-shrink: 0;
    background: var(--clay); clip-path: polygon(50% 0%,100% 50%,50% 100%,0% 50%);
  }

  /* ─── PROPIEDADES ─── */
  #propiedades { background: var(--navy); }
  #propiedades .section-title { color: var(--white); }
  #propiedades .section-sub { color: rgba(255,255,255,.5); }
  #propiedades .section-tag span { color: var(--clay-light); }
  #propiedades .section-tag::before { background: var(--clay-light); }
  .properties-header {
    display: flex; align-items: flex-end; justify-content: space-between;
    flex-wrap: wrap; gap: 24px; margin-bottom: 50px;
  }
  .props-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); gap: 2px;
  }
  .prop-card {
    position: relative; overflow: hidden; aspect-ratio: 3/4; cursor: pointer;
    background: var(--navy);
  }
  /**.prop-card:first-child { grid-row: span 2; aspect-ratio: auto; } **/
  .prop-card img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .6s ease; filter: brightness(.85);
  }
  .prop-card:hover img { transform: scale(1.06); filter: brightness(.7); }
  .prop-card-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(39,48,63,.9) 0%, transparent 55%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 28px;
  }
  .prop-tag {
    display: inline-block; background: var(--clay);
    font-size: 9px; font-weight: 500; letter-spacing: 2px;
    text-transform: uppercase; color: var(--white);
    padding: 4px 10px; margin-bottom: 10px; width: fit-content;
  }
  .prop-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem; font-weight: 300; color: var(--white); margin-bottom: 4px;
  }
  .prop-card-meta { display: flex; gap: 16px; }
  .prop-card-meta span { font-size: 12px; color: rgba(255,255,255,.6); }
  .prop-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem; color: var(--clay-light); margin-top: 6px;
  }

  /* ─── CREDITOS ─── */
  #creditos {
    background: var(--cream);
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  }
  .creditos-features { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
  .credito-item { display: flex; gap: 20px; align-items: flex-start; }
  .credito-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem; font-weight: 300; color: var(--clay);
    line-height: 1; flex-shrink: 0; width: 36px;
  }
  .credito-body h4 {
    font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 4px;
  }
  .credito-body p { font-size: 13px; color: var(--muted); line-height: 1.7; }
  .creditos-visual {
    background: var(--navy); padding: 52px 44px; position: relative; overflow: hidden;
  }
  .creditos-visual::before {
    content: ''; position: absolute; top: -60px; right: -60px;
    width: 200px; height: 200px;
    border: 1px solid rgba(207,139,118,.15); border-radius: 50%;
  }
  .creditos-visual h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem; font-weight: 300; color: var(--white); margin-bottom: 20px;
  }
  .creditos-visual h2 em { font-style: italic; color: var(--clay-light); }
  .creditos-visual p {
    font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.8; margin-bottom: 32px;
  }
  .cred-logos { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
  .cred-logo-pill {
    padding: 8px 18px; border: 1px solid rgba(207,139,118,.3);
    font-size: 11px; font-weight: 500; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--clay-light);
  }

  /* ─── PROMISE ─── */
  .promise-section {
    background: var(--white);
    text-align: center; padding: 100px 5vw;
  }
  .promise-section .section-tag { justify-content: center; }
  .promise-section .section-tag::before { display: none; }
  .promise-section .section-tag::after {
    content: ''; width: 32px; height: 1px; background: var(--clay);
  }
  .promise-section .section-title { text-align: center; }
  .promise-section .section-sub { text-align: center; margin: 16px auto 0; }
  .promise-pillars {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 2px; margin-top: 60px;
  }
  .pillar {
    padding: 50px 36px; background: var(--cream);
    transition: background .3s;
  }
  .pillar:hover { background: var(--navy); }
  .pillar:hover .pillar-title { color: var(--white); }
  .pillar:hover .pillar-text  { color: rgba(255,255,255,.6); }
  .pillar:hover .pillar-icon  { border-color: rgba(207,139,118,.4); }
  .pillar:hover .pillar-icon svg { stroke: var(--clay-light); }
  .pillar-icon {
    width: 60px; height: 60px; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
    transition: border-color .3s;
  }
  .pillar-icon svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 1.5; transition: stroke .3s; }
  .pillar-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem; font-weight: 400; color: var(--navy);
    margin-bottom: 12px; transition: color .3s;
  }
  .pillar-text { font-size: 13px; color: var(--muted); line-height: 1.8; transition: color .3s; }

  /* ─── LOCATION ─── */
  #ubicacion { background: var(--navy); }
  #ubicacion .section-title { color: var(--white); }
  #ubicacion .section-sub   { color: rgba(255,255,255,.5); }
  #ubicacion .section-tag span { color: var(--clay-light); }
  #ubicacion .section-tag::before { background: var(--clay-light); }
  .ubicacion-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; margin-top: 50px; align-items: start; }
  .map-placeholder {
    aspect-ratio: 4/3; background: rgba(255,255,255,.05);
    border: 1px solid rgba(207,139,118,.2);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
  }
  .map-placeholder iframe {
    width: 100%; height: 100%; border: none; filter: saturate(.7) contrast(.9);
  }
  .contact-info { display: flex; flex-direction: column; gap: 28px; }
  .contact-item { display: flex; gap: 18px; align-items: flex-start; }
  .contact-item-icon {
    width: 44px; height: 44px; border: 1px solid rgba(207,139,118,.3);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  }
  .contact-item-icon svg { width: 18px; height: 18px; stroke: var(--clay); fill: none; stroke-width: 1.5; }
  .contact-item-text h4 { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--clay-light); margin-bottom: 4px; }
  .contact-item-text p  { font-size: 15px; color: rgba(255,255,255,.8); line-height: 1.5; }

  /* ─── CONTACT FORM ─── */
  #contacto { background: var(--cream); }
  .contact-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
  .contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-full { grid-column: span 2; }
  .form-group { display: flex; flex-direction: column; gap: 8px; }
  .form-group label { font-size: 10px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--navy); }
  .form-group input,
  .form-group select,
  .form-group textarea {
    background: var(--white); border: 1px solid var(--border);
    padding: 13px 16px; font-family: 'DM Sans', sans-serif; font-size: 14px;
    color: var(--text); outline: none;
    transition: border-color .25s;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus { border-color: var(--clay); }
  .form-group textarea { resize: vertical; min-height: 120px; }
  .form-submit { grid-column: span 2; }



/* ─── SINGLE PROPERTY GALLERY ─── */
.single-gallery { padding: 120px 5vw 40px; background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-radius: 8px;
  overflow: hidden;
  max-height: 500px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gallery-more { position: relative; cursor: pointer; }
.more-overlay {
  position: absolute; inset: 0;
  background: rgba(39,48,63,0.7);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 500; letter-spacing: 1px;
  transition: background .3s;
}
.gallery-more:hover .more-overlay { background: rgba(39,48,63,0.85); }

/* ─── SINGLE LAYOUT ─── */
.single-content { padding: 40px 5vw 100px; background: var(--cream); }
.single-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: start;
}

/* ─── PROPERTY DETAILS ─── */
.property-header {
  display: block; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 20px; margin-bottom: 30px;
}
.single-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem; font-weight: 400; color: var(--navy);
  margin: 10px 0; line-height: 1.1;
}
.single-location { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 15px; }
.single-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem; color: var(--clay); font-weight: 600;
}
.single-price small { font-size: 1.2rem; font-family: 'DM Sans', sans-serif; font-weight: 400; }

.property-meta-bar {
  display: flex; flex-wrap: wrap; gap: 24px;
  padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.meta-item { font-size: 15px; color: var(--navy); }
.meta-item span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; display: block; margin-bottom: 4px; }

.property-section { margin-bottom: 40px; }
.section-subtitle { font-size: 1.2rem; font-weight: 500; color: var(--navy); margin-bottom: 16px; }
.property-section p { font-size: 15px; color: var(--muted); line-height: 1.8; }

.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; }
.features-grid li {
  font-size: 14px; color: var(--text); padding: 8px 0; border-bottom: 1px solid rgba(39,48,63,0.05);
  display: flex; align-items: center; gap: 10px;
}
.features-grid li::before {
  content: ''; width: 6px; height: 6px; flex-shrink: 0;
  background: var(--clay); border-radius: 50%;
}

/* ─── SIDEBAR STICKY ─── */
/* ─── SIDEBAR STICKY Y CONTACT CARD ─── */
.property-sidebar { 
  position: sticky; 
  top: 100px; 
}

/* Contenedor principal sin padding para que las secciones toquen los bordes */
.sticky-contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(39,48,63,0.05);
  border-radius: 4px;
  overflow: hidden; /* Mantiene las esquinas redondeadas limpias */
}

/* Cabecera Oscura */
.sticky-card-header {
  background: var(--navy);
  padding: 32px 32px 28px;
  position: relative;
  overflow: hidden;
}

/* Adorno circular sutil en la cabecera (como en la imagen de referencia) */
.sticky-card-header::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.sticky-card-header h3 { 
  font-family: 'Cormorant Garamond', serif; 
  font-size: 1.6rem; 
  color: var(--white); 
  margin-bottom: 8px; 
  position: relative;
  z-index: 1;
}

.sticky-card-header p { 
  font-size: 13px; 
  color: rgba(255,255,255,0.7); 
  line-height: 1.6; 
  margin-bottom: 0; 
  position: relative;
  z-index: 1;
}

/* Contenedor del Formulario */
.sticky-card-body {
  padding: 28px 32px 32px;
}

.sticky-contact-card p { font-size: 15px; color: var(--muted); line-height: 1.6; margin-bottom: 5px; }
.sidebar-form { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.sidebar-wa a:hover { background: #25D366; color: var(--white) !important; }

/* ─── SIDEBAR FORM STYLES ─── */
.sidebar-form input,
.sidebar-form textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease;
  border-radius: 2px;
  margin-top: 4px; /* Separación sutil si se agregan etiquetas label */
}

.sidebar-form input:focus,
.sidebar-form textarea:focus {
  border-color: var(--clay);
}

.sidebar-form textarea {
  resize: vertical;
  min-height: 100px;
}

/* Forzar la herencia de estilos en el botón del formulario */
.sidebar-form .btn-primary {
  width: 100%;
  background: var(--clay);
  color: var(--white);
  padding: 14px;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background 0.25s, transform 0.2s;
  border-radius: 2px;
  margin-top: 8px;
}

.sidebar-form .btn-primary:hover {
  background: var(--clay-dark);
  transform: translateY(-2px);
}

/* Estilización específica para el botón de WhatsApp en el Sidebar */
.sidebar-wa {
  margin-top: 12px;
}

.sidebar-wa a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background: transparent;
  border: 1px solid #25D366;
  color: #25D366 !important;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.25s ease;
  border-radius: 2px;
}

.sidebar-wa a:hover {
  background: #25D366;
  color: var(--white) !important;
}
/* ─── RESPONSIVE ─── */
@media (max-width: 992px) {
  .single-layout { grid-template-columns: 1fr; }
  .property-sidebar { position: static; }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: 1fr; max-height: none; }
  .gallery-main img { aspect-ratio: 16/9; }
  .features-grid { grid-template-columns: 1fr; }
  .single-title { font-size: 2.2rem; }
}

/* ─── ARCHIVE INMUEBLES ─── */
.archive-hero {
  background: var(--navy);
  padding: 160px 5vw 80px;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.archive-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.archive-title em {
  font-style: italic;
  color: var(--clay-light);
}

.archive-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.archive-catalog {
  background: var(--cream);
  padding: 60px 5vw 100px;
}

/* ─── PAGINACIÓN ─── */
.sicurezza-pagination {
  margin-top: 60px;
  text-align: center;
}

.sicurezza-pagination .nav-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.sicurezza-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.25s ease;
}

.sicurezza-pagination .page-numbers:hover {
  border-color: var(--clay);
  color: var(--clay);
}

.sicurezza-pagination .page-numbers.current {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--white);
}

.sicurezza-pagination .dots {
  border: none;
  background: transparent;
}


  /* ─── FOOTER ─── */
  footer {
    background: var(--navy); border-top: 1px solid rgba(207,139,118,.15);
    padding: 60px 5vw 30px;
  }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .footer-brand p { font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.8; margin-top: 16px; max-width: 280px; }
  .footer-col h5 { font-size: 10px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; color: var(--clay-light); margin-bottom: 18px; }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  .footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
  .footer-col ul li a:hover { color: var(--white); }
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px; }
  .footer-bottom p { font-size: 12px; color: rgba(255,255,255,.3); }
  .footer-socials { display: flex; gap: 14px; }
  .footer-socials a { width: 34px; height: 34px; border: 1px solid rgba(207,139,118,.2); display: flex; align-items: center; justify-content: center; text-decoration: none; transition: border-color .2s, background .2s; }
  .footer-socials a:hover { border-color: var(--clay); background: rgba(207,139,118,.1); }
  .footer-socials svg { width: 14px; height: 14px; stroke: rgba(255,255,255,.6); fill: none; stroke-width: 1.8; }

  /* ─── SCROLL REVEAL ─── */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.visible { opacity: 1; transform: none; }


  /* WA float */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.wa-tooltip {
  background: #fff;
  color: #1a1a1a;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
  animation: fadeIn 0.4s ease;
  font-family: sans-serif;
}
.wa-btn {
  background: #25D366;
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
}
.wa-btn:hover { transform: scale(1.08); }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

  /* ─── RESPONSIVE ─── */
  @media (max-width: 900px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    #quienes-somos, #creditos { grid-template-columns: 1fr; gap: 40px; }
    .promise-pillars, .props-grid, .footer-grid { grid-template-columns: 1fr 1fr; }
    .prop-card:first-child { grid-row: auto; }
    .ubicacion-grid, .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  }
  @media (max-width: 600px) {
    section { padding: 70px 5vw; }
    .promise-pillars, .props-grid, .footer-grid { grid-template-columns: 1fr; }
    .inst-strip { flex-wrap: wrap; }
    .hero-stat { min-width: 50%; }
    .contact-form { grid-template-columns: 1fr; }
    .form-full { grid-column: auto; }
    .form-submit { grid-column: auto; }
    .services-grid { grid-template-columns: 1fr; }
  }


  /* ─── LIGHTBOX NATIVO ─── */
.lightbox-overlay {
  display: none; position: fixed; z-index: 99999; inset: 0;
  background: rgba(15, 20, 28, 0.95);
  align-items: center; justify-content: center;
  backdrop-filter: blur(5px);
}
.lightbox-overlay.active { display: flex; animation: fadeIn .3s ease; }
.lightbox-content { position: relative; max-width: 90%; max-height: 90vh; display: flex; flex-direction: column; align-items: center; }
.lightbox-img { max-width: 100%; max-height: 85vh; object-fit: contain; border-radius: 2px; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }

/* Controles */
.lightbox-close { position: absolute; top: 20px; right: 30px; color: var(--white); font-size: 40px; cursor: pointer; transition: color .2s; line-height: 1; }
.lightbox-close:hover { color: var(--clay); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; color: var(--white); font-size: 30px; cursor: pointer; padding: 20px; transform: translateY(-50%); transition: color .2s; user-select: none; }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }
.lightbox-prev:hover, .lightbox-next:hover { color: var(--clay); }
.lightbox-counter { color: var(--muted); font-size: 13px; letter-spacing: 2px; margin-top: 16px; font-family: 'DM Sans', sans-serif; }

/* Indicadores de Click en la Galería */
.gallery-main, .gallery-thumbs img, .gallery-more { cursor: zoom-in; }

/* ─── HOVER ZOOM GALLERY ─── */
/* 1. Contenedores con desbordamiento oculto */
.gallery-main, 
.gallery-thumb-wrap, 
.gallery-more {
  overflow: hidden;
  position: relative;
  cursor: zoom-in; /* La lupa */
}

/* 2. Estado inicial de la imagen con transición fluida (zoom out) */
.gallery-main img, 
.gallery-thumb-wrap img, 
.gallery-more img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Curva suave y natural */
}

/* 3. Estado Hover (zoom in) */
.gallery-main:hover img, 
.gallery-thumb-wrap:hover img, 
.gallery-more:hover img {
  transform: scale(1.08);
}

/* ─── PÁGINA 404 ─── */
.error-404 {
  background: var(--cream);
  min-height: 80vh; /* Asegura que ocupe casi toda la pantalla visible */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 5vw;
}

.error-404 .page-content {
  max-width: 600px;
  margin: 0 auto;
  animation: fadeUp 0.8s ease forwards; /* Reutilizamos la animación del Hero */
}

/* Centramos el tag superior */
.error-404 .section-tag {
  justify-content: center;
}

.error-404 .section-tag::before {
  display: none;
}

.error-404 .section-sub {
  margin: 20px auto 40px;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Modificador para el botón outline sobre fondo claro */
.error-outline {
  border-color: var(--navy);
  color: var(--navy);
}

.error-outline:hover {
  background: var(--navy);
  color: var(--white);
}