/* General */
* {
  margin: 0; padding: 0; box-sizing: border-box;
}
body {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 80px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}


/* Contenedor del logo + texto */
.logo-container {
  display: flex;
  align-items: center;
  gap: 15px; /* espacio entre logo y texto */
}

/* Imagen del logo (aumentado) */
.logo-img {
  height: 90px;     /* antes 50px */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* Sutil efecto hover (opcional y elegante) */
.logo-img:hover {
  transform: scale(1.05);
}

/* Texto del logo */
.logo-text {
  font-weight: 700;
  font-size: 20px;
  color: #0a2342;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.nav-links {
  display: flex;
  gap: 20px;
}
.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  padding: 8px 12px;             /* espacio extra para que el hover se note mejor */
  border-radius: 5px;            /* bordes redondeados */
  transition: background 0.3s, color 0.3s;
}
.nav-links a:hover {
  color: #fff;                   /* texto en blanco */
  background: #0a2342;           /* fondo azul */
}
.menu-toggle {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
  height: 70vh;
  display: flex;
  justify-content: flex-end;   /* mantiene texto a la derecha */
  align-items: center;
  padding: 0 60px;             /* espacio desde borde derecho */
  color: #fff;
  position: relative;
  text-align: center;
  overflow: hidden;
}

/* Fondo con slider */
.hero-slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* 🔹 Animaciones */
@keyframes zoomIn {
  from { transform: scale(1); }
  to   { transform: scale(1.1); }
}

@keyframes zoomOut {
  from { transform: scale(1.1); }
  to   { transform: scale(1); }
}

/* Base de las imágenes */
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s ease-in-out;
}

/* Overlay oscuro */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.3);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 40%;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.btn {
  background: #0a2342;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
}
.btn:hover {
  background: #173f73;
}

/* Servicios */
.services {
  padding: 50px 30px;
  text-align: center;
  background: #f9f9f9;
}

.services h2 {
  margin-bottom: 30px;
  color: #0a2342;
  font-size: 2rem;
}

.services h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #0a2342;
  margin: 10px auto 0;
  border-radius: 2px;
}

.service-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 🔹 6 en una sola fila */
  gap: 25px;
  justify-items: center;
  align-items: stretch;
  max-width: 1700px; /* 🔹 ancho máximo más grande */
  margin: 0 auto;
}

/* Tarjetas */
.service-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 80px;
  margin-bottom: 15px;
}


/* Acerca de Nosotros */
.about {
  display: flex;
  flex-wrap: wrap;
  padding: 20px;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1 1 50%; /* ocupa la mitad izquierda */
  max-width: 900px;
  padding-left: 40px;  /* ⬅️ mueve el texto hacia adentro */
  font-size: 1rem;
}
.about-text h2 {
  font-size: 3rem;        /* tamaño del título */
  color: #0a2342;         /* color azul marino */
  margin-bottom: 20px;    /* ⬅️ espacio debajo del título antes del párrafo */
  padding-left: 40px;  /* ⬅️ mueve el texto hacia adentro */
}

.about-img {
  flex: 0 1 40%; /* ocupa menos espacio */
  display: flex;
  justify-content: flex-end; /* manda la imagen a la derecha */
}

.about-img img {
  width: 90%;       /* ajusta el tamaño */
  max-width: 300px; /* límite para que no se deforme */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Mision, vision, valores */
.mission {
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center;
}

.mission h2 {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #0a2342;
  position: relative;
}
.mission h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #0a2342;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Layout: dos columnas */
.mission-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;     /* dos columnas iguales */
  gap: 25px;
  max-width: 1600px;
  margin: 0 auto;
}

/* Columna izquierda → Misión y Visión en vertical */
.left-column {
  display: grid;
  grid-template-rows: 1fr 1fr;        /* ambas cartas ocupan la mitad de la altura */
  gap: 25px;
}

/* Card general */
.mission-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  text-align: left;
}
.mission-card:hover {
  transform: translateY(-5px);
}
.mission-card h3 {
  color: #0a2342;
  margin-bottom: 15px;
}
.mission-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}

/* Lista de valores */
.values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.values-list li {
  margin-bottom: 20px;
}
.values-list strong {
  display: block;
  color: #0a2342;
  margin-bottom: 5px;
  font-size: 1rem;
}
.values-list p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* Formulario de contacto */
/* Sección de contacto */
.contact {
  padding: 10px 20px 60px 20px; /* antes seguramente era 60px arriba */
  background: #f9f9f9;
}

.contact .section-title {
  margin-top: 0;        /* elimina margen extra arriba */
  margin-bottom: 30px;  /* mantiene separación hacia abajo */
}

.section-title {
  font-size: 2rem;
  margin-bottom: 40px;
  color: #0a2342;
  text-align: center;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #0a2342;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Layout en dos columnas */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

/* Columna izquierda: Información de contacto */
.contact-info {
  background: #fff;                /* fondo blanco para destacar */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact-info a {
  color: inherit;              /* mantiene el color actual (blanco o azul según fondo) */
  text-decoration: none;       /* sin subrayado */
  transition: color 0.2s ease;
}

.contact-info a:hover {
  color: #ffd700;              /* cambia a dorado o tu color secundario al pasar el mouse */
}

.contact-info h3 {
  font-size: 1.5rem;               /* un poco más grande */
  margin-bottom: 20px;
  color: #0a2342;
  font-weight: 700;
  text-align: left;
}

.contact-info p {
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
  font-size: 1rem;
}

/* Lista de datos */
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-info li {
  margin-bottom: 20px;
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;                       /* espacio entre ícono y texto */
  padding: 12px 15px;
  border: 1px solid #eee;          /* borde suave */
  border-radius: 8px;
  background: #0a2342;             /* gris muy claro */
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info li:hover {
  transform: translateX(5px);      /* pequeño movimiento */
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

/* Íconos */
.contact-info .icon {
  font-size: 1.6rem;
  color: #0a2342;
  flex-shrink: 0;                  /* evita que se encoja */
}

/* Columna derecha: formulario */
.contact-form form {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

input:focus, textarea:focus {
  border-color: #0a2342;
  outline: none;
}

.btn-submit {
  background: #0a2342;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
  display: block;
  margin-top: 10px;
}

.btn-submit:hover {
  background: #173f73;
}

.form-action {
  display: flex;
  align-items: center;   /* Alinea verticalmente */
  gap: 15px;             /* Espacio entre botón y mensaje */
}

/* Spinner semicircular */
.spinner {
  border: 5px solid rgba(0,0,0,0.1);  /* gris claro para contraste */
  border-top: 5px solid #3498db;      /* azul vivo */
  border-radius: 50%;
  width: 26px;
  height: 26px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#formStatus {
  display: flex;
  align-items: center;   /* Centra spinner + texto */
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  min-width: 250px;
}

#formStatus.success {
  color: #2ecc71; /* verde */
}

#formStatus.error {
  color: #e74c3c; /* rojo */
}

/* Footer */
footer {
  background: #0a2342;
  color: #fff;
  text-align: center;
  padding: 20px;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 50px;   /* ⬅️ antes era 20px, ahora más arriba */
  right: 40px;    /* ⬅️ antes era 20px, ahora más a la izquierda */
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

/* Pagina Servicios */

/* Encabezado de la página */
.page-header {
  text-align: center;
  padding: 60px 20px 30px;
  background: #f9f9f9;
}
.page-header h1 {
  font-size: 2rem;
  color: #0a2342; /* azul corporativo */
  margin-bottom: 10px;
}
.page-header p {
  color: #555;
  font-size: 1rem;
}

/* Pagina Servicios */
/* Bloques de servicios */
.service-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;  /* 60 20 */
  max-width: 1400px;
  margin: 0 auto;
}
.service-block.reverse {
  flex-direction: row-reverse; /* alterna imagen y texto */
}

.service-img {
  flex: 1;
  max-width: 500px;   /* todas las imágenes tendrán el mismo ancho */
}

.service-img img {
  width: 100%;
  height: 300px;      /* ⬅️ altura fija para que todas se vean iguales */
  object-fit: cover;  /* recorta y ajusta la imagen sin deformarla */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Imagen vertical específica */
.service-img-vertical img {
  width: auto;             /* Mantiene el ancho natural */
  height: 500px;           /* Controlas la altura según diseño */
  object-fit: contain;     /* Evita recortes, muestra toda la imagen */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin: 0 auto;
  display: block;
}

.service-text {
  flex: 1;
}
.service-text h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #0a2342;
}
.service-text p {
  color: #333;
  line-height: 1.6;
  font-size: 1rem;
  padding-top: 2%;
}



/* Responsive Menu */

@media (max-width: 768px) {

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px; /* más espacio lateral */
    background-color: #fff;
    position: relative;
    z-index: 1000;
  }

  .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 80%;
  }

  .logo-img {
    width: 45px; /* tamaño más pequeño para móviles */
    height: auto;
  }

  .logo-text {
    font-size: 12px;
    line-height: 1.2;
    text-align: left;
  }

  .menu-toggle {
    display: block;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: #002b5c;
    position: absolute;
    right: 20px;
    top: 15px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #ffffff;
    position: absolute;
    top: 65px;
    right: 10px;
    width: 85%;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    text-align: center;
    padding: 12px 0;
    font-size: 16px;
    color: #002b5c;
    text-decoration: none;
    border-bottom: 1px solid #eee;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}
/* Responsive Hero */
@media (max-width: 768px) {
  .hero {
    justify-content: center; /* en móvil centramos */
    text-align: center;
    padding: 0 20px;
  }
  .hero-content {
    max-width: 100%;
  }
}

/* ===== BREAKPOINT 1: 4 ARRIBA, 2 CENTRADAS DEBAJO ===== */
@media (max-width: 1200px) {
  .service-container {
    grid-template-columns: repeat(4, 1fr);
    grid-template-areas:
      "s1 s2 s3 s4"
      ".  s5 s6  .";
  }

  .service-card:nth-child(1) { grid-area: s1; }
  .service-card:nth-child(2) { grid-area: s2; }
  .service-card:nth-child(3) { grid-area: s3; }
  .service-card:nth-child(4) { grid-area: s4; }
  .service-card:nth-child(5) { grid-area: s5; }
  .service-card:nth-child(6) { grid-area: s6; }
}

/* ===== BREAKPOINT 2: 2x3 EN TABLET ===== */
@media (max-width: 900px) {
  .service-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "s1 s2"
      "s3 s4"
      "s5 s6";
  }
}

/* ===== BREAKPOINT 3: UNA COLUMNA EN MÓVIL ===== */
@media (max-width: 600px) {
  .service-container {
    grid-template-columns: 1fr;
    grid-template-areas:
      "s1"
      "s2"
      "s3"
      "s4"
      "s5"
      "s6";
  }
}

/* Responsive  Acerca de nosotros */

@media (max-width: 768px) {
  .about-img {
    display: none !important;
  }
}

/* ===== Corregir alineación de "Acerca de Nosotros" en pantallas pequeñas ===== */
@media (max-width: 480px) {
  .about {
    width: 100%;
    margin: 0;
    padding: 50px 0px !important; /* 🔹 elimina el padding desigual */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
  }

  .about-text {
    width: 100%;
    max-width: 340px;
    text-align: center;
    margin: 0 auto;
    padding: 0;
  }

  .about-text h2 {
    text-align: center !important;
    margin: 0 auto !important;
    padding: 0 !important;
    width: 100%;
    display: block;
  }

  /* Centra también la línea decorativa debajo del título */
  .about-text h2::after {
    margin: 10px auto 0 !important;
    left: 0;
    right: 0;
  }

  .about-text p {
    margin: 0 auto;
    text-align: center;
    line-height: 1.5;
  }

  .about-text .btn {
    display: inline-block;
    margin: 20px auto 0;
  }

  .about-img {
    display: none !important;
  }
}

/* Responsive  Mision */
@media (max-width: 900px) {
  .mission-layout {
    grid-template-columns: 1fr; /* solo una columna */
  }
}

/* 🔹 Responsivo Formulario */
@media (max-width: 900px) {

  /* Estructura en columna */
  .contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  /* Información primero */
@media (max-width: 768px) {
  /* 🔹 Ocultar íconos */
  .contact-info .icon {
    display: none;
  }

  /* 🔹 Ajustar ancho y espaciado */
  .contact-info ul {
    width: 90%;
    padding: 0;
    margin: 0 auto;
  }

  .contact-info li {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #0a2240;
    color: #fff;
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    word-break: break-word; /* ✅ evita que se corten los textos */
  }

  .contact-info li strong {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
  }

  .contact-info li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
  }

  .contact-info li a:hover {
    text-decoration: underline;
  }

  /* 🔹 Más espacio general y centrado */
  .contact-info {
    text-align: center;
    padding: 10px 20px;
  }

  .contact-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
  }

  .contact-info p {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}

  /* Formulario debajo */
  .contact-form {
    order: 2;
    width: 110%;
    padding: 25px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);

  }

  .contact-form label {
    font-size: 0.95rem;
  }

  .btn-submit {
    width: 100%;
    font-size: 1rem;
  }
}

/* Responsivo Pagina Servicios*/
@media (max-width: 900px) {
  .service-block,
  .service-block.reverse {
    flex-direction: column;
    text-align: center;
  }
  .service-img img {
    max-width: 100%;
  }
}