/* Tipografía base */
body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    background-color: #fff;
    color: #212121;
}


/*carga de pagina*/

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
transition: opacity 1s ease, visibility 1s ease;
}

.loader {
  border: 6px solid #ccc;
  border-top: 6px solid #5D7D9B;
  border-radius: 50%;
  width: 50px;
  height: 50px;
animation: spin 2s linear infinite; /* o más lento aún: 3s, 4s... */
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/*carga de página*/


/* slides de logos */

.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 10px 0;
}

.logo-track {
  display: flex;
  width: fit-content;
  animation: scroll 30s linear infinite;
}

.logo-track img {
  height: 50px;
  margin: 0 20px;
  object-fit: contain;
  flex-shrink: 0;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logo-track img:hover {
  filter: none;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Ajuste individual */
.logo-small {
  height: 35px !important;
}

/* Responsive */
@media (max-width: 768px) {
  .logo-track img {
    height: 40px;
    margin: 0 15px;
  }

  .logo-small {
  height: 30px !important;
  max-height: 30px;
  width: auto !important;
  max-width: 100%;
}

}


/*slides de logos*/

/* Encabezado */
header {
    background-color: #111;
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* <- Este padding es lo que separa todo del borde */
  display: flex;
  align-items: center;
  justify-content: space-between;
}


header .container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-weight: 600;
    font-size: 1.8em;
}

/* Menú */
nav ul.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

nav ul.menu li a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

nav ul.menu li a:hover,
nav ul.menu li a:focus {
    color: #00bcd4;
    outline: none;
}


/*Icono de whatsapp*/

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    animation: bounce 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/*Icono de whatsapp*/



/* Menú hamburguesa */

/* Mostrar icono hamburguesa solo en móvil */
@media (min-width: 769px) {
  .menu-icon {
    display: none !important;
  }

  .menu-toggle {
    display: none !important;
  }
}


.menu-toggle {
    display: none;
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: white;
    margin-left: auto;  /* ← Asegura alineación a la derecha */
    padding-left: 10px;
    z-index: 1001; /* Asegura estar por encima del menú */
  }

  nav ul.menu {
    flex-direction: column;
    background: #222;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100vw; /* ← Asegura ocupar todo el ancho */
    display: none;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .menu-toggle:checked + .menu-icon + nav ul.menu {
    display: flex;
  }

  /* Evita desbordamiento horizontal en todo */
  body {
    overflow-x: hidden;
  }
}

/* Ajuste adicional para evitar separación entre secciones en móvil */
@media (max-width: 480px) {
  section {
    padding: 40px 15px;
  }

  .overlay {
    padding: 60px 20px;
  }
}


/* Hero con slider */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
}

.slider-fondo {
    height: 100%;
    position: relative;
    z-index: 1; /* Para estar detrás del overlay */
}

.slider-fondo img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    opacity: 0.8;
}

/* Nueva capa para blur detrás del overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: inherit;
    filter: blur(10px);
    z-index: 1;
}


/* Modal básico */
.modal {
  display: none; /* mostrado con JS */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  max-width: 500px;
  margin: auto;
  text-align: center;
  position: relative;
  font-family: 'Montserrat', sans-serif;
}

.modal .close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}


@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}


.close:hover {
  color: #000;
}


/* Ajustamos overlay para estar sobre el blur */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #f0f0f0;
    text-align: center;
    max-width: 90%;
    padding: 30px 40px;
    background: rgba(0, 0, 0, 0.55); /* Fondo más oscuro y opaco para mejor contraste */
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0,0,0,0.7);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.overlay h2 {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
}

.overlay p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin: 0;
}

/* Botón CTA */
.btn-hero {
    align-self: center;
    display: inline-block;
    background-color: #5D7D9B;
    color: #fff;
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 6px 15px rgba(93,125,155,0.6);
}

.btn-hero:hover {
    background-color: #6F94B4;
    transform: translateY(-3px);
}

/* Secciones */
section {
    padding: 60px 20px;
    text-align: center;
}

h3 {
    font-size: 2em;
    margin-bottom: 20px;
    color: #111;
}

/* Cards para divisiones */
.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.card h4 {
    margin-top: 0;
    color: #00bcd4;
}

.card a,
.card button.ver-mas {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background-color: #5D7D9B;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.card a:hover,
.card button.ver-mas:hover {
    background-color: #6F94B4;
    transform: translateY(-2px);
}

/* Nosotros */
.nosotros p {
    max-width: 700px;
    margin: auto;
    font-size: 1.1em;
    line-height: 1.6;
}

/* preguntas */

.faq {
    padding: 3rem 1rem;
    max-width: 800px;
    margin: auto;
    text-align: left;
    font-family: Arial, sans-serif;
}

.faq h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    color: #333;
}

.faq-item {
    border-bottom: 1px solid #ccc;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.faq-question {
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    color: #2c3e50;
    cursor: pointer;
    width: 100%;
    text-align: left;
    padding: 1rem;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f9f9f9;
    padding: 0 1rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px; /* altura suficiente para el contenido */
    padding: 1rem;
}


.faq-answer p {
    margin: 0;
    color: #555;
    font-size: 0.95rem;
}


/* Contacto */
.form-contacto {
    max-width: 600px;
    margin: 0 auto;
    background-color: #f7f7f7;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    font-family: 'Montserrat', sans-serif;
}

.form-contacto .campo {
    margin-bottom: 20px;
}

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

.form-contacto input,
.form-contacto textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-contacto input:focus,
.form-contacto textarea:focus {
    border-color: #5D7D9B;
    outline: none;
    box-shadow: 0 0 5px rgba(93,125,155,0.4);
}

.btn-enviar {
    display: inline-block;
    background-color: #5D7D9B;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 6px 15px rgba(93,125,155,0.6);
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.btn-enviar:hover {
    background-color: #6F94B4;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #111;
    color: #f0f0f0;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9em;
}

footer a {
    color: #00bcd4;
    text-decoration: none;
}

footer a:hover,
footer a:focus {
    text-decoration: underline;
    outline: none;
}

#toggle-dark {
    display: none;
}
