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

:root {
  --navy: #0a1628;
  --navy-mid: #112240;
  --teal: #0d7377;
  --teal-light: #14a3a8;
  --gold: #c9a84c;
  --gold-light: #e2c27d;
  --cream: #f5f0e8;
  --white: #ffffff;
  --gray: #8892a4;
}

html { scroll-behavior: smooth; font-size: 106.25%; }

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

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
  animation: fadeDown 0.8s ease forwards;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 600; letter-spacing: 0.05em; color: var(--cream);
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-size: 0.8rem; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray); text-decoration: none; transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.6rem 1.6rem;
  background: transparent; border: 1px solid var(--gold);
  color: var(--gold); cursor: pointer; text-decoration: none; transition: all 0.3s;
}
.nav-cta:hover { background: var(--gold); color: var(--navy); }

/* ─── HERO ─── */
#hero {
  height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 5rem 5% 2rem;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(13,115,119,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 20%, rgba(201,168,76,0.06) 0%, transparent 60%);
}
.hero-grid-lines {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 2; animation: fadeUp 1s 0.3s ease both; }
.hero-eyebrow {
  font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-eyebrow::before { content: ''; display: block; width: 40px; height: 1px; background: var(--teal-light); }
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300; line-height: 1.1; color: var(--white); margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-subtitle { font-size: 1rem; font-weight: 300; line-height: 1.8; color: var(--gray); max-width: 460px; margin-bottom: 2.5rem; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  padding: 0.9rem 2.2rem; background: var(--teal); color: var(--white); border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; display: inline-block; transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: var(--teal-light); transform: translateY(-2px); }
.btn-secondary {
  padding: 0.9rem 2.2rem; background: transparent; color: var(--cream);
  border: 1px solid rgba(245,240,232,0.25); cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; display: inline-block; transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--cream); }
.hero-visual {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center;
  animation: fadeUp 1s 0.6s ease both;
}
.hero-card {
  width: 380px; max-width: 100%;
  background: rgba(17,34,64,0.7); border: 1px solid rgba(201,168,76,0.2);
  padding: 2.5rem; backdrop-filter: blur(10px); position: relative;
}
.hero-card::before {
  content: ''; position: absolute; top: -1px; left: 2rem; right: 2rem; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.hero-stat { display: flex; align-items: center; gap: 1.2rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
.hero-stat:first-child { padding-top: 0; }
.stat-icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(13,115,119,0.2); border: 1px solid rgba(13,115,119,0.4);
  display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0;
}
.stat-label { font-size: 0.72rem; color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; color: var(--cream); font-weight: 400; }

/* ─── SECTIONS ─── */
section { padding: 6rem 5%; }
.section-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.section-eyebrow::before { content: ''; display: block; width: 30px; height: 1px; background: var(--teal-light); }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300; line-height: 1.2; color: var(--white); margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-subtitle { font-size: 0.95rem; font-weight: 300; line-height: 1.9; color: var(--gray); max-width: 550px; }

/* ─── SOBRE ─── */
#sobre { background: var(--navy-mid); }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; margin-top: 3rem; }
.sobre-visual { position: relative; }
.sobre-big-number {
  font-family: 'Cormorant Garamond', serif; font-size: 12rem; font-weight: 300; line-height: 1;
  color: rgba(201,168,76,0.08); position: absolute; top: -2rem; left: -2rem;
  pointer-events: none; z-index: 0; user-select: none;
}
.sobre-list { position: relative; z-index: 1; margin-top: 3rem; }
.sobre-item { display: flex; gap: 1.5rem; align-items: flex-start; padding: 1.2rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.sobre-item:first-child { padding-top: 0; }
.sobre-num { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--gold); font-weight: 400; flex-shrink: 0; line-height: 1; margin-top: 0.1rem; }
.sobre-item-title { font-size: 0.9rem; font-weight: 500; color: var(--cream); margin-bottom: 0.3rem; }
.sobre-item-text { font-size: 0.85rem; color: var(--gray); line-height: 1.7; }
.sobre-stats-col { padding-top: 2rem; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,0.06); }
.stat-box { background: var(--navy); padding: 2rem; text-align: center; }
.stat-big { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 300; color: var(--gold); }
.stat-desc { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-top: 0.4rem; }
.por-que-box { margin-top: 2rem; background: rgba(13,115,119,0.08); border: 1px solid rgba(13,115,119,0.2); padding: 1.5rem; }
.por-que-box p { font-size: 0.82rem; color: var(--gray); line-height: 1.9; }
.por-que-box strong { color: var(--teal-light); }

/* ─── SERVICIOS ─── */
#servicios { background: var(--navy); }
.servicios-header { margin-bottom: 4rem; }
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.servicio-card {
  background: var(--navy-mid); border: 1px solid rgba(255,255,255,0.06);
  padding: 2.2rem; position: relative; overflow: hidden; transition: border-color 0.3s, transform 0.3s;
}
.servicio-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.servicio-card:hover { border-color: rgba(201,168,76,0.25); transform: translateY(-4px); }
.servicio-card:hover::after { transform: scaleX(1); }
.servicio-icon { font-size: 2rem; margin-bottom: 1.2rem; display: block; }
.servicio-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 400; color: var(--white); margin-bottom: 0.8rem; }
.servicio-text { font-size: 0.83rem; color: var(--gray); line-height: 1.8; }
.servicio-tag {
  display: inline-block; margin-top: 1.2rem; font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal-light); border: 1px solid rgba(13,115,119,0.3); padding: 0.25rem 0.7rem;
}

/* ─── PROCESO ─── */
#proceso { background: var(--navy-mid); }
.proceso-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 4rem; position: relative; }
.proceso-steps::before {
  content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), var(--gold), var(--teal), transparent);
}
.paso { text-align: center; padding: 0 1rem; }
.paso-num {
  width: 56px; height: 56px; background: var(--navy); border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
  font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--gold); font-weight: 400; position: relative; z-index: 1;
}
.paso-title { font-size: 0.85rem; font-weight: 500; color: var(--cream); margin-bottom: 0.5rem; }
.paso-text { font-size: 0.78rem; color: var(--gray); line-height: 1.7; }

/* ─── ENTIDADES ─── */
#entidades { background: var(--navy); }
.entidades-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 3rem; }
.entidad-card { background: var(--navy-mid); border: 1px solid rgba(255,255,255,0.06); padding: 1.8rem; text-align: center; transition: border-color 0.3s; }
.entidad-card:hover { border-color: rgba(13,115,119,0.4); }
.entidad-icon { font-size: 2rem; margin-bottom: 1rem; display: block; }
.entidad-name { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cream); margin-bottom: 0.4rem; }
.entidad-desc { font-size: 0.75rem; color: var(--gray); line-height: 1.6; }

/* ─── CTA BAND ─── */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, #0a2e40 100%);
  padding: 4rem 5%; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-band-inner { position: relative; z-index: 1; }
.cta-band h2 { font-family: 'Cormorant Garamond', serif; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 300; color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255,255,255,0.7); margin-bottom: 2rem; font-size: 0.9rem; }

/* ─── COTIZACION ─── */
#cotizacion { background: var(--navy-mid); }
.cotizacion-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 5rem; align-items: start; margin-top: 3rem; }
.info-intro { font-size: 0.9rem; color: var(--gray); line-height: 1.9; margin-bottom: 2rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 2rem; }
.info-icon {
  width: 36px; height: 36px; background: rgba(13,115,119,0.15);
  border: 1px solid rgba(13,115,119,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem; flex-shrink: 0;
}
.info-label { font-size: 0.72rem; color: var(--gray); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.25rem; }
.info-value { font-size: 0.9rem; color: var(--cream); }
.trust-box { background: rgba(201,168,76,0.06); border: 1px solid rgba(201,168,76,0.2); padding: 1.5rem; margin-top: 2rem; }
.trust-box p { font-size: 0.82rem; color: var(--gray); line-height: 1.8; }
.trust-box strong { color: var(--gold-light); }

/* FORM */
.cotizacion-form {
  background: rgba(10,22,40,0.6); border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem; position: relative;
}
.cotizacion-form::before {
  content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.form-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 300; color: var(--white); margin-bottom: 0.4rem; }
.form-subtitle { font-size: 0.8rem; color: var(--gray); margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.2rem; }

label {
  display: block; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray); margin-bottom: 0.45rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--cream); font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; padding: 0.75rem 1rem;
  outline: none; transition: border-color 0.3s;
  appearance: none; -webkit-appearance: none;
}
input::placeholder, textarea::placeholder { color: rgba(136,146,164,0.5); }
input:focus, select:focus, textarea:focus { border-color: var(--teal); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238892a4' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  background-color: rgba(255,255,255,0.04); cursor: pointer;
}
select option { background: var(--navy-mid); color: var(--cream); }
textarea { resize: vertical; min-height: 110px; }

.checkbox-group { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.5rem; }
.checkbox-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.8rem; border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer; transition: border-color 0.3s;
}
.checkbox-item:hover { border-color: rgba(13,115,119,0.4); }
.checkbox-item input[type="checkbox"] {
  width: 16px; height: 16px; flex-shrink: 0;
  accent-color: var(--teal); cursor: pointer;
  /* Override the generic input styles */
  padding: 0; background: transparent; border: none;
}
.checkbox-item span { font-size: 0.78rem; color: var(--gray); }

.form-submit {
  width: 100%; padding: 1rem; background: var(--teal); color: var(--white);
  border: none; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; margin-top: 1.5rem;
  transition: background 0.3s, transform 0.2s;
}
.form-submit:hover { background: var(--teal-light); transform: translateY(-1px); }
.form-note { font-size: 0.72rem; color: var(--gray); text-align: center; margin-top: 0.8rem; }

.field-error { display: block; font-size: 0.72rem; color: #e07070; margin-top: 0.3rem; }
.form-error-box {
  background: rgba(224,112,112,0.1); border: 1px solid rgba(224,112,112,0.3);
  padding: 1rem; margin-bottom: 1.5rem; font-size: 0.82rem; color: #e07070;
}
.form-error-box ul { padding-left: 1.2rem; }

/* SUCCESS */
.success-msg { text-align: center; padding: 3rem 1rem; }
.success-icon { font-size: 3rem; margin-bottom: 1rem; }
.success-msg h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; color: var(--white); margin-bottom: 0.5rem; }
.success-msg p { font-size: 0.85rem; color: var(--gray); }

/* ─── FOOTER ─── */
footer { background: #060f1e; padding: 3rem 5% 2rem; border-top: 1px solid rgba(255,255,255,0.06); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--cream); margin-bottom: 1rem; display: block; }
.footer-logo span { color: var(--gold); }
.footer-tagline { font-size: 0.82rem; color: var(--gray); line-height: 1.8; max-width: 280px; }
.footer-col-title { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.6rem; }
.footer-col a { font-size: 0.82rem; color: var(--gray); text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom { padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 0.75rem; color: var(--gray); }
.footer-badge { font-size: 0.7rem; color: var(--teal-light); letter-spacing: 0.08em; }

/* ─── ANIMATIONS ─── */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  #hero { grid-template-columns: 1fr; height: auto; min-height: 100vh; padding: 7rem 5% 4rem; text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-subtitle { margin: 0 auto 2rem; }
  .hero-buttons { justify-content: center; }
  .hero-visual { padding-bottom: 3rem; }
  .hero-card { width: 100%; }
  .sobre-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sobre-big-number { font-size: 7rem; }
  .servicios-grid { grid-template-columns: 1fr; }
  .proceso-steps { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .proceso-steps::before { display: none; }
  .entidades-grid { grid-template-columns: 1fr 1fr; }
  .cotizacion-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .nav-links { display: none; }
}
@media (max-width: 600px) {
  .entidades-grid { grid-template-columns: 1fr; }
  .proceso-steps { grid-template-columns: 1fr; }
  .checkbox-group { grid-template-columns: 1fr; }
}
