/*
Theme Name: MARC Consultores 2026
Author: MARC
Description: Tema personalizado premium
Version: 1.0
*/

/* =========================
   VARIABLES Y RESET
========================= */
:root {
  --color-primary: #1C6E8C;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: 'Raleway', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* =========================
   CONTENEDOR
========================= */
.container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

/* =========================
   BOTONES
========================= */
.btn {
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s;
}

.primary {
  background: var(--color-primary);
  color: white;
}

.primary:hover {
  filter: brightness(0.85);
}

.secondary {
  border: 1px solid white;
  color: white;
}

.secondary:hover {
  background: white;
  color: #071E2E;
}

/* =========================
   ANIMACIONES GLOBALES
========================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

.delay1 { animation-delay: 0.3s; }
.delay2 { animation-delay: 0.6s; }
.delay3 { animation-delay: 0.9s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   HEADER / NAVBAR
========================= */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(7, 30, 46, 0.6);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar.scrolled {
  background: rgba(7, 30, 46, 0.95);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

.logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: brightness(1.1);
}

.navbar nav {
  display: flex;
  align-items: center;
}

.navbar nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
}

.navbar nav ul li {
  position: relative;
}

.navbar nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.navbar nav ul li a:hover {
  color: var(--color-primary);
}

.hamburger {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

/* =========================
   MENÚ PRINCIPAL (DESKTOP + SUBMENU)
========================= */
.menu-list {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.menu-list li {
  position: relative;
}

.menu-list a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.menu-list a:hover {
  color: #3aa6c9;
}

.sub-menu {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(11,44,58,0.95);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: 10px;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.menu-item-has-children:hover .sub-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.sub-menu li a {
  font-size: 14px;
  opacity: 0.9;
  white-space: nowrap;
}

.sub-menu li a:hover {
  color: #3aa6c9;
}

/*.menu-item-has-children > a::after {
  content: "▼";
  margin-left: 6px;
  font-size: 12px;
  opacity: 0.7;
}

/* =========================
   FOOTER
========================= */
.footer {
  text-align: center;
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  background: #071E2E;
}

/* =========================
   HERO PRINCIPAL (front-page)
========================= */
.hero {
  height: 100vh;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: url('img/inicio-bg.png') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(
    to right,
    rgba(7,30,46,0.95),
    rgba(7,30,46,0.7)
  );
}

.hero-content {
  padding: 0 20px;
  position: relative;
  color: white;
  max-width: 650px;
  margin-left: 10%;
  margin-top: 60px;
}

.hero-title {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.2;
}

.hero-title span {
  color: #1C6E8C;
  font-weight: 700;
}

.hero-subtitle {
  margin-top: 25px;
  font-size: 18px;
  opacity: 0.9;
}

.hero-buttons {
  margin-top: 50px;
}

/* =========================
   PÁGINA NOSOTROS
========================= */
/* Hero nosotros */
.hero-nosotros {
  height: auto;
  min-height: 60vh;
  padding: 120px 0 80px;
  background: url('img/nosotros-bg.png') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-nosotros::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(0,0,0,0.75) 30%,
    rgba(0,0,0,0.45) 55%,
    rgba(0,0,0,0.15) 75%,
    rgba(0,0,0,0.02) 100%
  );
}

.hero-nosotros .hero-content {
  position: relative;
  z-index: 2;
  margin-top: 0;
  max-width: 700px;
}

.hero-nosotros .hero-title {
  font-size: clamp(28px, 4vw, 42px);
}

.hero-nosotros .hero-subtitle {
  margin-top: 15px;
  font-size: 16px;
}

.hero-nosotros .hero-overlay {
  display: none;
}

/* Statement */
.statement {
  background: #071E2E;
  color: white;
  padding: 90px 20px;
  text-align: center;
}

.statement h2 {
  font-size: 38px;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto;
}

/* Quiénes somos (split) */
.nosotros-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  min-height: 400px;
}

.nosotros-img {
  background: url('img/nosotros-side.jpeg') center/cover no-repeat;
}

.nosotros-content {
  box-shadow: -25px 0 60px rgba(0,0,0,0.12);
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 80px 40px;
}

.nosotros-content .container {
  max-width: 900px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: center;
}

/* Misión, Visión, Valores */
.mvv {
  background: #f4f6f8;
  padding: 80px 0;
}

.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.mvv-item {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  border-top: 3px solid transparent;
}

.mvv-item:hover {
  transform: translateY(-8px);
  border-top: 3px solid #1C6E8C;
}

.mvv-item h3 {
  color: #1C6E8C;
  margin-bottom: 15px;
}

.mvv-item ul {
  padding-left: 18px;
}

.mvv-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.mvv-header i {
  width: 30px;
  height: 30px;
  color: #1C6E8C;
  background: rgba(28,110,140,0.1);
  padding: 6px;
  border-radius: 8px;
  transition: 0.3s;
}

.mvv-item:hover i {
  transform: scale(1.1);
}

/* Propuesta de valor */
.valor-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 400px;
}

.valor-content {
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 80px 40px;
  border-right: 1px solid rgba(0,0,0,0.05);
  box-shadow: 20px 0 40px rgba(0,0,0,0.05);
}

.valor-img {
  background: url('img/valor.jpg') center/cover no-repeat;
}

.valor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.valor-item {
  background: #f4f6f8;
  padding: 18px 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transition: 0.3s;
}

.valor-item:hover {
  background: #eaf2f5;
  transform: translateX(5px);
}

/* CTA */
.cta {
  background: linear-gradient(
    to right,
    #071E2E,
    #0a2f45
  );
  color: white;
  text-align: center;
  padding: 70px 20px;
}

.cta h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

/* =========================
   PÁGINA SERVICIOS (hub)
========================= */
.servicios-hero {
  position: relative;
  padding: 140px 0 90px;
  background: url('img/servicios-bg.png') center/cover no-repeat;
  color: white;
  overflow: hidden;
}

.servicios-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(7,30,46,0.9) 20%,
    rgba(7,30,46,0.7) 50%,
    rgba(7,30,46,0.4) 75%,
    rgba(7,30,46,0.2) 100%
  );
}

.servicios-hero .container {
  position: relative;
  z-index: 2;
}

.servicios-hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 20px;
}

.servicios-hero p {
  max-width: 600px;
  opacity: 0.9;
}

.servicios-grid-section {
  padding: 100px 0;
  background: #f8f9fb;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.servicio-box {
  color: #071E2E;
  display: block;
  text-decoration: none;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  border-top: 3px solid transparent;
}

.servicio-box:visited,
.servicio-box:active {
  color: #071E2E;
}

.servicio-box h3,
.servicio-box p {
  color: inherit;
  transition: color 0.3s ease;
}

.servicio-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.servicio-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

.servicio-box:hover .servicio-icon {
  filter: brightness(0) invert(1);
}

/* Colores por servicio */
.cumplimiento-box:hover {
  background: #00897B;
}
.cumplimiento-box:hover h3,
.cumplimiento-box:hover p {
  color: white;
}

.gobierno-box:hover {
  background: #3F51B5;
}
.gobierno-box:hover h3,
.gobierno-box:hover p {
  color: white;
}

.seguridad-box:hover {
  background: #c62828;
}
.seguridad-box:hover h3,
.seguridad-box:hover p {
  color: white;
}

.operacion-box:hover {
  background: #f57c00;
}
.operacion-box:hover h3,
.operacion-box:hover p {
  color: white;
}

/* =========================
   PÁGINAS DE SERVICIOS (cumplimiento, gobierno, seguridad, operación)
========================= */
.tag {
  display: inline-block;
  margin-bottom: 15px;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary);
}

.servicio-hero-pro {
  padding: 140px 0 90px;
  position: relative;
  z-index: 2;
  color: white;
}

.servicio-hero-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(0,0,0,0.75) 20%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.2) 75%,
    rgba(0,0,0,0.05) 100%
  );
}

.servicio-hero-pro h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 20px;
}

.servicio-hero-pro p {
  max-width: 600px;
  opacity: 0.9;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Cumplimiento */
.cumplimiento .servicio-hero-pro {
  background: url('img/cumplimiento-bg.jpg') center/cover no-repeat;
}

/* Gobierno */
.gobierno .servicio-hero-pro {
  background: url('img/gobierno.jpg') center/cover no-repeat;
}

/* Seguridad */
.seguridad .servicio-hero-pro {
  background: url('img/seguridad-bg.jpg') center/cover no-repeat;
}

/* Operación */
.operacion .servicio-hero-pro {
  background: url('img/operacion-bg.jpg') center/cover no-repeat;
}

/* Secciones comunes */
.servicio-split {
  padding: 100px 0;
  background: #ffffff;
}

.split-title h2 {
  font-size: 38px;
  color: #071E2E;
}

.split-text p {
  font-size: 17px;
  color: #555;
  line-height: 1.7;
}

.servicio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.servicio-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.servicio-card h3 {
  margin-bottom: 10px;
  color: #071E2E;
}

.servicio-card p {
  font-size: 15px;
  color: #555;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  filter: brightness(1.05);
}

.servicio-metodo {
  background: #f4f6f8;
  padding: 100px 0;
}

.metodo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.metodo-grid div span {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-primary);
}

.metodo-grid h3 {
  margin: 10px 0;
}

.servicio-cta {
  padding: 80px 0;
  text-align: center;
}

.servicio-bloques {
  background: linear-gradient(
    180deg,
    var(--color-primary),
    #00796B
  );
  padding: 100px 0;
}

/* Gobierno layout específico */
.gobierno-layout {
  padding: 100px 0;
  background: #ffffff;
}

.gobierno-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.gobierno-info h2 {
  font-size: 36px;
  color: #071E2E;
  margin-bottom: 20px;
}

.gobierno-info p {
  color: #555;
  line-height: 1.7;
}

.gobierno-lista {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.g-item {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: 0.3s;
}

.g-item h3 {
  color: #071E2E;
  margin-bottom: 5px;
}

.g-item p {
  color: #666;
  font-size: 15px;
}

.g-item:hover {
  transform: translateX(8px);
  border-left: 3px solid var(--color-primary);
  padding-left: 10px;
}

/* Seguridad digital */
.seguridad {
  --color-primary: #c62828;
}

.seguridad-modulos {
  padding: 100px 0;
  background: #0f172a;
}

.seguridad-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.seg-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 30px;
  border-radius: 10px;
  color: white;
  transition: 0.3s;
}

.seg-box h3 {
  color: white;
  margin-bottom: 10px;
}

.seg-box p {
  color: rgba(255,255,255,0.75);
}

.seg-box:hover {
  transform: translateY(-6px);
  border-left: 3px solid var(--color-primary);
  background: rgba(255,255,255,0.05);
}

/* Operación especializada */
.operacion {
  --color-primary: #f57c00;
}

.operacion-secciones {
  padding: 100px 0;
  background: #f9fafb;
}

.operacion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.op-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.op-card h3 {
  margin-bottom: 15px;
  color: #071E2E;
}

.op-card ul {
  padding-left: 18px;
}

.op-card li {
  margin-bottom: 8px;
  color: #555;
}

.op-card:hover {
  transform: translateY(-6px);
  border-top: 3px solid var(--color-primary);
}

/* =========================
   PÁGINA CLIENTES
========================= */
.clientes-hero {
  position: relative;
  background-image: url('img/clientes-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 0 80px;
  min-height: 50vh;
}

.clientes-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 0, 0.5)
  );
  z-index: 1;
}

.clientes-hero .container {
  margin-top: 20px;
  position: relative;
  z-index: 2;
}

.clientes-hero h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 20px;
}

.clientes-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  opacity: 0.9;
}

.clientes-hero .tag {
  color: rgba(255, 255, 255, 0.6);
}

.clientes-wrapper {
  background: transparent !important;
  padding: 100px 0;
  height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clientes-wrapper .container {
  background: transparent !important;
}

.clientes-header {
  text-align: center;
  margin-bottom: 50px;
}

.clientes-header h2 {
  font-size: 34px;
  color: #071E2E;
}

.clientes-header p {
  color: #666;
  margin-top: 10px;
}

.clientes-frase {
  position: relative;
  height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.clientes-frase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.85)
  );
  z-index: 1;
}

.clientes-frase .container {
  position: relative;
  z-index: 2;
}

.clientes-frase h2 {
  color: #ffffff;
  opacity: 0.9;
  max-width: 850px;
  margin: 0 auto;
  font-size: 28px;
  line-height: 1.4;
}

/* Carrusel clientes */
.carousel {
  background: transparent;
  padding: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 70px;
  width: max-content;
  will-change: transform;
}

.carousel-track img {
  height: 70px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  transition: transform 0.4s ease;
}

.carousel-track img:hover {
  transform: scale(1.12);
}

.carousel:hover .carousel-track {
  animation-play-state: paused;
}

.carousel::before,
.carousel::after {
  content: "";
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}

.carousel::before {
  left: 0;
  background: linear-gradient(to right, #f8f9fb, transparent);
}

.carousel::after {
  right: 0;
  background: linear-gradient(to left, #f8f9fb, transparent);
}

.clientes-wrapper .carousel {
  margin-top: 40px;
}

/* =========================
   PÁGINA EQUIPO
========================= */
.equipo-hero {
  padding: 140px 0 90px;
  background: linear-gradient(
    110deg,
    rgba(7,30,46,0.95),
    rgba(7,30,46,0.7)
  ),
  url('img/hero-bg.jpg') center/cover no-repeat;
  color: white;
}

.equipo-hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 20px;
}

.equipo-hero p {
  max-width: 600px;
  opacity: 0.9;
}

.equipo {
  background: linear-gradient(
    to bottom,
    #0a2f45,
    #071E2E
  );
  padding: 100px 0;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.equipo-card {
  background: linear-gradient(
    145deg,
    #1c1f2b,
    #161923
  );
  padding: 40px 30px;
  border-radius: 20px;
  color: white;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  transition: all 0.3s ease;
}

.equipo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 60px rgba(0,0,0,0.6);
}

.equipo-card h3 {
  margin-bottom: 5px;
  font-size: 22px;
}

.equipo-card .rol {
  display: block;
  margin-bottom: 20px;
  color: #9ecfe8;
  font-weight: 500;
}

.equipo-card p {
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
  font-size: 15px;
}

.equipo-card strong {
  color: white;
}

/* =========================
   PÁGINA CONTACTO
========================= */
.contacto-hero {
  padding: 140px 0 90px;
  background: linear-gradient(
    110deg,
    rgba(7,30,46,0.95),
    rgba(7,30,46,0.7)
  ),
  url('img/hero-bg.jpg') center/cover no-repeat;
  color: white;
}

.contacto-hero h1 {
  font-size: clamp(34px, 5vw, 48px);
  margin-bottom: 20px;
}

.contacto-hero p {
  max-width: 600px;
  opacity: 0.9;
}

.contacto {
  padding: 100px 0;
  background: #f8f9fb;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contacto-info h2 {
  font-size: 32px;
  color: #071E2E;
  margin-bottom: 20px;
}

.contacto-info p {
  color: #555;
  line-height: 1.7;
}

.contacto-datos {
  margin-top: 30px;
}

.contacto-datos p {
  margin-bottom: 10px;
}

.contacto-form {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.contacto-form button {
  margin-top: 10px;
}

/* =========================
   WPForms (estilos personalizados)
========================= */
.wpforms-container input,
.wpforms-container textarea,
.wpforms-container select {
  cursor: text !important;
}

.wpforms-field-name input {
  cursor: text !important;
}

.wpforms-field-row input {
  cursor: text !important;
}

.wpforms-container label {
  cursor: default !important;
}

.wpforms-container button {
  cursor: pointer !important;
}

.wpforms-form input,
.wpforms-form textarea,
.wpforms-form select {
  cursor: text !important;
}

.wpforms-form button {
  cursor: pointer !important;
}

.wpforms-form input,
.wpforms-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}

.wpforms-form input:focus,
.wpforms-form textarea:focus {
  outline: none;
  border-color: #1C6E8C;
  box-shadow: 0 0 0 3px rgba(28,110,140,0.15);
}

.wpforms-form label {
  font-weight: 500;
  color: #071E2E;
  margin-bottom: 6px;
  display: block;
}

.wpforms-form .wpforms-field {
  margin-bottom: 18px;
}

.wpforms-form button {
  background: #1C6E8C;
  color: white;
  padding: 14px 24px;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  transition: 0.3s ease;
}

.wpforms-form button:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

.wpforms-form textarea {
  resize: none;
}

.wpforms-confirmation-container {
  background: #e8f5f9;
  color: #071E2E;
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #1C6E8C;
}

/* =========================
   CLIENTES (modo pantalla completa en desktop)
========================= */
@media (min-width: 1024px) {
  body.page-template-page-clientes {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    background-image: url('img/whiteclientes-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  body.page-template-page-clientes::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
      135deg,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 0)
    );
  }

  body.page-template-page-clientes .navbar {
    background: #0b2c3d !important;
    backdrop-filter: none;
  }

  .clientes-hero {
    height: 50vh;
  }

  .clientes-wrapper {
    height: 25vh;
    display: flex;
    align-items: center;
  }

  .clientes-frase {
    height: 25vh;
  }
}

/* =========================
   MEDIA QUERIES RESPONSIVAS (móvil)
========================= */
@media (max-width: 768px) {
  /* Navbar */
  .logo {
    height: 45px;
  }

  /* ===== MENÚ MÓVIL MEJORADO ===== */
  .hamburger {
    display: block;
    font-size: 28px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    z-index: 2100;
  }

  .menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(7, 30, 46, 0.98);
    backdrop-filter: blur(12px);
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 80px 20px 40px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .menu.active {
    opacity: 1;
    visibility: visible;
  }

  .menu ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }

  .menu ul li {
    color: white;
    width: 100%;
    text-align: center;
    margin: 12px 0;
    position: relative;
  }

  .menu ul li a {
    display: inline-block;
    font-size: 20px;
    font-weight: 500;
    color: white;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
  }

  .menu ul li a:hover {
    color: #3aa6c9;
  }

  /* Submenú en móvil */
  .menu .sub-menu {
    position: static !important;
    left: auto !important;            /* elimina desplazamientos heredados */
    top: auto !important;
    opacity: 1;
    transform: none !important;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin: 8px auto 0 auto;
    padding: 8px 0;
    display: none;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    text-align: center;
    backdrop-filter: blur(4px);
  }

  .menu-item-has-children.open .sub-menu {
    display: flex;
  }
  
  /* Elimina cualquier fondo, outline o sombra no deseada en los enlaces del menú */
  .menu a:focus,
  .menu a:active {
    color: white !important;
    background: transparent !important;
    outline: none !important;
    box-shadow: none !important;
  }

  /* Específico para los submenús */
  .menu .sub-menu li a:focus,
  .menu .sub-menu li a:active {
    background: transparent !important;
    outline: none !important;
  }

  /* Quita el highlight gris al tocar en móviles (iOS/Android) */
  .menu a {
    -webkit-tap-highlight-color: transparent;
  }

  /* Opcional: mantén el foco accesible solo con teclado (no en móvil) */
  .menu a:focus-visible {
    outline: 2px solid #3aa6c9;
    outline-offset: 2px;
  }
  
  .menu .current-menu-item a {
  color: white !important;
}
  
  .menu .current-menu-item a:focus,
.menu .current_page_item a:active {
  background: transparent !important;
}

.menu .sub-menu li a {
    color: white !important;
  }

  /* Si algún submenú tiene .current-menu-item, mantén el color normal */
  .menu .sub-menu .current-menu-item a {
    color: white !important;
  }
  
  

  .sub-menu li {
    margin: 0 !important;
  }

  .sub-menu li a {
    display: inline-block;
    font-size: 16px;
    padding: 6px 12px;
    opacity: 0.9;
  }

  .menu-item-has-children {
    width: 100%;
  }
  
  /* Flecha indicadora en el item con submenú */
  .menu-item-has-children > a {
    position: relative;
    padding-right: 24px;
  }

  /* .menu-item-has-children > a::after {
    content: "▼";
    font-size: 12px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s;
  } */

  .menu-item-has-children.open > a::after {
    transform: translateY(-50%) rotate(180deg);
  }

  .hero-content {
    margin-left: 0;
    text-align: center;
    padding: 0 15px;
  }

  .hero-title {
    text-align: center;
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 16px;
    text-align: center;
    line-height: 1.5;
  }

  .hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
    text-align: center;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
  }

  /* Página nosotros */
  .nosotros-wrapper {
    grid-template-columns: 1fr;
  }

  .nosotros-img {
    height: 250px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .mvv-grid {
    grid-template-columns: 1fr;
  }

  .valor-wrapper {
    grid-template-columns: 1fr;
  }

  .valor-img {
    height: 250px;
  }

  .statement h2 {
    font-size: 26px;
  }

  /* Servicios hub */
  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .servicios-grid-section {
    padding: 60px 0;
  }

  /* Páginas de servicios */
  .servicio-grid {
    grid-template-columns: 1fr;
  }

  .metodo-grid {
    grid-template-columns: 1fr;
  }

  .gobierno-wrapper {
    grid-template-columns: 1fr;
  }

  .seguridad-grid {
    grid-template-columns: 1fr;
  }

  .operacion-grid {
    grid-template-columns: 1fr;
  }

  /* Equipo */
  .equipo-grid {
    grid-template-columns: 1fr;
  }

  /* Contacto */
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  /* Carrusel clientes */
  .carousel-track {
    gap: 40px;
  }

  .carousel-track img {
    height: 45px;
  }

  .clientes-wrapper {
    padding: 60px 0;
  }

  .clientes-header h2 {
    font-size: 24px;
  }
}

/* =========================
   PÁGINA ALIADOS
========================= */
.aliados-hero {
  position: relative;
  background-image: url('img/clientes-bg.jpg'); /* puedes usar la misma imagen de clientes o una nueva */
  background-size: cover;
  background-position: center;
  padding: 140px 0 90px;
}

.aliados-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
  z-index: 1;
}

.aliados-hero .container {
  position: relative;
  z-index: 2;
}

.aliados-hero h1,
.aliados-hero p,
.aliados-hero .tag {
  color: white;
}

.aliados-grid-section {
  padding: 100px 0;
  background: #f8f9fb;
}

.aliados-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;  /* Ajusta según el ancho de tus tarjetas */
  margin: 0 auto;
}

.aliado-card {
  flex: 0 0 280px;   /* Ancho fijo, no crece ni se encoge */
  background: white;
  padding: 30px 20px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.aliado-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.1);
}

.aliado-card img {
  max-width: 120px;
  height: auto;
  margin-bottom: 20px;
  filter: grayscale(0%);
  transition: filter 0.3s;
}

.aliado-card:hover img {
  filter: grayscale(0%);
}

.aliado-card h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: #071E2E;
}

.aliado-card p {
  font-weight: 600;
  color: #1C6E8C;
  margin-bottom: 10px;
}

.aliado-desc {
  display: block;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  margin-top: 10px;
}

.aliados-frase {
  background: linear-gradient(to right, #071E2E, #0a2f45);
  color: white;
  text-align: center;
  padding: 70px 20px;
}

.aliados-frase h2 {
  max-width: 800px;
  margin: 0 auto;
  font-size: 28px;
  line-height: 1.4;
}

/* Para que en pantallas más pequeñas se adapte */
@media (max-width: 768px) {
  .aliado-card {
    flex: 0 0 calc(100% - 40px);  /* Ocupa casi todo el ancho en móvil */
    max-width: 300px;
  }
}