:root {
  --azul: #0d3b66;
  --azul2: #092b49;
  --naranja: #d37528;
  --crema: #ede4b9;
  --negro: #171717;
  --blanco: #fff;
  --gris: #f6f7f9;
  --texto: #243142;
  --sombra: 0 18px 45px rgba(13, 59, 102, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--texto);
  background: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: auto;
}

/* =========================
   TOPBAR
========================= */

.topbar {
  background: var(--azul);
  color: white;
  font-size: 0.85rem;
  padding: 4px 0;
}

.topbar .container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 32px;
}

.topbar-center {
  color: white;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar-social {
  position: absolute;
  right: 0;
  display: flex;
  gap: 16px;
}

.topbar-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: 0.25s;
}

.topbar-social svg {
  width: 20px;
  height: 20px;
}

.topbar-social a:hover {
  color: var(--crema);
  transform: translateY(-2px);
}

/* =========================
   NAVBAR
========================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(13, 59, 102, 0.09);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.brand img {
  height: 50px;
  width: auto;
  border-radius: 4px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 26px;
  font-weight: 700;
  color: var(--azul);
}

.menu a.active,
.menu a:hover {
  color: var(--naranja);
}

.mobile-toggle {
  display: none;
  border: 0;
  background: var(--azul);
  color: white;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 20px;
}

/* =========================
   BOTONES
========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn-primary {
  background: var(--naranja);
  color: white;
  box-shadow: 0 12px 28px rgba(211, 117, 40, 0.24);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #bd641f;
}

.btn-outline {
  border: 1px solid rgba(13, 59, 102, 0.22);
  color: var(--azul);
  background: white;
}

.btn-outline:hover {
  border-color: var(--naranja);
  color: var(--naranja);
}

/* =========================
   HERO HOME
========================= */

.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #fff 0%, #fff 50%, #f8f1d7 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 80px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-image img {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
  object-fit: contain;
  transform: scale(1.25);
  transform-origin: center;
}

.eyebrow {
  color: var(--naranja);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.02;
  margin: 12px 0 18px;
  color: var(--azul2);
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p {
  font-size: 1.14rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* =========================
   HERO PÁGINAS
========================= */

.page-hero {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul2) 70%);
  color: white;
}

.page-hero h1 {
  color: white;
}

.page-hero .eyebrow {
  color: var(--crema);
}

/* =========================
   NOSOTROS
========================= */

.about-hero {
  overflow: hidden;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.about-hero-text {
  position: relative;
  z-index: 2;
}

.about-hero h1 {
  font-size: clamp(3rem, 4.4vw, 5.2rem);
  max-width: 780px;
}

/* =========================
   SISTEMA VISUAL NOSOTROS
========================= */

.about-visual {
  position: relative;
  min-height: 430px;
}

.about-system {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 18px;
  padding: 30px;
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(237, 228, 185, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.system-card {
  min-width: 0;
  min-height: 210px;
  padding: 26px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.97);
  color: var(--azul2);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}

.system-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.2);
}

.system-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--naranja);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.system-card strong {
  display: block;
  color: var(--azul2);
  font-size: clamp(1.2rem, 1.65vw, 1.55rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.system-card p {
  margin: 14px 0 0;
  color: #5d6b7b;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}
/* =========================
   SECCIONES GENERALES
========================= */

.section {
  padding: 76px 0;
}

.section-soft {
  background: var(--gris);
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

.section-title h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
  margin: 0;
  color: var(--azul2);
  letter-spacing: -0.04em;
}

.section-title p {
  max-width: 460px;
  margin: 0;
}
/* Solo para la sección Cómo trabajamos */

.section-soft .section-title{
  display:block;
}

.section-soft .section-title p{
  margin-top:14px;
  max-width:620px;
}
/* =========================
   CARDS
========================= */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: white;
  border: 1px solid rgba(13, 59, 102, 0.09);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(13, 59, 102, 0.06);
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sombra);
}

.card h3 {
  color: var(--azul2);
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(211, 117, 40, 0.12);
  display: grid;
  place-items: center;
  color: var(--naranja);
  margin-bottom: 18px;
}

.icon svg {
  width: 25px;
  height: 25px;
}

/* =========================
   HOME - CLARIDAD / PROCESO
========================= */

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 42px;
  align-items: center;
}

.panel {
  background: var(--azul);
  color: white;
  border-radius: 34px;
  padding: 40px;
  box-shadow: var(--sombra);
}

.panel h2 {
  font-size: 2.7rem;
  line-height: 1.05;
  margin: 0 0 16px;
}

.list {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.list div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check {
  min-width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--naranja);
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 900;
}

.process-right {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.process-image {
  width: 100%;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--sombra);
}

.process-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

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

.stat {
  background: var(--azul2);
  color: white;
  border-radius: 24px;
  padding: 26px;
}

.stat b {
  font-size: 2rem;
  color: var(--crema);
}

/* =========================
   STEPS
========================= */

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

.step {
  background: white;
  border-radius: 22px;
  padding: 32px;
  min-height: 280px;
  border: 1px solid rgba(13,59,102,.09);
  transition:.25s;
}

.step:hover{
  transform:translateY(-6px);
  box-shadow:var(--sombra);
}

.step strong {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--azul);
  color: white;
  border-radius: 14px;
  margin-bottom: 15px;
}
/* Tarjetas alternas - solo acento naranja */

.step-orange{
  background: white;
  border: 1px solid rgba(13,59,102,.09);
}

.step-orange strong{
  background: var(--naranja);
  color: white;
}

.step-orange h3{
  color: var(--azul2);
}

.step-orange:hover{
  transform: translateY(-6px);
  border-color: var(--naranja);
  box-shadow: 0 18px 45px rgba(211,117,40,.15);
}

/* =========================
   SERVICIOS
========================= */

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.service-card {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: start;
}

/* =========================
   FAQ
========================= */

.faq-item {
  background: white;
  border: 1px solid rgba(13, 59, 102, 0.1);
  border-radius: 18px;
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  border: 0;
  background: white;
  text-align: left;
  padding: 20px;
  font-weight: 900;
  color: var(--azul2);
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-size: 1rem;
}

.faq-a {
  display: none;
  padding: 0 20px 20px;
}

.faq-item.open .faq-a {
  display: block;
}

/* =========================
   CONTACTO
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 30px;
}

.form {
  background: white;
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--sombra);
  border: 1px solid rgba(13, 59, 102, 0.08);
}

label {
  font-weight: 800;
  color: var(--azul2);
  font-size: 0.9rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  border-radius: 14px;
  border: 1px solid rgba(13, 59, 102, 0.18);
  margin: 7px 0 16px;
  font: inherit;
}

textarea {
  min-height: 130px;
}

.map {
  height: 320px;
  border-radius: 26px;
  overflow: hidden;
  background: var(--crema);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--azul2);
  font-weight: 900;
  padding: 30px;
}
/* =========================
   UBICACIÓN
========================= */

.location-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  background:#fff;
  border-radius:26px;
  overflow:hidden;
  box-shadow:var(--sombra);
  border:1px solid rgba(13,59,102,.08);
}

.location-map{
  min-height:450px;
}

.location-map iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.location-info{
  padding:55px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.location-info h2{
  margin-bottom:18px;
}

.location-info p{
  margin-bottom:18px;
}

.location-details{
  display:grid;
  gap:14px;
  margin:12px 0 28px;
}

.location-detail{
  background:#f8fafc;
  border:1px solid rgba(13,59,102,.08);
  border-radius:16px;
  padding:16px 18px;
}

.location-detail strong{
  display:block;
  margin-bottom:4px;
  color:var(--azul2);
}

.location-detail span{
  color:var(--texto);
}

.location-info .btn{
  align-self:flex-start;
}
/* =========================
   CTA
========================= */

.cta {
  background: var(--azul);
  color: white;
  border-radius: 36px;
  padding: 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.cta > div {
  max-width: 760px;
}

/* =========================
   FOOTER
========================= */

.footer {
  background: #081f35;
  color: white;
  padding: 32px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 28px;
}

.footer h4 {
  color: var(--crema);
  margin-top: 0;
}

.logo-footer {
  height: 52px;
  width: auto;
  background: white;
  border-radius: 8px;
  padding: 4px;
}

.socials {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.socials a,
.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

.socials svg,
.social-icon svg {
  width: 22px;
  height: 22px;
}

.socials a:hover {
  background: var(--naranja);
}

.copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================
   WHATSAPP FLOAT
========================= */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.34);
  z-index: 80;
  animation: pulse 2s infinite;
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
}

.wa-bubble {
  position: fixed;
  right: 92px;
  bottom: 34px;
  background: white;
  color: var(--azul2);
  padding: 11px 14px;
  border-radius: 18px;
  box-shadow: var(--sombra);
  z-index: 79;
  font-size: 0.88rem;
  font-weight: 800;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 850px) {
  .topbar {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .menu {
    position: absolute;
    left: 4%;
    right: 4%;
    top: 78px;
    background: white;
    box-shadow: var(--sombra);
    border-radius: 22px;
    padding: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
  }

  .menu.open {
    display: flex;
  }

  .hero-grid,
  .about-hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards,
  .service-grid,
  .steps,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 50px 0;
  }

  .hero-image img {
    transform: none;
  }

  .about-hero-grid {
    gap: 34px;
  }

  .about-hero h1 {
    font-size: clamp(2.6rem, 12vw, 4rem);
  }

  .about-visual {
    min-height: auto;
  }

/*======================================
      NOSOTROS - MOBILE
======================================*/

.about-system{
    padding:20px;
    border-radius:24px;
    gap:16px;
}

.system-card-small,
.system-card-main{
    width:100%;
    margin:0;
}

.system-card-small{
    padding:18px 22px;
    border-radius:20px;
}

.system-card-small h4{
    font-size:1.15rem;
}

.system-card-main{
    padding:24px;
    border-radius:22px;
}

.system-card-main h3{
    font-size:1.8rem;
    margin-bottom:8px;
}

.system-card-main p{
    font-size:.95rem;
}

.system-row{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.system-row .system-card{
    min-height:auto;
    height:auto;
    padding:20px 22px;
    border-radius:20px;
}

.system-row .system-card span{
    margin-bottom:8px;
    font-size:.82rem;
}

.system-row .system-card h4{
    font-size:1.25rem;
    line-height:1.2;
}

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .stat {
    padding: 22px 18px;
    text-align: center;
    border-radius: 22px;
  }

  .stat b {
    font-size: 2.3rem;
  }

  .section-title,
  .cta {
    display: block;
  }

  .process-right {
    gap: 20px;
  }

  .process-image {
    border-radius: 22px;
  }

  .process-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .wa-bubble {
    display: none;
  }

  .brand img {
    height: 42px;
  }

  .section {
    padding: 54px 0;
  }

  /* =========================
     UBICACIÓN - MOBILE
  ========================= */

  .location-grid {
    grid-template-columns: 1fr;
  }

  .location-map {
    min-height: 320px;
  }

  .location-map iframe {
    min-height: 320px;
  }

  .location-info {
    padding: 40px 30px;
  }

  .location-info .btn {
    width: 100%;
    text-align: center;
  }
}