
/* ===== BASE & RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ocean:    #1a3a5c;
  --ocean-mid:#2557a7;
  --teal:     #0e7490;
  --sand:     #e8d5b0;
  --sand-lt:  #f5ede0;
  --gold:     #c9a84c;
  --gold-lt:  #e2c47a;
  --white:    #fdfaf6;
  --dark:     #0f2236;
  --mist:     rgba(26,58,92,0.08);
  --wave:     rgba(255,255,255,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--white);
  color: var(--dark);
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
nav {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4rem;
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
  background: rgba(15,34,54,.75);
  backdrop-filter: blur(12px);
  height: 78px;
  
}
nav.scrolled {
  background: rgba(15,34,54,.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
.nav-logo {
  display: flex; align-items: center; gap: .8rem; text-decoration: none;
}
.nav-logo-mark {
  width: 100px; height: 60px;
 /* background: linear-gradient(135deg, var(--gold), var(--gold-lt));*/
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; color: var(--dark); font-weight: 600;
  flex-shrink: 0;
}
.nav-logo-mark img { width: 100%; border-radius: 50%; object-fit: cover; }
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; color: #fff; letter-spacing: .08em; line-height: 1.1;
  font-weight: 300;
}
.nav-logo-text span { display: block; font-size: .65rem; letter-spacing: .25em; color: var(--gold-lt); font-family: 'Jost', sans-serif; font-weight: 400; }
.nav-right { display: flex; align-items: center; gap: 2rem; }
.lang-toggle {
  display: flex; border-radius: 20px;
}
.lang-select {
  padding: .4rem .8rem;
  font-size: .75rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  color: #fff;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
  outline: none;
  transition: all .3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 10px;
}
.lang-select:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-lt);
}
.lang-select:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.2);
}
.lang-select option {
  background: var(--dark);
  color: #fff;
  padding: .5rem;
}
.nav-cta {
          padding: .4rem 1rem;
           background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--dark); border: none; border-radius: 30px; cursor: pointer;
  font-family: 'Jost', sans-serif; font-weight: 600; font-size: .8rem;
  letter-spacing: .1em; text-decoration: none; display: inline-block;
  transition: transform .2s, box-shadow .2s;
  margin-right: 10px;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(201,168,76,.45); }

/* ===== HERO (NUEVO TEXTO) ===== */
#hero {
  position: relative; height: 100vh; min-height: 650px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,25,50,.45) 0%, rgba(10,25,50,.2) 40%, rgba(10,25,50,.6) 100%),
    linear-gradient(135deg, #0a3d6b 0%, #0e4f8a 30%, #0a7a9a 60%, #0a5560 100%);
}
.hero-waves { position: absolute; bottom: 0; left: 0; width: 100%; height: 180px; overflow: hidden; }
.hero-waves svg { width: 200%; animation: waveScroll 12s linear infinite; }
@keyframes waveScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
}
.hero-orb-1 { width: 600px; height: 600px; top: -150px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; bottom: 100px; left: -80px; }

.hero-content { position: relative; z-index: 2; max-width: 880px; padding: 0 2rem; }
.hero-eyebrow {
  font-size: .72rem; letter-spacing: .35em; color: var(--gold-lt);
  font-weight: 500; margin-bottom: 1.2rem;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .8s .3s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.2rem, 8vw, 5.8rem);
  font-weight: 300; color: #fff; line-height: 1.05;
  margin-bottom: 1.4rem; letter-spacing: -.01em;
  opacity: 0; transform: translateY(30px);
  animation: fadeUp .9s .5s forwards;
}
.hero-title em { font-style: italic; color: var(--gold-lt); display: block; font-size: 0.9em; }
.hero-sub {
  font-size: 1.1rem; font-weight: 300; color: rgba(255,255,255,.85);
  letter-spacing: .02em; line-height: 1.6; margin-bottom: 2.4rem;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .8s .7s forwards;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.hero-buttons {
  display: flex; gap: 1.2rem; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .8s .9s forwards;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: 1rem 2.2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--dark); border-radius: 50px; text-decoration: none;
  font-weight: 600; font-size: .88rem; letter-spacing: .1em;
  transition: transform .25s, box-shadow .25s;
}
.hero-cta-secondary {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: 1rem 2.2rem;
  background: transparent; border: 1.5px solid rgba(255,255,255,.5);
  color: #fff; border-radius: 50px; text-decoration: none;
  font-weight: 500; font-size: .88rem; letter-spacing: .08em;
  transition: background .25s, border-color .25s;
}
.hero-cta-secondary:hover { background: rgba(255,255,255,.1); border-color: var(--gold); }
.hero-cta:hover, .hero-cta-secondary:hover { transform: translateY(-2px); }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ===== SECCIONES COMUNES ===== */
section { padding: 6rem 4rem; }
.section-label {
  font-size: .68rem; letter-spacing: .3em; color: var(--gold);
  font-weight: 600; margin-bottom: .8rem; text-transform: uppercase;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; line-height: 1.2;
  color: var(--ocean); margin-bottom: 1.2rem;
}
.section-title em { font-style: italic; color: var(--teal); }
.section-desc {
  font-size: .95rem; color: #5a6d80; line-height: 1.8; max-width: 620px;
}
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Presentación */
.presentacion {
  background: var(--white);
}
.presentacion-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.presentacion-inner .section-desc {
  max-width: 780px; font-size: 1.05rem; color: #2c4b6e;
}

/* Funcionalidades grid (6 cards) */
.funcionalidades {
  background: var(--sand-lt);
}
.funcionalidades-inner {
  max-width: 1280px; margin: 0 auto;
}
.funcionalidades-header {
  text-align: center; margin-bottom: 3rem;
}
.funcionalidades-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.func-card {
  background: #fff; border-radius: 24px; padding: 2rem 1.8rem;
  transition: all 0.3s ease; border: 1px solid rgba(201,168,76,.2);
  box-shadow: 0 8px 20px rgba(0,0,0,.02);
}
.func-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(26,58,92,.1);
  border-color: var(--gold);
}
.func-icon {
  font-size: 2.2rem; margin-bottom: 1rem;
}
.func-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 600; color: var(--ocean);
  margin-bottom: 0.8rem;
}
.func-card p {
  font-size: 0.88rem; line-height: 1.6; color: #4a627a;
}
.func-badge {
  display: inline-block; background: var(--gold-lt); color: var(--dark);
  font-size: 0.7rem; padding: 0.2rem 0.8rem; border-radius: 20px;
  margin-top: 1rem; font-weight: 500;
}

/* Comunicación & Comunidad */
.comunicacion, .comunidad-evolucion {
  background: var(--white);
}
.comunicacion-inner, .comunidad-inner {
  max-width: 1100px; margin: 0 auto; text-align: center;
}
.comunicacion-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
  margin-top: 2rem;
}
.comu-item {
  background: #f8f4ec; padding: 1rem 1.8rem; border-radius: 60px;
  font-weight: 500; color: var(--ocean); font-size: 0.9rem;
  border: 1px solid rgba(201,168,76,.2);
}

/* CTA final */
.cta-final {
  background: linear-gradient(135deg, var(--dark), #0a2240);
  text-align: center; position: relative; overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(201,168,76,.1), transparent);
}
.cta-inner {
  position: relative; z-index: 2; max-width: 700px; margin: 0 auto;
}
.cta-inner .section-title {
  color: #fff;
}
.cta-inner .section-desc {
  color: rgba(255,255,255,.6); margin: 0 auto 2rem;
}
.cta-button {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: 1rem 2.6rem; background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: var(--dark); border-radius: 50px; text-decoration: none;
  font-weight: 700; font-size: 1rem; letter-spacing: .1em;
  transition: transform .25s;
}
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(201,168,76,.5); }

/* ===== GALERÍA URBANIZACIÓN (intacta) ===== */
.urbanizacion {
  padding: 80px 24px;
  background: #fdfaf6;
  position: relative;
  overflow: hidden;
}
.urbanizacion-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.urbanizacion-header {
  text-align: center;
  margin-bottom: 48px;
}
.urbanizacion-header .section-label {
  color: #9b8b7a;
  letter-spacing: 4px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.urbanizacion-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 300;
  color: #1e2c3a;
}
.urbanizacion-header h2 em {
  font-style: italic;
  color: #9b8b7a;
}
.galeria-principal {
  margin-bottom: 24px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
  cursor: pointer;
  aspect-ratio: 16/9;
  background: #e8e0d5;
}
.galeria-principal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.galeria-principal:hover img { transform: scale(1.02); }
.galeria-mini {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.mini-item {
  aspect-ratio: 1/1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}
.mini-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0,0,0,0.2);
  border-color: #9b8b7a;
}
.mini-item.active {
  border-color: #9b8b7a;
  box-shadow: 0 0 0 3px rgba(155,139,122,0.3);
}
.mini-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mini-item.more-btn {
  background: linear-gradient(135deg, #2c3e50, #1a2a3a);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  border: 2px solid #c9a84c;
}
.mini-item.more-btn .more-icon { font-size: 2rem; margin-bottom: 8px; color: #c9a84c; }
.mini-item.more-btn .more-text { color: #fff; font-weight: 600; }

/* Modal galería */
.modal-gallery {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 1000;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal-gallery.active { display: block; opacity: 1; }
.modal-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  position: relative;
}
.modal-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}
.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.modal-img-item {
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}
.modal-img-item img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
footer {
  background: #060f1a; padding: 4rem 4rem 2rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  max-width: 1200px; margin: 0 auto 3rem;
}
.footer-logo-text {
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: #fff;
  font-weight: 300;
}
.footer-logo-text span { display: block; font-size: .6rem; letter-spacing: .25em; color: var(--gold); }
.footer-desc { font-size: .82rem; color: rgba(255,255,255,.3); line-height: 1.8; margin-top: 1rem; }
.footer-socials { display: flex; gap: .8rem; margin-top: 1.5rem; }
.footer-social {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); text-decoration: none;
}
.footer-social:hover { border-color: var(--gold); color: var(--gold); }
.footer-col h4 { font-size: .68rem; letter-spacing: .2em; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li a { font-size: .82rem; color: rgba(255,255,255,.3); text-decoration: none; line-height: 2; }
.footer-address { font-size: .82rem; color: rgba(255,255,255,.3); line-height: 1.8; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex; justify-content: space-between; flex-wrap: wrap;
}
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-logo-mark { width: 50px; height: 30px; }
  .nav-logo-text { font-size: 1rem; }
  .nav-logo-text span { font-size: 0.55rem; }
  .nav-right { gap: 0.8rem; }
  .lang-select { 
    padding: .35rem .6rem; 
    font-size: .7rem;
    padding-right: 1.8rem;
    background-position: right 0.5rem center;
  }
  .nav-cta { 
    padding: .45rem 1.2rem; 
    font-size: .7rem;
    white-space: nowrap;
  }
  section { padding: 4rem 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .galeria-mini { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  nav { padding: 0.8rem 1rem; }
  .nav-logo { gap: 0.4rem; }
  .nav-logo-mark { width: 45px; height: 27px; }
  .nav-logo-text { font-size: 0.85rem; }
  .nav-logo-text span { font-size: 0.5rem; letter-spacing: .15em; }
  .nav-right { gap: 0.6rem; }
  .lang-select {
    padding: .3rem .5rem;
    padding-right: 1.6rem;
    font-size: .65rem;
    border-radius: 15px;
  }
  .nav-cta {
    padding: .4rem 1rem;
    font-size: .65rem;
    border-radius: 20px;
  }
  .hero-buttons { flex-direction: column; align-items: center; }
  .funcionalidades-grid { gap: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
