/* ==========================================
   GESTCORE – style.css
   Paleta: Azul marino #1B2A4A + Dorado #C9A84C
   ========================================== */

:root {
  --navy:      #1B2A4A;
  --navy-mid:  #243659;
  --navy-lt:   #2e4575;
  --gold:      #C9A84C;
  --gold-lt:   #e0c06e;
  --gold-dk:   #a8873a;
  --white:     #ffffff;
  --off:       #f7f8fc;
  --gray:      #64748b;
  --gray-lt:   #e2e8f0;
  --text:      #1e293b;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(27,42,74,.12);
  --shadow-lg: 0 8px 48px rgba(27,42,74,.18);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* ---- UTILITIES ---- */
.container     { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.gold-text     { color: var(--gold); }
.section       { padding: 96px 0; }
.section-label { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); background: rgba(201,168,76,.1); padding: 4px 14px; border-radius: 20px; margin-bottom: 16px; }
.section-title { font-family: var(--font-display); font-size: clamp(1.75rem, 3.5vw, 2.6rem); line-height: 1.2; color: var(--navy); margin-bottom: 16px; }
.section-desc  { color: var(--gray); max-width: 560px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.two-col       { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }

/* ---- REVEAL ANIMATION ---- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ==========================================
   NAVBAR — Azul marino sólido
   ========================================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #020f2c;
  border-bottom: 1px solid rgba(201,168,76,.2);
  transition: background .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: #162240;
  box-shadow: 0 2px 24px rgba(0,0,0,.4);
}

.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 70px;
}
.logo-link { display: flex; align-items: center; gap: 10px; }

.logo-img {
  height: 64px;
  width: auto;
  object-fit: contain;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.logo-fallback { display: flex; align-items: center; gap: 10px; }
.logo-g        { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name     { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--white); letter-spacing: .06em; }
.logo-sub      { font-size: .65rem; color: var(--gold-lt); letter-spacing: .04em; }

.nav-links { display: flex; gap: 8px; }
.nav-links a { color: rgba(255,255,255,.85); font-size: .9rem; font-weight: 500; padding: 6px 14px; border-radius: 6px; transition: color .2s, background .2s; }
.nav-links a:hover,
.nav-links a.active { color: var(--gold); background: rgba(201,168,76,.1); }

.btn-nav {
  display: flex; align-items: center; gap: 8px;
  color: var(--white); font-weight: 600; font-size: .85rem;
  padding: 8px 18px; border-radius: 6px;
  border: 1.5px solid rgba(201,168,76,.6);
  background: transparent; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
  letter-spacing: .02em;
}
.btn-nav::before {
  content: '';
  display: inline-block; width: 14px; height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2'%3E%3Cpath d='M22 16.92v3a2 2 0 01-2.18 2 19.79 19.79 0 01-8.63-3.07A19.5 19.5 0 013.95 10.93 19.79 19.79 0 01.88 2.28 2 2 0 012.86.1h3a2 2 0 012 1.72c.127.96.361 1.903.7 2.81a2 2 0 01-.45 2.11L7.09 7.91a16 16 0 006 6l1.27-1.27a2 2 0 012.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0122 16.92z'/%3E%3C/svg%3E");
  background-size: contain; background-repeat: no-repeat; flex-shrink: 0;
}
.btn-nav:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.08); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================
   HERO
   ========================================== */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  display: flex; align-items: center; background-color: var(--navy);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,42,74,.88) 0%, rgba(27,42,74,.75) 55%, rgba(26,48,96,.84) 100%); z-index: 1; }
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 120px 24px 80px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero-content   { animation: heroIn .9s ease both; }
.hero-image-col { display: flex; flex-direction: column; gap: 18px; animation: heroIn 1.1s ease .2s both; }
@keyframes heroIn { from { opacity:0; transform: translateY(40px); } to { opacity:1; transform:none; } }

.hero-badge { display: inline-block; background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.4); color: var(--gold-lt); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 16px; border-radius: 20px; margin-bottom: 24px; }
.hero-title { font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; color: var(--white); line-height: 1.15; margin-bottom: 22px; }
.hero-desc  { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 520px; margin-bottom: 36px; }
.hero-ctas  { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.btn-primary  { background: var(--gold); color: var(--navy); font-weight: 700; font-size: .95rem; padding: 13px 28px; border-radius: 8px; border: none; cursor: pointer; transition: background .2s, transform .15s, box-shadow .2s; display: inline-block; }
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(201,168,76,.4); }
.btn-full { width: 100%; text-align: center; padding: 15px; font-size: 1rem; }
.btn-secondary { background: transparent; color: var(--white); font-weight: 600; font-size: .95rem; padding: 12px 28px; border-radius: 8px; border: 2px solid rgba(255,255,255,.35); cursor: pointer; transition: border-color .2s, color .2s, transform .15s; display: inline-block; }
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.hero-stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.stat       { display: flex; flex-direction: column; }
.stat-num   { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.6); margin-top: 4px; }
.stat-div   { width: 1px; height: 40px; background: rgba(255,255,255,.2); }

.hero-card-float { background: rgba(255,255,255,.09); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(201,168,76,.3); border-radius: 14px; padding: 18px 22px; display: flex; align-items: center; gap: 16px; color: var(--white); transition: transform .3s, background .3s; }
.hero-card-float:hover { transform: translateX(8px); background: rgba(255,255,255,.15); }
.hc-icon-box { width: 42px; height: 42px; flex-shrink: 0; color: var(--gold); }
.hc-icon-box svg { width: 100%; height: 100%; }
.hero-card-float strong { display: block; font-weight: 600; font-size: .95rem; }
.hero-card-float small  { font-size: .8rem; color: rgba(255,255,255,.6); }
.hero-card-1 { animation: floatA 5s ease-in-out infinite; }
.hero-card-2 { animation: floatA 5s ease-in-out infinite .8s; }
.hero-card-3 { animation: floatA 5s ease-in-out infinite 1.6s; }
@keyframes floatA { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }

/* ==========================================
   TICKER
   ========================================== */
.ticker-wrap  { background: var(--gold); overflow: hidden; padding: 12px 0; }
.ticker-track { display: flex; gap: 40px; white-space: nowrap; animation: ticker 30s linear infinite; }
.ticker-track span { font-size: .85rem; font-weight: 700; color: var(--navy); letter-spacing: .05em; text-transform: uppercase; }
.ticker-track .sep { color: var(--navy-mid); opacity: .5; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================
   NOSOTROS
   ========================================== */
.nosotros { background: var(--white); }
.nosotros-text p { color: var(--gray); margin-bottom: 16px; }
.nosotros-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.badge-item  { background: var(--off); color: var(--navy); font-size: .82rem; font-weight: 600; padding: 7px 14px; border-radius: 6px; display: flex; align-items: center; gap: 6px; }
.badge-check { color: var(--gold); font-weight: 700; font-size: 1rem; }
.nosotros-img-col  { display: flex; flex-direction: column; gap: 24px; }
.nosotros-img-wrap { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.nosotros-img      { width: 100%; height: 300px; object-fit: cover; display: block; transition: transform .5s ease; }
.nosotros-img-wrap:hover .nosotros-img { transform: scale(1.04); }
.mv-cards    { display: flex; flex-direction: column; gap: 24px; }
.mv-card     { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); transition: transform .3s; }
.mv-card:hover { transform: translateY(-4px); }
.mv-card-gold { background: linear-gradient(135deg, var(--gold-dk), var(--gold)); }
.mv-icon-svg { width: 36px; height: 36px; margin-bottom: 14px; color: var(--gold); }
.mv-icon-svg svg { width: 100%; height: 100%; }
.mv-card-gold .mv-icon-svg { color: var(--navy); }
.mv-card h3  { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 10px; color: var(--gold); }
.mv-card p   { font-size: .9rem; line-height: 1.7; opacity: .9; color: rgba(255,255,255,.85); }
.mv-card-gold h3, .mv-card-gold p { color: var(--navy); opacity: 1; }

/* ==========================================
   SERVICIOS
   ========================================== */
.servicios { background: var(--off); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card { background: var(--white); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); border: 1px solid var(--gray-lt); transition: transform .3s, box-shadow .3s, border-color .3s; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--navy), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(201,168,76,.3); }
.service-card:hover::before { transform: scaleX(1); }
.sc-img-wrap { height: 200px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; margin: -32px -28px 22px; }
.sc-img      { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.service-card:hover .sc-img { transform: scale(1.06); }
.sc-icon-wrap { width: 48px; height: 48px; color: var(--navy); margin-bottom: 14px; }
.sc-icon-wrap svg { width: 100%; height: 100%; }
.service-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy); margin-bottom: 10px; line-height: 1.3; }
.service-card p  { font-size: .88rem; color: var(--gray); line-height: 1.7; margin-bottom: 14px; }
.sc-list { margin-top: 12px; }
.sc-list li { font-size: .85rem; color: var(--text); padding: 5px 0 5px 18px; position: relative; border-bottom: 1px solid var(--gray-lt); }
.sc-list li::before { content: '▸'; position: absolute; left: 0; color: var(--gold); font-size: .75rem; top: 7px; }
.sc-list li:last-child { border-bottom: none; }
.sc-cta { display: inline-block; margin-top: 18px; background: transparent; color: var(--navy); font-size: .85rem; font-weight: 700; padding: 9px 20px; border-radius: 8px; border: 2px solid var(--navy); transition: background .2s, color .2s; }
.sc-cta:hover { background: var(--navy); color: var(--white); }

/* ==========================================
   MODELO / PROCESO
   ========================================== */
.modelo { background: var(--white); }
.proceso-steps { display: flex; flex-direction: column; position: relative; margin-bottom: 80px; }
.proceso-steps::before { content: ''; position: absolute; left: 28px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--gold), var(--navy)); }
.paso { display: flex; gap: 28px; align-items: flex-start; padding: 24px 24px 24px 0; }
.paso-num { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 1rem; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; box-shadow: 0 0 0 6px rgba(201,168,76,.15); transition: background .3s; }
.paso:hover .paso-num { background: var(--gold); color: var(--navy); }
.paso-body h4 { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.paso-body p  { font-size: .88rem; color: var(--gray); }
.why-us    { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.why-right { display: flex; flex-direction: column; gap: 20px; }
.ciudad-img-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.ciudad-img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .5s; }
.ciudad-img-wrap:hover .ciudad-img { transform: scale(1.04); }
.why-text p   { color: var(--gray); margin-bottom: 28px; }
.why-items    { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why-item     { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; color: var(--text); }
.wi-icon      { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.wi-icon svg  { width: 100%; height: 100%; }
.why-nums  { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wn-card   { background: var(--off); border-radius: var(--radius); padding: 28px; text-align: center; border: 1px solid var(--gray-lt); transition: transform .3s; }
.wn-card:hover { transform: translateY(-4px); }
.wn-gold   { background: var(--navy); border-color: var(--navy); }
.wn-num    { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.wn-label  { display: block; font-size: .8rem; color: var(--gray); margin-top: 6px; }
.wn-gold .wn-num, .wn-gold .wn-label { color: var(--gold) !important; }

/* ==========================================
   CONTACTO
   ========================================== */
.contacto { position: relative; background-color: var(--off); background-size: cover; background-position: center; padding: 96px 0; }
.contacto-overlay { position: absolute; inset: 0; background: rgba(247,248,252,.94); z-index: 0; }
.contacto > .container { position: relative; z-index: 1; }
.two-col-contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact-info p  { color: var(--gray); margin-bottom: 32px; }
.contact-items   { display: flex; flex-direction: column; gap: 24px; }
.ci              { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon         { width: 48px; height: 48px; min-width: 48px; background: var(--navy); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; padding: 12px; color: var(--gold); }
.ci-icon svg     { width: 100%; height: 100%; }
.ci div          { display: flex; flex-direction: column; gap: 4px; }
.ci strong       { font-size: .85rem; color: var(--navy); font-weight: 700; }
.ci a, .ci span  { font-size: .9rem; color: var(--gray); transition: color .2s; display: block; }
.ci a:hover      { color: var(--gold); }
.contact-form    { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow-lg); }
.contact-form h3 { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); margin-bottom: 28px; }
.form-group      { margin-bottom: 20px; }
.form-row        { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label            { display: block; font-size: .82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; letter-spacing: .02em; }
input, select, textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--gray-lt); border-radius: 8px; font-family: var(--font-body); font-size: .9rem; color: var(--text); background: var(--off); transition: border-color .2s, box-shadow .2s; outline: none; appearance: none; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,42,74,.08); background: var(--white); }
textarea         { resize: vertical; min-height: 110px; }
.form-msg        { margin-top: 14px; font-size: .88rem; padding: 10px 14px; border-radius: 6px; display: none; }
.form-msg.success { background: #d1fae5; color: #065f46; display: block; }
.form-msg.error   { background: #fee2e2; color: #991b1b; display: block; }

/* ==========================================
   FOOTER
   ========================================== */
.footer       { background: var(--navy); color: rgba(255,255,255,.75); padding: 64px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand p { font-size: .88rem; margin: 14px 0 22px; line-height: 1.7; }
.footer-logo { height: 52px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.footer-col h4 { font-family: var(--font-display); font-size: .95rem; color: var(--gold); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li, .footer-col a { font-size: .87rem; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { text-align: center; padding: 18px; font-size: .82rem; color: rgba(255,255,255,.4); }

/* ==========================================
   WHATSAPP FAB
   ========================================== */
.whatsapp-fab { position: fixed; bottom: 28px; right: 28px; z-index: 999; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 20px rgba(37,211,102,.5); transition: transform .2s, box-shadow .2s; }
.whatsapp-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.65); }
.whatsapp-fab svg { width: 28px; height: 28px; }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .services-grid   { grid-template-columns: repeat(2, 1fr); }
  .hero-inner      { grid-template-columns: 1fr; text-align: center; padding: 120px 24px 60px; }
  .hero-image-col  { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .hero-card-float:last-child { grid-column: span 2; }
  .hero-ctas       { justify-content: center; }
  .hero-stats      { justify-content: center; }
  .two-col         { grid-template-columns: 1fr; gap: 48px; }
  .why-us          { grid-template-columns: 1fr; }
  .footer-inner    { grid-template-columns: 1fr 1fr; }
  .two-col-contact { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: #1B2A4A; padding: 20px; border-bottom: 1px solid rgba(201,168,76,.2); gap: 4px; }
  .services-grid  { grid-template-columns: 1fr; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-inner   { grid-template-columns: 1fr; gap: 32px; }
  .why-items      { grid-template-columns: 1fr; }
  .why-nums       { grid-template-columns: 1fr 1fr; }
  .hero-image-col { grid-template-columns: 1fr; }
  .hero-card-float:last-child { grid-column: span 1; }
  .proceso-steps::before { left: 24px; }
}

@media (max-width: 480px) {
  .section      { padding: 64px 0; }
  .hero-stats   { gap: 20px; }
  .stat-num     { font-size: 1.5rem; }
  .why-nums     { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wn-num       { font-size: 1.8rem; }
  .contact-form { padding: 24px; }
}
