* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; width: 100%; max-width: 100%; overflow-x: hidden; }
body { font-family: 'Manrope', sans-serif; color: #10203B; background: #FDFDFC; width: 100%; max-width: 100%; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
body.nav-open { overflow: hidden; }
::selection { background: #14294A; color: #F1E9D8; }
a { color: inherit; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* NAV */
.nav-wrap { position: sticky; top: 0; z-index: 50; }
.nav { position: relative; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 8px 48px; background: #0B1526; backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 199px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link { font-size: 13.5px; color: #FFFFFF; text-decoration: none; font-weight: 500; border-bottom: 1px solid transparent; padding-bottom: 3px; transition: border-color .3s ease; }
.nav-link:hover { border-bottom-color: #A98B5D; }
.nav-cta { font-size: 13px; color: #FFFFFF; background: #A98B5D; text-decoration: none; font-weight: 600; padding: 11px 22px; border-radius: 2px; letter-spacing: 0.3px; white-space: nowrap; transition: all .3s cubic-bezier(0.22,1,0.36,1); }
.nav-cta:hover { background: #927A4E; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(169,139,93,0.35); }
.nav-cta:active { transform: scale(0.98); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px; width: 32px; height: 32px; background: none; border: none; cursor: pointer; padding: 0; flex-shrink: 0; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #FFFFFF; border-radius: 2px; transition: transform .3s ease, opacity .3s ease, width .3s ease; }
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 26px; }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 26px; }

.nav-mobile { display: none; flex-direction: column; background: #0B1526; overflow: hidden; max-height: 0; transition: max-height .35s ease; position: absolute; top: 100%; left: 0; right: 0; width: 100%; }
.nav-mobile.is-open { display: flex; max-height: 400px; }
.nav-mobile-link { padding: 16px 24px; color: #FFFFFF; text-decoration: none; font-size: 15px; font-weight: 500; border-top: 1px solid rgba(255,255,255,0.08); }
.nav-mobile-cta { margin: 16px 24px 22px; text-align: center; color: #FFFFFF; background: #A98B5D; text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 2px; font-size: 14px; }

/* HERO */
.hero { position: relative; background: #0E1C33; color: #F3F5F8; padding: 120px 48px 130px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: url('../images/hero-office.jpeg'); background-size: cover; background-position: center right; background-repeat: no-repeat; animation: heroZoom 13s ease-in-out infinite alternate; will-change: transform; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, #16233F 0%, rgba(22,35,63,0.75) 28%, rgba(22,35,63,0.25) 55%, rgba(22,35,63,0) 78%); }
.hero-circle-1 { position: absolute; top: 90px; right: 130px; width: 320px; height: 320px; border: 1px solid rgba(169,139,93,0.22); border-radius: 50%; }
.hero-circle-2 { position: absolute; top: 170px; right: 210px; width: 320px; height: 320px; border: 1px solid rgba(255,255,255,0.06); border-radius: 50%; }
.hero-content { position: relative; max-width: 1180px; margin: 0 auto; transform: translateX(-48px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 34px; opacity: 0; animation: fadeUp .8s cubic-bezier(0.22,1,0.36,1) 0.05s both; }
.eyebrow-line { width: 28px; height: 1px; background: #A98B5D; }
.eyebrow-text { font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; color: #C2A874; font-weight: 600; }
.hero-title { font-family: 'Spectral', serif; font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 1.06; letter-spacing: -0.5px; max-width: 900px; text-wrap: balance; opacity: 0; animation: fadeUp .8s cubic-bezier(0.22,1,0.36,1) 0.18s both; }
.hero-title em { font-style: italic; color: #E8D9BB; }
.hero-text { margin-top: 30px; font-size: 18.5px; line-height: 1.6; color: #AEB9CC; max-width: 560px; font-weight: 400; opacity: 0; animation: fadeUp .8s cubic-bezier(0.22,1,0.36,1) 0.32s both; }
.hero-buttons { display: flex; gap: 16px; margin-top: 44px; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s cubic-bezier(0.22,1,0.36,1) 0.46s both; }
.btn-primary { font-size: 14px; color: #0E1C33; background: #E8D9BB; text-decoration: none; font-weight: 600; padding: 15px 30px; border-radius: 2px; letter-spacing: 0.2px; transition: all .3s cubic-bezier(0.22,1,0.36,1); display: inline-block; }
.btn-primary:hover { background: #DDC79E; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.18); }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary { font-size: 14px; color: #E3E8F0; background: transparent; text-decoration: none; font-weight: 600; padding: 15px 30px; border-radius: 2px; border: 1px solid rgba(255,255,255,0.2); transition: all .3s cubic-bezier(0.22,1,0.36,1); display: inline-block; }
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: rgba(232,217,187,0.5); transform: translateY(-2px); }
.btn-secondary:active { transform: scale(0.98); }
.hero-values { display: flex; gap: 56px; margin-top: 76px; flex-wrap: wrap; opacity: 0; animation: fadeUp .8s cubic-bezier(0.22,1,0.36,1) 0.6s both; }
.value-glass { background: rgba(14,28,51,0.12); backdrop-filter: blur(11px); -webkit-backdrop-filter: blur(11px); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06); padding: 10px 14px; }
.value-glass-title { font-family: 'Spectral', serif; font-size: 15px; color: #E8D9BB; letter-spacing: 1px; }
.value-glass-text { font-size: 13px; color: #8794AB; margin-top: 6px; }

/* POSICIONAMIENTO */
.section-position { padding: 110px 48px; background: #FDFDFC; }
.position-inner { max-width: 1000px; margin: 0 auto; text-align: center; }
.section-label { font-size: 11.5px; letter-spacing: 3px; text-transform: uppercase; color: #A98B5D; font-weight: 600; }
.position-quote { font-family: 'Spectral', serif; font-weight: 300; font-size: clamp(26px, 3.6vw, 42px); line-height: 1.34; margin-top: 30px; color: #14294A; text-wrap: balance; }
.position-quote em { font-style: italic; color: #A98B5D; }

/* SERVICIOS */
.section-servicios { padding: 100px 48px; background: #F4F5F7; }
.servicios-inner { max-width: 1180px; margin: 0 auto; }
.servicios-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 56px; flex-wrap: wrap; }
.servicios-title { font-family: 'Spectral', serif; font-weight: 400; font-size: clamp(30px, 4vw, 48px); line-height: 1.1; color: #14294A; max-width: 620px; }
.servicios-subtitle { font-size: 15px; line-height: 1.6; color: #5A6478; max-width: 320px; }
.servicios-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #E1E4E9; border: 1px solid #E1E4E9; }
.servicio-card { background: #FDFDFC; padding: 44px 40px; position: relative; transition: transform .35s cubic-bezier(0.22,1,0.36,1), box-shadow .35s cubic-bezier(0.22,1,0.36,1); z-index: 1; }
.servicio-card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(20,41,74,0.10); z-index: 2; }
.servicio-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.servicio-num { font-family: 'Spectral', serif; font-size: 15px; color: #A98B5D; font-weight: 500; }
.servicio-title { font-family: 'Spectral', serif; font-weight: 500; font-size: 24px; color: #14294A; }
.servicio-desc { font-size: 14.5px; line-height: 1.6; color: #5A6478; margin-bottom: 24px; }
.servicio-items { display: flex; flex-direction: column; gap: 11px; border-top: 1px solid #EDEFF2; padding-top: 22px; }
.servicio-item { display: flex; align-items: center; gap: 12px; }
.servicio-dot { width: 4px; height: 4px; background: #A98B5D; transform: rotate(45deg); flex-shrink: 0; }
.servicio-item-text { font-size: 14.5px; color: #2C3A52; font-weight: 500; }

/* DIFERENCIADOR */
.diferenciador { padding: 120px 48px; background: #0E1C33; color: #F3F5F8; }
.diferenciador-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.diferenciador-title { font-family: 'Spectral', serif; font-weight: 400; font-size: clamp(30px, 4vw, 46px); line-height: 1.14; margin-bottom: 26px; }
.diferenciador-title em { font-style: italic; color: #E8D9BB; }
.diferenciador-text { font-size: 17px; line-height: 1.65; color: #AEB9CC; max-width: 480px; }
.promesas { display: flex; flex-direction: column; gap: 1px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.08); }
.promesa-row { background: #0E1C33; padding: 26px 30px; display: flex; align-items: baseline; gap: 22px; }
.promesa-no { font-size: 13.5px; color: #6D7A92; text-decoration: line-through; min-width: 150px; }
.promesa-si { font-size: 16px; color: #E8D9BB; font-family: 'Spectral', serif; }

/* NOSOTROS */
.nosotros { padding: 110px 48px; background: #FDFDFC; }
.nosotros-inner { max-width: 1180px; margin: 0 auto; }
.nosotros-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: stretch; }
.panel-editorial { background: #FCFBF8; border: 1px solid #EDE9E0; border-radius: 18px; box-shadow: 0 2px 18px rgba(20,41,74,0.04); padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; }
.panel-title { font-family: 'Spectral', serif; font-weight: 400; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; color: #14294A; margin-bottom: 24px; }
.panel-text { font-size: 16px; line-height: 1.7; color: #5A6478; margin-bottom: 38px; max-width: 500px; }
.mv-list { display: flex; flex-direction: column; gap: 28px; }
.mv-block { padding-left: 22px; }
.mv-mision { border-left: 2px solid #A98B5D; }
.mv-vision { border-left: 2px solid #D6DAE1; }
.mv-label { font-size: 11.5px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.mv-mision .mv-label { color: #A98B5D; }
.mv-vision .mv-label { color: #6A7486; }
.mv-text { font-size: 15.5px; line-height: 1.6; color: #2C3A52; }
.foto-col { display: flex; flex-direction: column; height: 100%; }
.foto-firma { background-image: url('../images/nosotros-office.jpeg'); background-size: cover; background-position: center 40%; background-repeat: no-repeat; border: 1px solid #E1E4E9; aspect-ratio: 4/5; }
.valores-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; flex: 1; }
.valor-chip { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; color: #45526A; font-weight: 600; letter-spacing: 0.3px; padding: 12px 4px; background: #FCFBF8; border: 1px solid #EDE9E0; border-radius: 12px; box-shadow: 0 2px 18px rgba(20,41,74,0.04); transition: transform .3s cubic-bezier(0.22,1,0.36,1), box-shadow .3s cubic-bezier(0.22,1,0.36,1), border-color .3s ease; }
.valor-chip:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,41,74,0.08); border-color: #A98B5D; }

/* MENSAJES */
.mensajes { padding: 90px 48px; background: #F4F5F7; border-top: 1px solid #E7E9ED; border-bottom: 1px solid #E7E9ED; }
.mensajes-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.mensaje-num { font-family: 'Spectral', serif; font-size: 15px; color: #A98B5D; }
.mensaje-text { font-family: 'Spectral', serif; font-weight: 400; font-size: 22px; line-height: 1.3; color: #14294A; margin-top: 14px; }

/* CONTACTO */
.contacto { padding: 120px 48px; background: #0E1C33; color: #F3F5F8; position: relative; overflow: hidden; }
.contacto-circle { position: absolute; bottom: -160px; left: -80px; width: 400px; height: 400px; border: 1px solid rgba(169,139,93,0.18); border-radius: 50%; }
.contacto-inner { position: relative; max-width: 800px; margin: 0 auto; text-align: center; }
.contacto-title { font-family: 'Spectral', serif; font-weight: 400; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.1; margin: 26px 0 22px; text-wrap: balance; }
.contacto-text { font-size: 17.5px; line-height: 1.6; color: #AEB9CC; max-width: 520px; margin: 0 auto 40px; }
.contacto-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.footer { padding: 56px 48px 44px; background: #0B1526; color: #6D7A92; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.footer img { height: 189px; width: auto; display: block; }
.footer-rule { width: 40px; height: 1px; background: rgba(169,139,93,0.35); }
.footer-tag { font-size: 12.5px; letter-spacing: 0.3px; }
.footer-copy { font-size: 12px; color: #4E5A70; }

/* Scroll reveal (JS-controlled) */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(0.22,1,0.36,1), transform .7s cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* TABLET: 992-1199px */
@media (max-width: 1199px) {
  .nav-logo img { height: 150px; }
}

/* TABLET: 768-991px — desktop nav unchanged */
@media (max-width: 991px) {
  .hero-content { transform: none; }
  .diferenciador-inner, .nosotros-grid { grid-template-columns: 1fr; }
  .servicios-grid { grid-template-columns: 1fr; }
  .mensajes-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 90px 28px 100px; }
  .section-position, .section-servicios, .diferenciador, .nosotros, .mensajes, .contacto { padding-left: 28px; padding-right: 28px; }
}

/* MOBILE: <=768px */
@media (max-width: 768px) {
  .nav { padding: 8px 20px; }
  .nav-logo img { height: 78px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }

  .hero { padding: 56px 20px 64px; }
  .hero-content { transform: none; max-width: 100%; }
  .hero-title { font-size: clamp(30px, 8vw, 44px); }
  .hero-text { max-width: 100%; }
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .hero-values { flex-direction: column; gap: 14px; margin-top: 48px; }
  .hero-circle-1, .hero-circle-2 { display: none; }

  .section-position, .section-servicios, .diferenciador, .nosotros, .mensajes, .contacto { padding-left: 20px; padding-right: 20px; }
  .section-position { padding-top: 70px; padding-bottom: 70px; }
  .section-servicios { padding-top: 64px; padding-bottom: 64px; }
  .servicios-header { align-items: flex-start; }
  .servicios-subtitle { max-width: 100%; }
  .servicio-card { padding: 32px 24px; }

  .diferenciador { padding-top: 70px; padding-bottom: 70px; }
  .diferenciador-inner { gap: 44px; }
  .diferenciador-text { max-width: 100%; }
  .promesa-row { flex-direction: column; gap: 6px; padding: 20px 22px; }
  .promesa-no { min-width: 0; }

  .nosotros { padding-top: 70px; padding-bottom: 70px; }
  .nosotros-grid { gap: 40px; }
  .panel-editorial { padding: 28px 24px; }
  .panel-text { max-width: 100%; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }

  .mensajes { padding-top: 56px; padding-bottom: 56px; }

  .contacto { padding-top: 70px; padding-bottom: 70px; }
  .contacto-text { max-width: 100%; }
  .contacto-buttons { flex-direction: column; align-items: stretch; }
  .contacto-circle { display: none; }

  .footer { padding: 44px 20px 36px; }
  .footer img { height: 110px; }
}

/* SMALL MOBILE: <480px */
@media (max-width: 479px) {
  .nav-logo img { height: 62px; }
  .hero-title { font-size: clamp(26px, 9vw, 36px); }
  .hero-text { font-size: 16px; }
  .value-glass-title { font-size: 14px; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .footer img { height: 90px; }
}
