/* ==========================================================================
1. CONFIGURACIÓN Y VARIABLES
   ========================================================================== */

/* --- Fuentes Locales --- */
@font-face {
  font-family: "Poppins Local";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins Local";
  src: url("../fonts/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins Local";
  src: url("../fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins Local";
  src: url("../fonts/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Variables Globales (:root) --- */
:root {
  /* Paleta de Colores */
  --color-primary-dark: #081e66; /* Azul Institucional Oscuro */
  --color-primary-medium: #3d51e4; /* Azul Vibrante / Enlaces */
  --color-primary-accent: #0a30ac; /* Azul Acento (Iconos) */
  --color-hover-link: #0d0db6; /* Estado Hover */

  --color-text-base: #333333;
  --color-text-light: #ffffff;

  --color-bg-white: #ffffff;
  --color-bg-light: #f7f7fa;
  --color-bg-card-front: #f3f7ff;
  --color-bg-card-back: #344e8a;

  /* Gradientes Footer */
  --gradient-footer: linear-gradient(326deg, #4f5a75 0%, #08387d 100%);
  --gradient-footer-bottom: linear-gradient(326deg, #17498f 0%, #243673 100%);

  /* Layout & Dimensiones */
  --max-width-container: 1200px;
  --header-padding: 10px 200px;

  /* Efectos (Glassmorphism & Shadows) */
  --glass-bg: rgba(255, 255, 255, 0.2);
  --glass-border: 1px solid rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-text-sm: 2px 2px 10px #1c2357;
  --shadow-text-md: 4px 4px 10px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
2. ESTILOS BASE Y RESET
   ========================================================================== */

/* Desplazamiento sube de los botones de la navbar*/
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0 auto;
  background-color: var(--color-bg-white);
  font-family: "Poppins Local", "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--color-text-base);
}

/* Fondo decorativo con gradientes y blur */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, #9eaefd 0%, #3258ff00 30%),
    radial-gradient(circle at 85% 75%, #a3b7ff 0%, #32e0ff00 20%),
    radial-gradient(circle at 50% 40%, #cbd4ff 0%, #e4ff3200 60%);
  filter: blur(150px);
  opacity: 0.7;
}

/* Reset para imágenes generales */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Boton flotante de Whatsapp */
.whatsapp-float {
  position: fixed;
  bottom: 40px;
  right: 10px;
  z-index: 1000;
  /* Configura el tamaño del icono y el color de fondo */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #25d366;
  /* Centrar el SVG dentro del círculo */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

  transition: all 0.3s ease-in-out;
  transform-origin: center;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  color: white;
}

.whatsapp-float:hover {
  background-color: #1da851;
  transform: scale(1.1);
}

/* --- Modificadores de Página --- */

/* Home Page: Anula el fondo decorativo global */
.home-page {
  background-color: var(--color-bg-white);
}
.home-page::before {
  background: none !important;
}

/* ==========================================================================
3. LAYOUT Y UTILIDADES
   ========================================================================== */

/* Contenedores */
.container,
.container-body,
.container-services {
  max-width: var(--max-width-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Divisores */
.divider-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
  text-align: center;
}

.divider-icon::before,
.divider-icon::after {
  content: "";
  flex: 0.3;
  border-bottom: 2px solid var(--color-primary-dark);
}

.divider-icon::before {
  margin-right: 10px;
}
.divider-icon::after {
  margin-left: 10px;
}

.divider-icon span {
  font-size: 20px;
}

/* Glassmorphism Card (Utilidad) */
.card-glass {
  padding: 10px;
  margin-bottom: 40px;
  border-radius: 15px;
  background: var(--glass-bg);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Títulos específicos */
.questions h3 {
  padding-left: 10px;
}

/* ==========================================================================
4. COMPONENTE: HEADER Y NAVEGACIÓN
   ========================================================================== */

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--header-padding);
  background-color: var(--color-bg-white);
}

.logo {
  width: 150px;
  height: auto;
}

.menu-toggle {
  display: none; /* Oculto en desktop */
}

/* Menú de Navegación */
.main-nav ul {
  display: flex;
  gap: 45px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav ul li a {
  position: relative;
  display: inline-block;
  padding: 5px 2px;
  color: var(--color-primary-medium);
  font-size: 19px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.5s ease;
}

/* Efecto hover subrayado */
.main-nav ul li a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-hover-link);
  transition: width 0.3s ease-out;
}

.main-nav ul li a:hover {
  color: var(--color-hover-link);
}
.main-nav ul li a:hover::after {
  width: 100%;
}

/* ==========================================================================
5. COMPONENTE: HERO SECTIONS
   ========================================================================== */

/* --- Hero Slider (General) --- */
.hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
  border-top: 10px solid #253c87;
  border-bottom: 10px solid #253c87;
}

.hero-slider {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 10s ease;
}

.hero-slide.active {
  z-index: 1;
  opacity: 1;
  transform: scale(1.1); /* Efecto Ken Burns */
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: #2d44a047;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 90%;
  padding: 20px 40px;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-text-light);
}

.hero-content h1 {
  margin: 0;
  padding: 0;
  font-size: 60px;
  font-weight: 600;
  text-shadow: 0px 0px 15px #000000;
  animation: fadeUp 1.5s ease forwards;
}

.hero-content h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  text-shadow: 0px 0px 15px #000000;
  animation: fadeIn 2s ease forwards;
}

/* --- Hero Home (Video) --- */
.hero-home {
  position: relative;
  width: 100%;
  height: 70vh;
  overflow: hidden;
  border-radius: 80px 0 80px 0;
}

.video-fondo {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content-home {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: auto;
  height: 100%;
  padding-left: 15%;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50px 0 50px 0;
  text-align: center;
  color: white;
}

.hero-content-home h1 {
  width: 32%;
  margin-bottom: 20px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  text-shadow: var(--shadow-text-sm);
}

/* Botón Solicitar */
.btn-solicitar {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--color-primary-dark);
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.4s ease;
}

.btn-solicitar:hover {
  background-color: var(--color-bg-white);
  color: var(--color-primary-dark);
}

/* ==========================================================================
6. COMPONENTE: CARDS SECTION (3D FLIP)
   ========================================================================== */

.cards-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 0;
}

.cards-section h2 {
  margin: 50px 0 20px 0;
  color: var(--color-text-base);
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  text-shadow: var(--shadow-text-md);
}

.cards-section > p {
  margin: 0 80px 50px 80px;
  font-size: 20px;
  line-height: 1.6;
  text-align: center;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 20px 30px;
}

/* --- Efecto 3D Flip --- */
.card-container {
  perspective: 1200px;
  height: 240px;
}

.card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.card-container:hover .card {
  transform: rotateY(-180deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-contents {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  border: 3px solid #474747;
  border-radius: 20px;
  backface-visibility: hidden; /* Oculta la cara trasera */
}

/* Frente */
.card-front {
  background-color: var(--color-bg-card-front);
  transform-style: preserve-3d;
}

.card h3 {
  padding: 0 20px;
  margin-bottom: 10px;
  color: #000000;
  font-size: 19px;
  font-weight: 500;
}

.card-icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 15px auto;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--color-primary-accent);
}

/* Dorso */
.card-back {
  background-color: var(--color-bg-card-back);
  transform: rotateY(180deg);
  transform-style: preserve-3d;
}

/* Profundidad (Efecto de salto) */
.card-depth {
  width: 100%;
  padding: 20px;
  text-align: center;
  perspective: inherit;
  transform: translateZ(100px) scale(0.98);
}

.card-back p {
  padding: 20px 20px;
  color: #fff;
  font-size: 16px;
  line-height: 1.9;
}

/* ==========================================================================
7. COMPONENTE: SECCIÓN NOSOTROS (SPLIT)
   ========================================================================== */

.about-us-section {
  padding: 0;
  background-color: var(--color-bg-light);
  overflow: hidden;
}

.content-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 0;
  text-align: center;
  gap: 30px;
}

.content-wrapper .image-container,
.content-wrapper .text-container {
  flex: 1;
}

/* Lado Texto */
.text-container {
  position: relative;
  z-index: 2;
  padding: 10px;
}

.section-title {
  margin: 30px 0;
  color: #222;
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  text-shadow: var(--shadow-text-md);
}

.text-container p {
  margin-bottom: 20px;
  color: #222;
  font-size: 18px;
  line-height: 1.6;
  text-align: center;
}

/* Bloque Compromiso */
.commitment-block {
  display: flex;
  align-items: center;
  width: 85%;
  max-width: 800px;
  margin: 40px auto;
  padding: 5px 10px;
  background-color: #083d67;
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  transition: box-shadow 0.3s ease-in-out;
}


.commitment-block p {
  margin: 0;
  color: white;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
}

.shield-icon {
  padding: 10px;
  line-height: 0;
}

.shield-icon svg {
  width: 35px;
  height: 35px;
  fill: white;
}

/* Lista: Por qué elegirnos */
.list-porque-elegirnos {
  margin: 30px auto;
}

.list-porque-elegirnos li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-weight: 500;
  text-align: start;
}

.divisor-wrapper {
  width: 60%;
  height: 0px;
  margin: 10px auto;
  border-top: 2px solid #000;
}

/* Lado Imagen */
.image-container {
  position: relative;
  z-index: 2;
  align-items: center;
  height: auto;
  background-size: cover;
  background-position: center;
}

.image-container img {
  border-radius: 10px;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

/* ==========================================================================
8. COMPONENTE: CONTENIDO GENERAL PAGINAS ISO... (SECTION-CONTENT)
   ========================================================================== */

.section-content {
  text-align: left;
}

.section-content h2 {
  margin: 10px;
  color: var(--color-text-base);
  font-size: 28px;
  font-weight: 600;
  text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.181);
}

.section-content h3 {
  margin: 30px 0 10px 0;
  color: var(--color-text-base);
  font-size: 20px;
  font-weight: 600;
}

.section-content p {
  margin: 10px;
  font-size: 18px;
  line-height: 1.6;
}

.section-content .resumen-hero {
  margin: 50px;
}

.section-content .resumen-hero p {
  margin: 10px auto;
  line-height: 1.7;
  text-align: left;
}

/* Listas con Iconos */
.section-content ul {
  margin: 20px 15px;
  padding-left: 0;
  font-size: 18px;
  line-height: 1.6;
  list-style: none;
}

.section-content li {
  margin-bottom: 8px;
}

.check-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

/* Iconos Utilitarios */
.icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
}
.check {
  color: #28a745;
}
.arrow {
  color: #163bcc;
}
.arrow-down,
.arrow-up {
  color: var(--color-primary-dark);
}

.check-x2 {
  width: 25px;
  height: 25px;
  padding: 2.5px;
  color: var(--color-bg-white);
  background-color: #ffc107;
  border-radius: 50%;
}

/* ==========================================================================
9. COMPONENTE: CERTIFICACIONES ISO
   ========================================================================== */

/* Sección con fondo fijo */
.certifications-section {
  position: relative;
  padding: 50px 0;
  background-image: url("../img/home/fondo.webp");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
/* Capa tipo overlay para aclarar el fondo */
.certifications-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
}

.certification-content {
  max-width: 1200px;
  margin: 32px auto;
}

.certification-content h2,
.certification-content p {
  position: relative;
  z-index: 1;
  margin: 30px auto;
  color: #222;
  text-align: center;
}

.certification-content h2 {
  width: 60%;
  font-size: 40px;
  font-weight: 700;
  text-shadow: var(--shadow-text-md);
}

.certification-content p {
  width: 75%;
  font-size: 20px;
  font-weight: 400;
}

/* Grids de Logos */
.certifications-seal-x3,
.certifications-seal-x2 {
  display: grid;
  justify-content: center;
  justify-items: center;
  align-items: center;
  align-content: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px;
  gap: 100px;
}

.certifications-seal-x3 {
  grid-template-columns: repeat(3, auto);
}

.certifications-item {
  padding: 10px;
  transition: transform 0.3s ease, color 0.3s ease;
}

.certifications-item img {
  display: block;
  width: auto;
  height: 170px;
  max-width: 100%;
  transform: scale(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.certifications-item:hover {
  transform: scale(1.1);
  filter: brightness(1.1);
}

/* Sección Grid ISO (Estática) */
.iso-certifications {
  width: 100%;
  padding: 30px 0 80px 0;
  text-align: center;
}

.iso-certifications h2 {
  margin-bottom: 30px;
  color: var(--color-text-base);
  font-size: 28px;
  font-weight: 600;
  text-shadow: var(--shadow-text-md);
}

.iso-grid-1 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
  width: 50%;
  margin: auto;
}

.iso-grid-2 {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
  width: 35%;
  margin: 0 auto;
}

.iso-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  margin: 0 auto;
  color: #2b2b85;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  background-color: transparent;
  border: none;
  transition: transform 0.3s ease, color 0.3s ease;
}

.iso-card span {
  display: block;
  width: 180px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.3;
  word-wrap: break-word;
  text-align: center;
  justify-content: center;
  text-shadow: var(--shadow-text-md);
}

.iso-card img {
  object-fit: contain;
  max-height: 160px;
  padding-bottom: 15px;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.iso-card:hover {
  color: var(--color-hover-link);
  transform: scale(1.05);
}
.iso-card:hover img {
  filter: brightness(1.1);
  transform: scale(1.1);
}

/* ==========================================================================
10. COMPONENTE: COBERTURA Y MAPA
   ========================================================================== */

.section-coverage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  min-height: 373px;
  margin: 0 auto;
  padding: 20px 0px;
  background: linear-gradient(
    180deg,
    rgba(0, 100, 148, 1) 0%,
    rgba(74, 87, 117, 1) 100%
  );
}

.column-text {
  justify-content: center;
  align-items: center;
  width: 50%;
  max-width: 600px;
  text-align: center;
  color: #fff;
}

.column-text h2 {
  margin-bottom: 20px;
  font-size: 32px;
  font-weight: 600;
}

.column-text p {
  font-size: 20px;
  font-weight: 400;
}

.column-map {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 580px; /* Ancho fijo original, ojo en responsive */
  height: 300px;
  overflow: hidden;
  border-radius: 15px;
}

.column-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
11. COMPONENTE: CONTACTO Y FORMULARIO
   ========================================================================== */

.contact-card {
  position: relative;
  max-width: 800px;
  margin: 40px auto;
  padding-bottom: 20px;
  background-color: var(--color-bg-light);
  background-image: linear-gradient(
      rgba(5, 99, 146, 0.6),
      rgba(8, 61, 103, 0.6)
    ),
    url("../img/home/hombres-trabajando-con-equipo-de-seguridad.webp");
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.contact-header {
  position: relative;
  padding: 20px 30px;
  background-color: #003366;
  color: white;
  overflow: hidden;
}

.contact-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(
      to right,
      rgba(0, 51, 102, 0.9) 0%,
      rgba(0, 51, 102, 0.7) 100%
    ),
    url("placeholder_bg.jpg");
  background-position: center;
  background-size: cover;
}

.contact-header h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 40px;
  font-weight: 600;
}

.contact-form {
  max-width: 500px;
  margin: 0 10px;
  padding: 20px 30px;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255);
  font-size: 18px;
  font-weight: 500;
  text-shadow: 0px 0px 15px #000000;
}

/* Inputs y Textarea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 5px;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #004d99;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.submit-button {
  width: 100%;
  margin-top: 10px;
  padding: 15px;
  background-color: var(--color-primary-dark);
  color: white;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.4s ease;
}

.submit-button:hover {
  background-color: var(--color-bg-white);
  color: var(--color-primary-dark);
}

/* Feedback del formulario */
#form-feedback {
  margin-top: 15px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.3s ease;
  background: #FFF;
}

/* Estados */
#form-feedback.success {
  color: green;
}

#form-feedback.error {
  color: red;
}

#form-feedback.sending {
  color: #666;
}

/* Botón deshabilitado */
.submit-button:disabled {
  background-color: #999;
  cursor: not-allowed;
  opacity: 0.7;
}


/* ==========================================================================
12. COMPONENTE: CTA BOX
   ========================================================================== */

.cta-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1000px;
  min-height: 400px;
  margin: 50px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.cta-image {
  flex: 1 1 50%;
  overflow: hidden;
}

.cta-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(1);
  transform: scale(1);
  transition: transform 0.5s ease-out, filter 0.5s ease-out;
}

.cta-box:hover .cta-image img {
  filter: brightness(0.85);
  transform: scale(1.15);
}

.cta-content {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px;
  background-color: #f0f5fd;
  text-align: center;
}

.cta-content h2,
.cta-content p {
  margin: 10px;
  color: var(--color-text-base);
}

.cta-content h2 {
  font-size: 22px;
  font-weight: 600;
  text-shadow: var(--shadow-text-md);
}

.cta-content p {
  font-size: 18px;
  font-weight: 400;
}

.cta-content button {
  width: 175px;
  height: 50px;
  margin: 20px auto 0 auto;
  padding: 10px 20px;
  background-color: var(--color-primary-dark);
  color: var(--color-bg-white);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.cta-content button:hover {
  color: var(--color-primary-dark);
  background-color: var(--color-bg-white);
  border: 1.5px solid var(--color-primary-dark);
  transform: scale(1.05);
}

/* ==========================================================================
13. COMPONENTE: FOOTER
   ========================================================================== */

.main-footer {
  border-top: 6px solid #071364;
  background-image: var(--gradient-footer);
  color: var(--color-bg-white);
  font-size: 18px;
  font-weight: 400;
}

.footer-top {
  padding: 40px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr;
  gap: 30px;
  align-items: center;
}

.footer-title {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 25px;
  font-weight: 400;
}

/* Footer Links */
.footer-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu li {
  margin-bottom: 8px;
  font-size: 18px;
}

.footer-menu a {
  position: relative;
  display: inline-block;
  color: var(--color-bg-white);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-bg-white);
  transition: width 0.3s ease-out;
}

.footer-menu a:hover::after {
  width: 100%;
}

/* Columna 2: Contacto */
.footer-col-2 {
  align-items: center;
  text-align: center;
}

.footer-col-2 p,
.footer-col-2 a {
  margin: 0;
  color: var(--color-bg-white);
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

.footer-col-2 p {
  margin-bottom: 8px;
}
.footer-col-2 a:hover {
  color: #b4b3b3;
}

/* Columna 3: QR */
.footer-col-3 {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.qr-code {
  width: 150px;
  height: 150px;
  padding: 0px;
  background-color: var(--color-bg-white);
  border-radius: 5px;
}

/* Footer Bottom */
.footer-bottom {
  padding: 15px 0;
  background-image: var(--gradient-footer-bottom);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

.social-links img {
  width: 35px;
  height: 35px;
  transition: transform 0.3s ease;
}

.social-links img:hover {
  transform: scale(1.1);
}

.copyright p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.copyright a {
  color: var(--color-bg-white);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.copyright a:hover {
  color: #b4b3b3;
}

/* ==========================================================================
14. ANIMACIONES (Keyframes & Scroll)
   ========================================================================== */

@keyframes slide {
  0% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-100%);
  }
  45% {
    transform: translateX(-100%);
  }
  50% {
    transform: translateX(-200%);
  }
  70% {
    transform: translateX(-200%);
  }
  75% {
    transform: translateX(-300%);
  }
  95% {
    transform: translateX(-300%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes bgZoom {
  0% {
    background-size: 100%;
  }
  100% {
    background-size: 110%;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
  }
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translateY(0);
  }
  100% {
    transform: scale(1.2) translateY(-5px);
  }
}

/* Clases de Estado para JS */

.animacion-scroll {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up {
  transform: translateY(40px);
}
.fade-in {
  transform: translateY(-40px);
}
.zoom-in {
  transform: scale(0.8);
}

.fade-in-right {
  transform: translateX(-80px);
}

.fade-in-left {
  transform: translateX(80px);
}

.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
. REVIEWS GOOGLE
   ========================================================================== */

.reviews-slider-section {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.reviews-slider-section h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 2rem;
  color: #333;
  text-shadow: var(--shadow-text-md);
}

.reviews-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.slider-container {
  display: flex;
  align-items: center;
  overflow: hidden; /* oculta el desborde */
  max-width: 100%;
}

.reviews-slider {
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  max-width: 100%;
  scroll-behavior: smooth;
  gap: 1.5rem; /* separación entre tarjetas */
}

.reviews-slider::-webkit-scrollbar {
  display: none; /* oculta en Chrome, Safari, Edge */
}

.review-card {
  position: relative;

  flex: 0 0 100%; /* ocupa todo el ancho del slider */
  background: #f4f4f4;
  border-radius: 12px;
  padding: 1.5rem;
  scroll-snap-align: center;
}

.review-icon {
  position: absolute;
  top: 24px; /* margen superior */
  right: 24px; /* margen derecho */
  width: 30px;
  height: 30px;
}

.review-icon img {
  width: 100%;
  height: auto;
}

.review-meta {
  margin-bottom: 0.5rem;
}

.review-name {
  font-weight: bold;
  font-size: 1rem;
  color: #222;
}

.review-date {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2px;
}

.review-stars {
  display: flex; /* coloca las estrellas en fila */
  align-items: center; /* las centra verticalmente */
  gap: 4px; /* espacio entre estrellas */
}

.review-stars img {
  width: 20px;
  height: 20px;
  margin-right: 3px;
  vertical-align: middle;
}

.review-text {
  max-height: 220px;
  overflow: hidden;
  font-size: 14px;
}

.toggle-btn {
  margin-top: 0.5rem;
  background: none;
  border: none;
  color: #0077cc;
  cursor: pointer;
  font-weight: bold;
}

.nav-btn {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-btn.prev {
  margin-right: 0.5rem; /* separa del card */
}

.nav-btn.next {
  margin-left: 0.5rem; /* separa del card */
}

.nav-btn:hover {
  background: #eee;
}

.add-review {
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 30px 10px;
}

.background-contact-form {
  background: #f7f7fa;
  padding: 5px;
}

.btn-add-review {
  padding: 10px 20px;
  background-color: var(--color-primary-dark);
  color: white;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.4s ease;
}

.add-review :hover {
  background-color: var(--color-bg-white);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-dark);
}

/* SECTION EXCELENT*/

.rating-summary {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  max-width: 300px;
}

.rating-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #222;
  margin-bottom: 0.5rem;
}

.rating-stars {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0.5rem;
}

.rating-stars img {
  width: 24px;
  height: 24px;
}

.rating-base {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.rating-source .google-logo {
  width: 150px;
  height: auto;
}

/* ==========================================================================
15. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* --- Desktop Small / Tablets grandes (Max 1024px) --- */
@media (max-width: 1024px) {
  .main-header {
    padding: 20px 40px;
    gap: 40px;
  }
  .hero {
    height: 60vh;
  }
  .hero-content {
    padding: 0;
    margin: 0;
  }
  .hero-content h1 {
    font-size: 35px;
  }
  .hero-content h2 {
    font-size: 24px;
  }

  .section-content {
    width: 100%;
    margin: 0 auto;
  }
  .check-list li {
    gap: 10px;
    font-size: 16px;
  }
  .iso-certifications {
    width: 100%;
  }
}

/* --- Notebooks & Tablets (Max 992px) --- */
@media (max-width: 992px) {
  /* Hero Changes */
  .hero-content-home {
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0 auto;
  }
  .hero-content-home h1 {
    width: 55%;
    padding-top: 10%;
    font-size: 32px;
    text-align: center;
  }

  /* Cards */
  .cards-section {
    padding: 0 0 30px 0;
  }
  .cards-section h2 {
    font-size: 24px;
  }
  .cards-section h3 {
    font-size: 20px;
  }
  .cards-section p {
    margin: 0 auto;
    font-size: 17px;
  }

  .cards-section h2 {
    padding-left: 30px;
    padding-right: 30px;
  }

  .certification-content h2,
  .cards-section h2,
  .section-coverage h2,
  .contact-header h2 {
    font-size: 28px;
  }

  /* About Us / Content Wrapper */
  .content-wrapper {
    flex-direction: column;
    gap: 0px;
    padding: 30px 10px;
  }
  .content-wrapper .image-container,
  .content-wrapper .text-container {
    flex: unset;
    width: 100%;
    padding: 20px;
  }
  .text-container::before {
    clip-path: none;
    border-radius: 0;
  }
  .content-wrapper h2 {
    margin: 0 auto;
    font-size: 28px;
  }
  .content-wrapper p {
    font-size: 17px;
  }

  /* Invertir orden en última sección */
  .about-us-section > .content-wrapper:last-of-type {
    flex-direction: column-reverse;
  }

  .commitment-block {
    justify-content: center;
    width: 65%;
    margin: 15px auto;
  }
  .image-container img {
    width: 50%;
    margin: 0 auto;
  }

  /* Certifications */
  .certifications-section {
    padding: 30px 20px;
  }
  .certification-content h2 {
    font-size: 28px;
    width: 100%;
  }
  .certification-content p {
    width: 100%;
    font-size: 17px;
  }

  .certifications-seal-x3 {
    grid-template-columns: repeat(3, auto);
    gap: 30px;
  }

  /* Maps & Coverage */
  .section-coverage {
    flex-direction: column;
    gap: 35px;
    padding: 40px 0;
  }
  .column-text,
  .column-map {
    width: 90%;
  }
  .column-text h2 {
    font-size: 28px;
    margin: 0;
  }
  .column-text p {
    font-size: 17px;
  }
  .column-map {
    height: 300px;
  }

  .contact-card {
    width: 95%;
    background-position: left;
  }
}

/* --- Mobile Landscape / Tablets (Max 768px) --- */
@media (max-width: 768px) {
  /* Header Mobile Logic */
  .main-header {
    justify-content: space-between;
    padding: 15px 20px;
  }
  .menu-toggle {
    display: block; /* Botón hamburguesa visible */
    z-index: 20;
    color: #3e52e4;
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .main-nav {
    position: absolute;
    top: 100px;
    right: 0;
    z-index: 10;
    display: block;
    width: 10%;
    min-width: 190px;
    max-height: 0;
    overflow: hidden;
    text-align: center;
    background-color: var(--color-bg-white);
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: max-height 0.4s ease-in-out;
  }

  .main-nav.is-open {
    max-height: 300px;
    border: 1.5px solid #253c87;
  }

  .main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 15px;
    padding: 10px 0;
  }
  .main-nav ul li a {
    display: block;
    padding: 5px;
  }
  .main-nav.is-open ul li {
    border-bottom: 1px solid #eee;
  }
  .main-nav ul li:last-child {
    border-bottom: none;
  }

  /* Hero */
  .hero {
    height: 70vh;
  }
  .hero-content-home h1 {
    width: 60%;
    padding-top: 20%;
    font-size: 30px;
  }

  .cards-container {
    padding: 20px 5px;
  }

  .cards-section h2 {
    padding-left: 30px;
    padding-right: 30px;
  }

  .text-container h2,
  .certification-content h2,
  .cards-section h2,
  .section-coverage h2,
  .contact-header h2 {
    font-size: 28px;
  }

  /* CTA */
  .cta-box {
    flex-direction: column;
    height: 400px;
  }
  .cta-image,
  .cta-content {
    flex: 1;
  }

  .list-porque-elegirnos {
  padding-right: 10px;
}

  /* ISO Grid */
  .iso-grid-1,
  .iso-grid-2 {
    grid-template-columns: 1fr;
    width: 100%;
  }

  /*Reviews section*/
  .reviews-layout {
    flex-direction: column;
}

  /* Footer Stack */
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col-1,
  .footer-col-2,
  .footer-col-3 {
    margin-bottom: 25px;
  }
  .footer-col-3 {
    justify-content: center;
  }
  .footer-bottom-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .social-links {
    margin-bottom: 15px;
  }
}

/* --- Mobile Portrait (Max 600px) --- */
@media (max-width: 600px) {
  /* Hero Typography */
  .hero-content-home h1 {
    width: 90%;
    padding-top: 20%;
    font-size: 30px;
  }
  .btn-solicitar {
    font-size: 18px;
  }

  .cards-container {
    padding: 20px 5px;
  }

  .cards-section h2 {
    padding-left: 30px;
    padding-right: 30px;
  }

  .text-container h2,
  .certification-content h2,
  .cards-section h2,
  .section-coverage h2,
  .contact-header h2 {
    font-size: 28px;
  }

  /* Layout Adjustments */
  .content-wrapper {
    padding: 20px 0;
  }
  .image-container img {
    width: 100%;
  }
  .commitment-block {
    width: 95%;
  }

  .list-porque-elegirnos {
  padding-right: 10px;
}

    /* ISO Grid */
  .iso-grid-1,
  .iso-grid-2 {
    grid-template-columns: 1fr;
    width: 100%;
  }

  /* Grids to Single Column */
  .certifications-seal-x3,
  .certifications-seal-x2 {
    grid-template-columns: repeat(1, auto);
    gap: 50px;
  }

  /*Reviews section*/
  .reviews-layout {
    flex-direction: column;
    align-items: center;          /* centra todo */
    gap: 1rem;                    /* espacio entre card y botones */
  }
  .nav-btn {
    display: none; /* oculta los botones prev/next */
  }

  .reviews-slider {
    overflow-x: auto;          /* permite desplazamiento manual */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* scroll suave en iOS */
  }

  .reviews-slider::-webkit-scrollbar {
    display: none; /* oculta la barra de scroll en mobile */
  }

  .contact-card {
    background-position: center;
  }

  /* Font Sizing Reductions */
  .section-content .resumen-hero {
    margin: 50px 0;
  }
  .section-content .resumen-hero p {
    text-align: left;
    line-height: 1.9;
  }
  .section-content p,
  .section-content li,
  .cta-content p {
    font-size: 17px;
  }
  .section-content h3 {
    font-size: 17px;
  }
  .cta-content h2 {
    font-size: 18px;
  }

  /* Icons */
  .check-list .check-x2 {
    width: 20px;
    height: 20px;
    padding: 2px;
  }
}