:root {
--navy:   #1A365D;
--blue:   #2C5282;
--gold:   #C9A84C;
--gold-lt:#E8C97A;
--white:  #FFFFFF;
--off:    #F7F9FC;
--gray:   #6B7280;
--dark:   #111827;
--border: #E2E8F0;
}

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

html { scroll-behavior: smooth; }

body {
font-family: 'Lato', sans-serif;
color: var(--dark);
background: var(--white);
overflow-x: hidden;
}

/* ── NAVBAR ── */
nav {
position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
display: flex; align-items: center; justify-content: space-between;
padding: 0 5%;
height: 72px;
background: rgba(26,54,93,0.96);
backdrop-filter: blur(8px);
border-bottom: 1px solid rgba(201,168,76,0.3);
transition: background .3s;
}

.nav-logo {
display: flex; align-items: center; gap: 12px;
text-decoration: none;
}

/* El tamaño del icono se adapta proporcionalmente al font-size gracias al 'em' */
.nav-logo-icon {
  width: 4em;        
  height: 4em;
  flex-shrink: 0;      /* Evita que el círculo se deforme */
}

.nav-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;  /* Equivale a rounded-full */
}

.nav-logo-text { line-height: 1.1; }
.nav-logo-text strong {
display: block;
font-family: 'Playfair Display', serif;
font-size: 13px; font-weight: 700;
color: var(--white);
letter-spacing: .5px;
}

.nav-logo-text span {
font-size: 10px; font-weight: 300;
color: var(--gold-lt);
letter-spacing: 1.5px; text-transform: uppercase;
}

.nav-links {
display: flex; align-items: center; gap: 32px;
list-style: none;
}
.nav-links a {
color: rgba(255,255,255,.82);
text-decoration: none;
font-size: 13px; font-weight: 400;
letter-spacing: .6px; text-transform: uppercase;
transition: color .2s;
}
.nav-links a:hover { color: var(--gold-lt); }

.nav-cta {
background: var(--gold);
color: var(--navy) !important;
font-weight: 700 !important;
padding: 9px 22px;
border-radius: 3px;
transition: background .2s, transform .15s !important;
}
.nav-cta:hover { background: var(--gold-lt) !important; transform: translateY(-1px); }

/* ── HERO ── */
#inicio {
min-height: 100vh;
background:
  linear-gradient(160deg, rgba(26,54,93,.88) 0%, rgba(17,24,39,.75) 100%),
  url('../img/ciudad.jpg') center/cover no-repeat;
display: flex; align-items: center;
padding: 0 5%;
position: relative;
overflow: hidden;
}

#inicio::after {
content: '';
position: absolute; bottom: 0; left: 0; right: 0;
height: 120px;
background: linear-gradient(to top, var(--white), transparent);
}

.hero-inner {
max-width: 1000px;
animation: fadeUp .9s ease both;
}

.hero-tag {
display: inline-block;
border: 1px solid var(--gold);
color: var(--gold);
font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
padding: 5px 14px; border-radius: 2px;
margin-bottom: 28px;
}

.hero-inner h1 {
font-family: 'Playfair Display', serif;
font-size: clamp(36px, 5vw, 60px);
font-weight: 700; line-height: 1.12;
color: var(--white);
margin-bottom: 22px;
}

.hero-inner h1 em {
font-style: italic; color: var(--gold-lt);
}

.hero-inner p {
font-size: 17px; font-weight: 300; line-height: 1.7;
color: rgba(255,255,255,.82);
margin-bottom: 36px;
max-width: 560px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
background: var(--gold);
color: var(--navy);
font-family: 'Lato', sans-serif;
font-size: 14px; font-weight: 700;
letter-spacing: .5px;
padding: 14px 32px;
border: none; border-radius: 3px;
cursor: pointer; text-decoration: none;
transition: background .2s, transform .15s;
display: inline-block;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }

.btn-outline {
background: transparent;
color: var(--white);
font-family: 'Lato', sans-serif;
font-size: 14px; font-weight: 400;
letter-spacing: .5px;
padding: 14px 32px;
border: 1px solid rgba(255,255,255,.5);
border-radius: 3px;
cursor: pointer; text-decoration: none;
transition: border-color .2s, color .2s;
display: inline-block;
}
.btn-outline:hover { border-color: var(--gold-lt); color: var(--gold-lt); }

/* Stats bar */
.stats-bar {
position: absolute; bottom: 0; left: 0; right: 0;
z-index: 2;
display: flex; justify-content: center; gap: 0;
background: var(--navy);
border-top: 2px solid var(--gold);
}
.stat-item {
flex: 1; max-width: 220px;
padding: 22px 0;
text-align: center;
border-right: 1px solid rgba(255,255,255,.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
font-family: 'Playfair Display', serif;
font-size: 28px; font-weight: 700;
color: var(--gold);
display: block;
}
.stat-label {
font-size: 11px; font-weight: 300;
color: rgba(255,255,255,.7);
letter-spacing: 1px; text-transform: uppercase;
}

/* ── SECTION BASE ── */
section { padding: 96px 5%; }

.section-tag {
display: inline-block;
font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
color: var(--gold);
font-weight: 700;
margin-bottom: 12px;
}

.section-title {
font-family: 'Playfair Display', serif;
font-size: clamp(28px, 3.5vw, 42px);
font-weight: 700; line-height: 1.2;
color: var(--navy);
margin-bottom: 16px;
}

.section-sub {
font-size: 16px; font-weight: 300; line-height: 1.7;
color: var(--gray);
max-width: 560px;
margin-bottom: 56px;
}

.gold-line {
width: 48px; height: 3px;
background: var(--gold);
margin: 14px 0 20px;
}

/* ── NOSOTROS ── */
#nosotros {
background: var(--off);
display: grid;
grid-template-columns: 1fr 1fr;
gap: 80px;
align-items: center;
}

.nosotros-img {
border-radius: 4px;
overflow: hidden;
position: relative;
}
.nosotros-img img {
width: 100%; height: 480px;
object-fit: cover; display: block;
border-radius: 4px;
}
.nosotros-img::before {
content: '';
position: absolute; inset: -10px 10px 10px -10px;
border: 2px solid var(--gold);
border-radius: 4px;
z-index: -1;
}

.nosotros-text .section-sub { margin-bottom: 36px; }

.valores-grid {
display: grid; grid-template-columns: 1fr 1fr;
gap: 18px;
}
.valor-card {
background: var(--white);
border: 1px solid var(--border);
border-left: 3px solid var(--gold);
padding: 18px 20px;
border-radius: 3px;
}
.valor-card .icon { font-size: 22px; margin-bottom: 8px; }
.valor-card h4 {
font-family: 'Playfair Display', serif;
font-size: 14px; font-weight: 700;
color: var(--navy);
margin-bottom: 4px;
}
.valor-card p { font-size: 12.5px; color: var(--gray); line-height: 1.5; }

/* ── SERVICIOS ── */
#servicios { background: var(--white); text-align: center; }
#servicios .section-sub { margin-left: auto; margin-right: auto; }
#servicios .gold-line { margin: 14px auto 20px; }

.servicios-grid {
display: grid; grid-template-columns: repeat(3, 1fr);
gap: 28px;
text-align: left;
}

.servicio-card {
border: 1px solid var(--border);
border-radius: 4px;
padding: 40px 32px;
position: relative; overflow: hidden;
transition: box-shadow .3s, transform .3s;
background: var(--white);
}
.servicio-card::before {
content: '';
position: absolute; top: 0; left: 0; right: 0; height: 3px;
background: var(--gold);
transform: scaleX(0); transform-origin: left;
transition: transform .3s;
}
.servicio-card:hover { box-shadow: 0 12px 40px rgba(26,54,93,.12); transform: translateY(-4px); }
.servicio-card:hover::before { transform: scaleX(1); }

.serv-num {
font-family: 'Playfair Display', serif;
font-size: 48px; font-weight: 700;
color: rgba(26,54,93,.08);
line-height: 1;
margin-bottom: 16px;
}
.serv-icon { font-size: 32px; margin-bottom: 16px; }
.serv-title {
font-family: 'Playfair Display', serif;
font-size: 20px; font-weight: 700;
color: var(--navy);
margin-bottom: 12px;
}
.serv-desc { font-size: 14.5px; color: var(--gray); line-height: 1.7; margin-bottom: 24px; }
.serv-link {
font-size: 13px; font-weight: 700;
color: var(--gold);
text-decoration: none;
letter-spacing: .5px;
text-transform: uppercase;
display: flex; align-items: center; gap: 6px;
transition: gap .2s;
}
.serv-link:hover { gap: 10px; }

/* ── POR QUÉ ELEGIRNOS ── */
#diferenciadores {
background: var(--navy);
color: var(--white);
text-align: center;
}
#diferenciadores .section-title { color: var(--white); }
#diferenciadores .section-sub { color: rgba(255,255,255,.65); margin: 0 auto 56px; }
#diferenciadores .gold-line { margin: 14px auto 20px; }

.dif-grid {
display: grid; grid-template-columns: repeat(4, 1fr);
gap: 24px;
}

.dif-card {
background: rgba(255,255,255,.05);
border: 1px solid rgba(201,168,76,.25);
border-radius: 4px;
padding: 36px 24px;
transition: background .3s;
}
.dif-card:hover { background: rgba(201,168,76,.08); }
.dif-icon { font-size: 36px; margin-bottom: 16px; }
.dif-card h3 {
font-family: 'Playfair Display', serif;
font-size: 17px; font-weight: 700;
color: var(--gold-lt);
margin-bottom: 10px;
}
.dif-card p { font-size: 13.5px; color: rgba(255,255,255,.62); line-height: 1.6; }

/* ── TESTIMONIOS ── */
#testimonios { background: var(--off); text-align: center; }
#testimonios .section-sub { margin: 0 auto 56px; }
#testimonios .gold-line { margin: 14px auto 20px; }

.testi-grid {
display: grid; grid-template-columns: repeat(3, 1fr);
gap: 28px; text-align: left;
}

.testi-card {
background: var(--white);
border: 1px solid var(--border);
border-radius: 4px;
padding: 36px 28px;
position: relative;
}
.testi-card::before {
content: '"';
font-family: 'Playfair Display', serif;
font-size: 80px; font-weight: 700;
color: var(--gold);
opacity: .15;
position: absolute; top: 10px; left: 22px;
line-height: 1;
}

.testi-stars { color: var(--gold); font-size: 14px; margin-bottom: 16px; letter-spacing: 2px; }
.testi-quote { font-size: 14.5px; line-height: 1.75; color: #374151; margin-bottom: 24px; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 14px; }
.testi-avatar {
width: 44px; height: 44px; border-radius: 50%;
background: var(--navy);
display: flex; align-items: center; justify-content: center;
font-family: 'Playfair Display', serif;
font-size: 16px; font-weight: 700; color: var(--gold);
flex-shrink: 0;
}
.testi-name { font-weight: 700; font-size: 14px; color: var(--navy); }
.testi-role { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* ── FAQ ── */
#faq { background: var(--white); }
.faq-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
border: 1px solid var(--border);
border-radius: 4px;
overflow: hidden;
}
.faq-q {
width: 100%; background: none; border: none;
padding: 20px 24px;
display: flex; justify-content: space-between; align-items: center;
font-family: 'Lato', sans-serif;
font-size: 15px; font-weight: 700;
color: var(--navy);
cursor: pointer;
text-align: left;
transition: background .2s;
}
.faq-q:hover { background: var(--off); }
.faq-q .arrow {
font-size: 18px; color: var(--gold);
transition: transform .3s;
flex-shrink: 0;
}
.faq-item.open .faq-q { background: var(--off); }
.faq-item.open .arrow { transform: rotate(45deg); }
.faq-a {
max-height: 0; overflow: hidden;
transition: max-height .35s ease, padding .3s;
font-size: 14.5px; color: var(--gray); line-height: 1.7;
padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 20px; }

/* ── CONTACTO ── */
#contacto { background: var(--off); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: start; }

.contact-info h3 {
font-family: 'Playfair Display', serif;
font-size: 22px; font-weight: 700;
color: var(--navy); margin-bottom: 20px;
}
.contact-detail {
display: flex; align-items: flex-start; gap: 14px;
margin-bottom: 22px;
}
.contact-detail .ci-icon {
width: 42px; height: 42px;
background: var(--navy);
border-radius: 4px;
display: flex; align-items: center; justify-content: center;
font-size: 18px; flex-shrink: 0;
}
.contact-detail .ci-text strong { display: block; font-size: 13px; color: var(--navy); margin-bottom: 2px; }
.contact-detail .ci-text a, .contact-detail .ci-text span {
font-size: 14px; color: var(--gray); text-decoration: none;
}
.contact-detail .ci-text a:hover { color: var(--gold); }

.contact-form {
background: var(--white);
border: 1px solid var(--border);
border-radius: 4px;
padding: 40px 36px;
}
.contact-form h3 {
font-family: 'Playfair Display', serif;
font-size: 22px; color: var(--navy);
margin-bottom: 28px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--navy); text-transform: uppercase; margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
width: 100%; padding: 12px 16px;
border: 1px solid var(--border);
border-radius: 3px;
font-family: 'Lato', sans-serif;
font-size: 14px; color: var(--dark);
background: var(--white);
outline: none; resize: none;
transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus {
border-color: var(--blue);
box-shadow: 0 0 0 3px rgba(44,82,130,.12);
}
.form-group textarea { height: 110px; }
.btn-submit {
width: 100%;
background: var(--navy);
color: var(--white);
font-family: 'Lato', sans-serif;
font-size: 14px; font-weight: 700;
letter-spacing: 1px; text-transform: uppercase;
padding: 16px;
border: none; border-radius: 3px;
cursor: pointer;
transition: background .2s, transform .15s;
margin-top: 8px;
}
.btn-submit:hover { background: var(--blue); transform: translateY(-1px); }

/* ── FOOTER ── */
footer {
background: #0D1F35;
color: rgba(255,255,255,.7);
padding: 64px 5% 32px;
}
.footer-top {
display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
gap: 48px; margin-bottom: 48px;
}
.footer-brand p { font-size: 13.5px; line-height: 1.7; margin: 16px 0 24px; color: rgba(255,255,255,.55); }
.footer-social { display: flex; gap: 10px; }
.soc-btn {
width: 36px; height: 36px;
border: 1px solid rgba(255,255,255,.2);
border-radius: 3px;
display: flex; align-items: center; justify-content: center;
font-size: 15px; text-decoration: none;
transition: border-color .2s, background .2s;
}
.soc-btn:hover { border-color: var(--gold); background: rgba(201,168,76,.1); }

.footer-col h4 {
font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
color: var(--gold);
font-weight: 700; margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13.5px; color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.footer-col a:hover { color: var(--gold-lt); }

.footer-bottom {
border-top: 1px solid rgba(255,255,255,.08);
padding-top: 28px;
display: flex; justify-content: space-between; align-items: center;
font-size: 12px; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* ── WHATSAPP FLOTANTE ── */
.wa-btn {
position: fixed; bottom: 28px; right: 28px; z-index: 999;
width: 58px; height: 58px;
background: #25D366;
border-radius: 50%;
display: flex; align-items: center; justify-content: center;
font-size: 28px; text-decoration: none;
box-shadow: 0 4px 20px rgba(37,211,102,.4);
transition: transform .2s, box-shadow .2s;
animation: pulse 2.5s infinite;
}
.wa-btn:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,.55); animation: none; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
from { opacity: 0; transform: translateY(30px); }
to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
50%       { box-shadow: 0 4px 30px rgba(37,211,102,.65); }
}

.reveal {
opacity: 0; transform: translateY(24px);
transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
.servicios-grid, .dif-grid, .testi-grid,
.footer-top { grid-template-columns: 1fr 1fr; }
#nosotros, .faq-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
.nosotros-img { display: none; }
nav .nav-links { display: none; }
}
@media (max-width: 560px) {
.servicios-grid, .dif-grid, .testi-grid,
.footer-top { grid-template-columns: 1fr; }
.stats-bar { flex-wrap: wrap; }
.form-row { grid-template-columns: 1fr; }
}