
/* ====ROOT000
 :root se refiere al elemento raíz del documento HTML */
:root {
      --bg-color: #1a212c; /* fondo base (azul grisáceo oscuro) */
      --text-color: #fff; /* texto en blanco */
      --hover-color: #1d3f8b; /* color para estados hover/enfasis */
    }
    /* BODY: se refiere a todo el cuerpo de la página web */ 
    body {    
      margin: 0;    /* Le quita el espacio blanco exterior que los navegadores ponen por defecto alrededor de la página (hace que empiece en le borde sup. izquierdo) */ 
      font-family: "Poppins", sans-serif; /*tipo de letra: */
      background-color: var(--bg-color); /* viene de la variable declaro en root*/
      color: var(--text-color);
    }

      /* ===== HEADER GENERAL ===== aplica a la etiqueta <header> */
    header {
      display: flex; /* coloca los elementos en una misma línea (modo flexbox) */
      align-items: center; /* centra verticalmente los elementos dentro del header */
      justify-content: space-between; /* separa los elementos dejando espacio entre ellos */
      padding: 0.7rem 1.2rem; /* añade espacio interno (arriba/abajo y a los lados) */
      background-color: var(--bg-color); /* color de fondo del encabezado */
      position: relative; /* sirve como referencia para posicionar elementos hijos */
    }

    /* ===== IZQUIERDA: LOGO Y NOMBRE ===== */
    .logo {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: bold;
      font-size: 1rem;
      white-space: nowrap;
    }

    .logo img {
      width: 40px;
      height: 40px;
    }

    /* ===== CENTRO: MENÚ ===== */
    nav {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
    }

    nav ul {
      display: flex;
      list-style: none;
      gap: 1.5rem;
      margin: 0;
      padding: 0;
    }

    nav a {
      color: var(--text-color);
      text-decoration: none;
      font-weight: 500;
    }

    nav a:hover {
      color: var(--hover-color);
    }

    /* ===== DERECHA: BUSCADOR + ICONO ===== */
    .right-side {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .search-box input {
      padding: 5px 10px;
      border-radius: 20px;
      border: none;
      outline: none;
    }

    .menu-toggle {
      display: none;
    }

    .menu-icon {
      display: none;
      cursor: pointer;
      font-size: 1.6rem;
      color: var(--text-color);
      user-select: none;
    }

    /* ===== RESPONSIVE ===== */
    @media (max-width: 768px) {
      header {
        position: relative;
      }

      nav {
        position: static;
        transform: none;
        width: 100%;
      }

      nav ul {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: var(--bg-color);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        border-top: 1px solid #1d3f8b;
        padding: 1rem 0;
      }

      /* ✅ Mostrar el menú al activar el checkbox */
      .menu-toggle:checked + label + nav ul {
        display: flex;
      }

      .search-box {
        display: none;
      }

      .menu-icon {
        display: block;
      }

      /* Mantener icono y logo en la misma línea */
      .right-side {
        align-items: center;
      }
    }

/************************Bannner*********************************/

/* BANNER PRINCIPAL */
.banner {
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  color: #ffffff;
  text-align: center;
  padding: 5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-content {
  max-width: 800px;
}

.banner h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.banner p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #f1f5f9;
}

/* BOTÓN */
.banner-btn {
  background-color: #ffffff;
  color: #1e3a8a;
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.banner-btn:hover {
  background-color: #dbeafe;
  transform: scale(1.05);
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .banner {
    padding: 3rem 1rem;
  }

  .banner h1 {
    font-size: 1.6rem;
  }

  .banner p {
    font-size: 1rem;
  }
}

/**************        FOOTER              ******************/

    footer {
        background-color: #1a212c;
        color: #ffffff;
        padding: 2rem 1rem;
        text-align: center;
        border-top: 1px solid #1d3f8b;
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    /* Columnas */
    .footer-column {
        text-align: center;
    }

    .footer-column h3 {
        margin-bottom: 0.5rem;
        color: #d1e0ff;
        font-size: 1.1rem;
    }

    /* Responsivo: dos columnas en pantallas grandes */
    @media (min-width: 768px) {
        .footer-content {
            flex-direction: row;
            justify-content: space-around;
            text-align: left;
        }

        .footer-column {
            text-align: left;
        }
    }

    /* Derechos reservados */
    .footer-copy {
        font-size: 0.85rem;
        color: #cbd5e1;
        border-top: 1px solid #2c3850;
        padding-top: 0.8rem;
        margin: 0;
    }


/**************************************** /

/* QUIÉNES SOMOS */
.nosotros {
  background-color: #f9fafb;
  color: #1e293b;
  padding: 4rem 1.5rem;
}

.nosotros-contenido {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.nosotros-texto {
  flex: 1 1 400px;
  text-align: justify;
  padding: 1em;
}

.nosotros-texto h2 {
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.nosotros-texto p {
  line-height: 1.6;
  font-size: 1.05rem;
  margin: 0; /* 🔹 elimina márgenes inferiores */
}

.nosotros-imagen {
  flex: 1 1 350px;
  display: flex;
  justify-content: center;
}

.nosotros-imagen img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  object-fit: contain;
}

/* PRESENTACIÓN */
.presentacion {
  background-color: #1e3a8a;
  color: #fff;
  text-align: center;
  padding: 4rem 1.5rem;
}

.presentacion h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
}

/* RESPONSIVO MÓVIL */
@media (max-width: 768px) {
  .nosotros-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0; /* sin espacio entre texto e imagen */
  }

  .nosotros-texto {
    text-align: justify;
    margin-bottom: 0; /* elimina margen inferior */
    padding-bottom: 0; /* evita separación interna */
  }

  .nosotros-imagen {
    margin-top: 0; /* sin espacio superior */
    padding-top: 0;
    width: 100%;
  }

  .nosotros-imagen img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none !important;
    object-fit: contain;
    margin: 0; /* asegura unión directa */
  }
}

/***********     Sección  Nosotros *************/

/* NUESTRA HISTORIA */
.historia {
  background-color: #f9fafb;
  color: #1e293b;
  padding: 4rem 1.5rem;
}

.historia-contenido {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.historia-texto {
  flex: 1 1 450px;
  text-align: justify;
}

.historia-texto h2 {
  font-size: 1.8rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.historia-texto p {
  line-height: 1.6;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.historia-imagen {
  flex: 1 1 350px;
  display: flex;
  justify-content: center;
}

.historia-imagen img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ✅ RESPONSIVO */
@media (max-width: 768px) {
  .historia-contenido {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }

  .historia-texto {
    text-align: justify;
    margin-bottom: 0;
  }

  .historia-imagen {
    margin-top: 1rem;
    width: 100%;
  }

  .historia-imagen img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
}


/******* */

/* === NUESTROS VALORES === */
.valores {
  background-color: #1e293b;
  padding: 4rem 1.5rem;
  text-align: center;
  color: #e2e8f0;
}

.valores h2 {
  font-size: 1.8rem;
  color: #93c5fd; /* celeste claro */
  margin-bottom: 2rem;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.valor-card {
  background: #273449;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.valor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.valor-card h3 {
  font-size: 1.2rem;
  color: #60a5fa;
  margin-bottom: 0.5rem;
}

.valor-card p {
  line-height: 1.5;
  font-size: 1rem;
  color: #cbd5e1;
}

/* === NUESTRO EQUIPO === */
.equipo {
  background-color: #0f172a;
  padding: 4rem 1.5rem;
  text-align: center;
  color: #e2e8f0;
}

.equipo h2 {
  font-size: 1.8rem;
  color: #93c5fd;
  margin-bottom: 1rem;
}

.equipo-intro {
  max-width: 900px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  text-align: justify;
  color: #cbd5e1;
}

.equipo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.equipo-card {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.equipo-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5);
}

.equipo-card h3 {
  font-size: 1.2rem;
  color: #60a5fa;
  margin-bottom: 0.3rem;
}

.equipo-card .cargo {
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.equipo-card p {
  line-height: 1.5;
  font-size: 1rem;
  color: #cbd5e1;
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
  .valores, .equipo {
    padding: 3rem 1rem;
  }

  .valor-card, .equipo-card {
    text-align: center;
  }

  .equipo-intro {
    text-align: justify;
  }
}

/* === SERVICIOS === */
.servicios {
  background-color: #1e293b;
  color: #e2e8f0;
  padding: 4rem 1.5rem;
  text-align: center;
}

.servicios h2 {
  font-size: 1.8rem;
  color: #93c5fd;
  margin-bottom: 2rem;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.servicio-card {
  background: #273449;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.servicio-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.servicio-card h3 {
  color: #60a5fa;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.servicio-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

/* === TARIFARIO === */
.tarifario {
  background-color: #0f172a;
  color: #e2e8f0;
  padding: 4rem 1.5rem;
  text-align: center;
}

.tarifario h2 {
  font-size: 1.8rem;
  color: #93c5fd;
  margin-bottom: 0.5rem;
}

.tarifario-nota {
  color: #cbd5e1;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.tabla-container {
  overflow-x: auto;
}

.tabla-tarifario {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
  background-color: #1e293b;
  border-radius: 10px;
  overflow: hidden;
}

.tabla-tarifario th, .tabla-tarifario td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #334155;
}

.tabla-tarifario th {
  background-color: #273449;
  color: #93c5fd;
  font-weight: 600;
}

.tabla-tarifario td {
  color: #e2e8f0;
}

.tabla-tarifario tr:hover {
  background-color: #2d3c53;
}

.tarifario-aviso {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-top: 1rem;
  font-style: italic;
}

/* === RESPONSIVO === */
@media (max-width: 768px) {
  .servicios, .tarifario {
    padding: 3rem 1rem;
  }

  .servicio-card {
    text-align: center;
  }

  .tabla-tarifario th, .tabla-tarifario td {
    font-size: 0.9rem;
    padding: 0.8rem;
  }

  .tarifario h2 {
    font-size: 1.5rem;
  }
}


/* --- Sección de contacto --- */
.contacto {
  background-color: #111;
  color: #f0f0f0;
  padding: 60px 20px;
  text-align: center;
}

.contacto .container {
  max-width: 700px;
  margin: 0 auto;
}

.contacto h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #4fc3f7;
}

.contacto p {
  margin-bottom: 40px;
  color: #ccc;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

.form-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 6px;
  background: #222;
  color: #fff;
  font-size: 1rem;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.btn-enviar {
  background-color: #4fc3f7;
  color: #111;
  font-weight: bold;
  border: none;
  padding: 14px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-enviar:hover {
  background-color: #29b6f6;
}

/* --- Responsivo --- */
@media (max-width: 600px) {
  .contacto {
    padding: 40px 15px;
  }

  .contacto h2 {
    font-size: 1.8rem;
  }

  .btn-enviar {
    width: 100%;
  }
}

/* === Enlace activo en el menú === */
nav a.activo {
  border-bottom: 5px solid #60a5fa;
  font-weight: 600;
}

/* === Estado de atención (index) === */
.estado-atencion {
  margin-top: 1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.estado-atencion.abierto {
  color: #4ade80; /* verde */
}

.estado-atencion.cerrado {
  color: #fb923c; /* naranja */
}

/* === Mensaje del formulario de contacto === */
.contacto-resultado {
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
}

.contacto-resultado.exito {
  background-color: #1e293b;
  color: #e2e8f0;
  border: 1px solid #4ade80;
}

.contacto-resultado.error {
  background-color: #1e293b;
  color: #fee2e2;
  border: 1px solid #f87171;
}

/* === Selección en el tarifario === */
.tarifario-seleccion {
  max-width: 900px;
  margin: 0 auto 1rem;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.tabla-tarifario tr.activo {
  background-color: #334155;
}



/*

  Modal Table

*/

/* Icono */
.info-icon {
  margin-left: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.75;
  transition: 0.15s;
}
.info-icon:hover {
  opacity: 1;
}

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

/* Estado visible */
.modal-overlay.show {
  display: flex;
}

/* Caja del modal */
.modal-box {
  background: #1a212c;
  color: #fff;
  width: 100%;
  max-width: 400px;
  padding: 20px;
  border-radius: 8px;
  position: relative;
}

/* Botón cerrar */
.modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.7;
  color:white;
}
.modal-close:hover {
  opacity: 1;
}

.modal-price {
  margin-top: 15px;
  font-weight: 700;
}

#modal-description {
  text-align: justify;
  margin: 3em 0 3em 0;
}