/* ==============================================================
   RSAF - HOJA DE ESTILOS COMPLETA PARA WORDPRESS Y ELEMENTOR
   Tokens, tipografías, variables, componentes y diseño responsive
   ============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --fondo: #FFFFFF;
  --banda: #F3F5F7;
  --borde: #D9DEE3;
  --marino: #14283C;
  --marino-2: #1C3650;
  --texto: #1B2A38;
  --texto-2: rgba(27,42,56,.72);
  --acento: #1F6F8B;
  --acento-hover: #17566B;
  --acento-suave: #E4EFF3;
  --blanco: #FFFFFF;
  --radio: 6px;
  --contenedor: 1140px;
  --seccion: 80px;
  --gutter: 30px;
  --titulos: "Montserrat", Arial, sans-serif;
  --cuerpo: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--fondo); color: var(--texto); font-family: var(--cuerpo); font-size: 17px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { font-family: var(--titulos); line-height: 1.2; color: var(--texto); }
h1 { font-size: 44px; font-weight: 700; line-height: 1.15; }
h2 { font-size: 32px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 17px; font-weight: 600; }
p { color: var(--texto-2); }
p.lead { font-size: 20px; line-height: 1.5; }

.contenedor { width: var(--contenedor); max-width: 100%; margin: 0 auto; padding: 0 20px; }
section, header, footer { position: relative; }
.seccion { padding: var(--seccion) 0; }
.banda { background: var(--banda); }
.oscuro { background: var(--marino); color: var(--blanco); }
.oscuro h1, .oscuro h2, .oscuro h3, .oscuro h4 { color: var(--blanco); }
.oscuro p { color: rgba(255,255,255,.78); }

.cabecera-seccion { max-width: 720px; margin-bottom: 48px; }
.cabecera-seccion.centrada { margin-left: auto; margin-right: auto; text-align: center; }
.cabecera-seccion p { margin-top: 14px; }

.grid { display: grid; gap: var(--gutter); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g-6-6 { grid-template-columns: 1fr 1fr; align-items: center; }
.g-7-5 { grid-template-columns: 7fr 5fr; align-items: center; }
.g-5-7 { grid-template-columns: 5fr 7fr; align-items: center; }
.g-6-4 { grid-template-columns: 3fr 2fr; align-items: start; }

/* Botones */
.btn { display: inline-block; font-family: var(--titulos); font-weight: 600; font-size: 15px; letter-spacing: .2px; padding: 14px 28px; border-radius: var(--radio); border: 2px solid var(--acento); background: var(--acento); color: #fff !important; line-height: 1.2; text-decoration: none; transition: background .2s, border-color .2s; }
.btn:hover { background: var(--acento-hover); border-color: var(--acento-hover); }
.btn.secundario { background: transparent; color: var(--marino) !important; border-color: var(--marino); }
.oscuro .btn.secundario, .hero .btn.secundario, .hero-int .btn.secundario { color: #fff !important; border-color: rgba(255,255,255,.7); }
.btn.blanco { background: #fff; border-color: #fff; color: var(--marino) !important; }
.btn.blanco:hover { background: #f0f0f0; border-color: #f0f0f0; }
.acciones { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.enlace { font-family: var(--titulos); font-weight: 600; font-size: 15px; color: var(--acento); border-bottom: 2px solid var(--acento-suave); padding-bottom: 2px; }

/* Barra superior */
.barra { background: var(--marino); color: rgba(255,255,255,.85); font-size: 14px; height: 40px; }
.barra .contenedor { display: flex; justify-content: space-between; align-items: center; height: 40px; }
.barra ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.barra li { display: flex; gap: 8px; align-items: center; }
.barra svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 1.8; }

/* Cabecera */
.cabecera { background: #fff; border-bottom: 1px solid var(--borde); height: 88px; position: sticky; top: 0; z-index: 1000; }
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { height: 44px; width: auto; }
.menu { display: flex; align-items: center; gap: 36px; }
.menu ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.menu li a { font-family: var(--titulos); font-weight: 600; font-size: 15px; color: var(--texto); padding: 6px 0; border-bottom: 2px solid transparent; text-decoration: none; }
.menu li a:hover, .menu li a.activo { border-bottom-color: var(--acento); color: var(--acento); }
.hamburguesa { display: none; width: 28px; height: 22px; flex-direction: column; justify-content: space-between; cursor: pointer; background: none; border: none; padding: 0; z-index: 1002; }
.hamburguesa span { height: 3px; background: var(--marino); border-radius: 2px; transition: all .25s ease-in-out; transform-origin: center; display: block; width: 100%; }
.hamburguesa.abierto span:nth-child(1) { transform: translateY(9.5px) rotate(45deg); }
.hamburguesa.abierto span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburguesa.abierto span:nth-child(3) { transform: translateY(-9.5px) rotate(-45deg); }

/* Hero portada */
.hero { background: var(--marino); color: #fff; overflow: hidden; position: relative; }
.hero .contenedor { position: relative; z-index: 1; display: grid; grid-template-columns: 6fr 6fr; gap: var(--gutter); align-items: center; min-height: 560px; padding-top: 70px; padding-bottom: 70px; }
.hero h1 { color: #fff; }
.hero p.lead { color: rgba(255,255,255,.8); margin-top: 20px; max-width: 520px; }
.hero-grafico { width: 100%; height: auto; }
.hero-fondo { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px); background-size: 60px 60px; }

/* Hero interior */
.hero-int { background: var(--marino); color: #fff; }
.hero-int .contenedor { padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: center; }
.hero-int h1 { color: #fff; }
.hero-int p.lead { color: rgba(255,255,255,.8); margin-top: 18px; }
.migas { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 18px; font-family: var(--titulos); }
.migas span { margin: 0 8px; }

/* Tarjetas */
.tarjeta { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 34px 30px; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.tarjeta:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(20,40,60,.06); }
.tarjeta .icono { width: 52px; height: 52px; border-radius: var(--radio); background: var(--acento-suave); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; flex-shrink: 0; }
.tarjeta .icono svg { width: 28px; height: 28px; stroke: var(--acento); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tarjeta h3 { margin-bottom: 12px; }
.tarjeta p { font-size: 16px; }
.tarjeta .enlace { display: inline-block; margin-top: auto; padding-top: 18px; align-self: flex-start; }
.tarjeta.enlazada { border-top: 4px solid var(--acento); }

/* Icon box en línea (caja) */
.caja { display: flex; gap: 18px; align-items: flex-start; }
.caja .icono { flex: 0 0 46px; width: 46px; height: 46px; border-radius: var(--radio); background: var(--acento-suave); display: flex; align-items: center; justify-content: center; }
.caja .icono svg { width: 24px; height: 24px; stroke: var(--acento); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.caja h3 { margin-bottom: 8px; }
.caja p { font-size: 16px; }

/* Listas con icono check */
.lista { list-style: none; margin-top: 18px; padding: 0; }
.lista li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--texto-2); }
.lista li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 8px; border-left: 2px solid var(--acento); border-bottom: 2px solid var(--acento); transform: rotate(-45deg); }
.oscuro .lista li, .panel.marino .lista li { color: rgba(255,255,255,.82); }
.oscuro .lista li::before, .panel.marino .lista li::before { border-color: #fff; }

/* Filas alternas de servicios */
.fila { display: grid; grid-template-columns: 5fr 7fr; gap: 60px; align-items: center; padding: 56px 0; border-top: 1px solid var(--borde); }
.fila:first-of-type { border-top: 0; padding-top: 0; }
.fila.invertida { grid-template-columns: 7fr 5fr; }
.fila.invertida .grafico { order: 2; }
.grafico { border-radius: var(--radio); overflow: hidden; background: var(--banda); }
.grafico svg { width: 100%; height: auto; display: block; }

/* Pasos numerados */
.pasos { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); counter-reset: paso; }
.paso { padding-top: 18px; border-top: 3px solid var(--borde); position: relative; }
.paso::before { counter-increment: paso; content: counter(paso, decimal-leading-zero); font-family: var(--titulos); font-weight: 700; font-size: 15px; color: var(--acento); display: block; margin-bottom: 10px; }
.paso h4 { margin-bottom: 8px; }
.paso p { font-size: 15px; }

/* Sección CTA */
.cta { background: var(--acento); }
.cta .contenedor { display: flex; justify-content: space-between; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.cta h2 { color: #fff; font-size: 28px; max-width: 620px; }
.cta p { color: rgba(255,255,255,.85); margin-top: 8px; }

/* Formulario */
.form { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 36px; }
.campo { margin-bottom: 18px; }
.campo label { display: block; font-family: var(--titulos); font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.campo .input { height: 46px; border: 1px solid var(--borde); border-radius: var(--radio); background: #fff; padding: 0 14px; display: flex; align-items: center; color: rgba(27,42,56,.45); font-size: 15px; width: 100%; }
.campo .input.area { height: 140px; align-items: flex-start; padding-top: 12px; }
.campo .input.select { justify-content: space-between; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--texto-2); }
.check span.box { flex: 0 0 18px; width: 18px; height: 18px; border: 1.5px solid var(--marino); border-radius: 3px; margin-top: 3px; }
.nota { font-size: 14px; color: var(--texto-2); margin-top: 14px; }
.mapa { height: 380px; background: var(--banda); border-radius: var(--radio); border: 1px solid var(--borde); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--texto-2); font-family: var(--titulos); font-weight: 600; font-size: 15px; }
.mapa svg { width: 44px; height: 44px; stroke: var(--acento); fill: none; stroke-width: 1.6; }

/* Datos societarios */
.datos { border: 1px solid var(--borde); border-radius: var(--radio); padding: 28px 30px; background: #fff; }
.datos dl { display: grid; grid-template-columns: 200px 1fr; row-gap: 12px; column-gap: 20px; font-size: 16px; margin: 0; }
.datos dt { font-family: var(--titulos); font-weight: 600; font-size: 14px; color: var(--texto); }
.datos dd { color: var(--texto-2); margin: 0; }
.pendiente { color: #B0341F; font-weight: 600; }

/* Paneles a dos columnas */
.dos-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.panel { border-radius: var(--radio); padding: 40px 36px; background: #fff; border: 1px solid var(--borde); }
.panel.marino { background: var(--marino); border-color: var(--marino); color: #fff; }
.panel.marino h3, .panel.marino h2 { color: #fff; }
.panel.marino p { color: rgba(255,255,255,.8); }
.panel h2 { font-size: 26px; margin-bottom: 12px; }
.panel .btn { margin-top: 26px; }

/* ===== Móvil (<= 767 px) ===== */
@media (max-width: 767px) {
  :root { --seccion: 56px; }
  html, body { font-size: 16px; }
  body.menu-bloqueado { overflow: hidden; }
  h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .barra { display: none; }
  .cabecera { height: 72px; position: sticky; top: 0; z-index: 1000; }
  .cabecera .contenedor { height: 72px; }
  .cabecera.menu-abierto { box-shadow: 0 4px 14px rgba(20,40,60,.1); }
  .logo svg { height: 36px; }
  .hamburguesa { display: flex; }
  .menu { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: #ffffff; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 24px 24px 40px; gap: 20px; transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform .3s ease, opacity .3s ease; overflow-y: auto; z-index: 999; box-shadow: 0 12px 28px rgba(20,40,60,.12); }
  .menu.activo { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .menu ul { display: flex; flex-direction: column; gap: 0; width: 100%; }
  .menu li { border-bottom: 1px solid var(--borde); }
  .menu li a { display: block; font-size: 17px; padding: 15px 4px; color: var(--marino); }
  .menu li a.activo { color: var(--acento); border-bottom-color: transparent; font-weight: 700; }
  .menu .btn { display: block; text-align: center; width: 100%; margin-top: 12px; padding: 14px 20px; font-size: 16px; }
  .hero .contenedor { grid-template-columns: 1fr; min-height: 0; padding-top: 48px; padding-bottom: 48px; }
  .hero-grafico { max-width: 300px; margin: 0 auto; }
  .hero-int .contenedor { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .g2, .g3, .g4, .g-6-6, .g-7-5, .g-5-7, .g-6-4, .dos-col, .dos, .pasos { grid-template-columns: 1fr; }
  .fila, .fila.invertida { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .fila.invertida .grafico { order: 0; }
  .cta .contenedor { flex-direction: column; align-items: flex-start; }
  .pie .columnas { grid-template-columns: 1fr; }
  .pie .legal { flex-direction: column; gap: 12px; }
  .datos dl { grid-template-columns: 1fr; }
  .cabecera-seccion { margin-bottom: 32px; }
}

/* ==============================================================
   RSAF - ESTILOS AISLADOS DE HEADER Y FOOTER PARA WORDPRESS
   ============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700&family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --rsaf-marino: #14283C;
  --rsaf-acento: #1F6F8B;
  --rsaf-acento-hover: #17566B;
  --rsaf-borde: #D9DEE3;
  --rsaf-texto: #1B2A38;
  --rsaf-texto-2: rgba(27,42,56,.72);
  --rsaf-titulos: "Montserrat", Arial, sans-serif;
  --rsaf-cuerpo: "Source Sans 3", Arial, sans-serif;
}

/* Barra superior */
.barra {
  background: var(--rsaf-marino);
  color: rgba(255,255,255,.85);
  font-size: 14px;
  height: 40px;
  font-family: var(--rsaf-cuerpo);
}
.barra .contenedor {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.barra ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.barra li {
  display: flex;
  gap: 8px;
  align-items: center;
}
.barra svg {
  width: 15px;
  height: 15px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.8;
}

/* Cabecera principal */
.cabecera {
  background: #fff;
  border-bottom: 1px solid var(--rsaf-borde);
  height: 88px;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow .2s ease;
  font-family: var(--rsaf-cuerpo);
}
.cabecera .contenedor {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo svg {
  height: 44px;
  width: auto;
  display: block;
}
.menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.menu ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
.menu li a {
  font-family: var(--rsaf-titulos);
  font-weight: 600;
  font-size: 15px;
  color: var(--rsaf-texto);
  padding: 6px 0;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.menu li a:hover,
.menu li a.activo {
  border-bottom-color: var(--rsaf-acento);
  color: var(--rsaf-acento);
}

/* Botón de cabecera */
.btn {
  display: inline-block;
  font-family: var(--rsaf-titulos);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .2px;
  padding: 14px 28px;
  border-radius: 6px;
  border: 2px solid var(--rsaf-acento);
  background: var(--rsaf-acento);
  color: #fff !important;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}
.btn:hover {
  background: var(--rsaf-acento-hover);
  border-color: var(--rsaf-acento-hover);
}

/* Botón hamburguesa móvil */
.hamburguesa {
  display: none;
  width: 28px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1002;
}
.hamburguesa span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--rsaf-marino);
  border-radius: 2px;
  transition: all .25s ease-in-out;
  transform-origin: center;
}
.hamburguesa.abierto span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.hamburguesa.abierto span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburguesa.abierto span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* Pie de página */
.pie {
  background: var(--rsaf-marino);
  color: rgba(255,255,255,.75);
  font-size: 15px;
  font-family: var(--rsaf-cuerpo);
}
.pie .contenedor {
  padding-top: 64px;
  padding-bottom: 0;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.pie .columnas {
  display: grid;
  grid-template-columns: 4fr 3fr 3fr 2fr;
  gap: 30px;
  padding-bottom: 48px;
}
.pie p {
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}
.pie h4 {
  color: #fff;
  font-size: 14px;
  letter-spacing: .3px;
  margin-bottom: 14px;
  font-family: var(--rsaf-titulos);
}
.pie ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pie li {
  margin-bottom: 8px;
}
.pie a {
  color: inherit;
  text-decoration: none;
  transition: color .2s;
}
.pie a:hover {
  color: #fff;
}
.pie .logo svg {
  height: 40px;
  width: auto;
}
.pie .logo-col p {
  margin-top: 14px;
  max-width: 300px;
}
.pie .legal {
  border-top: 1px solid rgba(255,255,255,.14);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.pie .legal ul {
  display: flex;
  gap: 22px;
}
.redes {
  display: flex;
  gap: 10px;
}
.redes span, .redes a {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: border-color .2s;
}
.redes span:hover, .redes a:hover {
  border-color: #fff;
}
.redes svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

/* RESPONSIVE MÓVIL (<= 767px) */
@media (max-width: 767px) {
  body.menu-bloqueado {
    overflow: hidden;
  }
  .barra {
    display: none;
  }
  .cabecera {
    height: 72px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .cabecera .contenedor {
    height: 72px;
  }
  .cabecera.menu-abierto {
    box-shadow: 0 4px 14px rgba(20,40,60,.1);
  }
  .logo svg {
    height: 36px;
  }
  .hamburguesa {
    display: flex;
  }
  .menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 24px 24px 40px;
    gap: 20px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s ease, opacity .3s ease;
    overflow-y: auto;
    z-index: 999;
    box-shadow: 0 12px 28px rgba(20,40,60,.12);
  }
  .menu.activo {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .menu ul {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .menu li {
    border-bottom: 1px solid var(--rsaf-borde);
  }
  .menu li a {
    display: block;
    font-size: 17px;
    padding: 15px 4px;
    color: var(--rsaf-marino);
  }
  .menu li a.activo {
    color: var(--rsaf-acento);
    border-bottom-color: transparent;
    font-weight: 700;
  }
  .menu .btn {
    display: block;
    text-align: center;
    width: 100%;
    margin-top: 12px;
    padding: 14px 20px;
    font-size: 16px;
  }
  .pie .columnas {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pie .legal {
    flex-direction: column;
    gap: 12px;
  }
  .pie .legal ul {
    flex-wrap: wrap;
    gap: 14px;
  }
}

