/* ======================= Variables y Estilos Globales ======================= */
:root {
    --primary-color: #3268F1;
    --dark-color: #080808;
    --light-color: #FFFFFF;
    --text-color: #555;
    --grey-bg: #f7f7f7;
    --border-color: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-dark {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.btn-dark:hover {
    background-color: #333;
}

h1, h2, h3, h4, h5 {
    color: var(--dark-color);
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; }
p { margin-bottom: 1rem; }

/* ======================= Header y Navegación ======================= */
.header {
    background-color: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__logo img {
    height: 40px;
}

.nav__list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav__link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: bold;
    padding: 0.5rem;
    position: relative;
}

.nav__dropdown {
    position: relative;
}

.nav__dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    padding: 1rem;
    border-radius: 5px;
    min-width: 250px;
}

.nav__dropdown:hover .nav__dropdown-menu {
    display: block;
}

.nav__dropdown-menu a {
    text-decoration: none;
    color: var(--dark-color);
    display: block;
    padding: 0.5rem 1rem;
}

.nav__dropdown-menu a:hover {
    background-color: var(--grey-bg);
}


.header__toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ======================= Sección Héroe ======================= */
.hero {
    background-color: var(--grey-bg);
    padding: 4rem 0;
}

.hero__container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hero__text {
    flex: 1;
}

.hero__cert {
    margin-top: 1.5rem;
    height: 60px;
}


.hero__formm {
    flex: 1;
    padding: 0rem;
    box-shadow: 0 4px 1px rgba(0,0,0,0.1);
}

.hero__form {
   flex: 1;
    background-color: var(--light-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}


.hero__form form {
    display: flex;
    flex-direction: column;
    gap: 0.45rem; /* Espacio entre las filas */
}

.hero__form input, .hero__form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 15px;
}


.form-row {
    display: flex;
    gap: 0.75rem; /* Espacio entre los dos campos en la misma fila */
}

.hero__form textarea {
    height: 100px;
    resize: vertical;
}

/* ======================= Sección "Cómo Funciona" ======================= */
.how-it-works {
    padding: 4rem 0;
}

.how-it-works__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.how-it-works__icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* ======================= Sección FAQ ======================= */
.faq {
    background-color: var(--grey-bg);
    padding: 4rem 0;
}

.faq__container {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq__question i {
    transition: transform 0.3s ease;
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.faq__item.active .faq__answer {
    max-height: 200px; /* Ajusta según el contenido */
}

.faq__item.active .faq__question i {
    transform: rotate(45deg);
}

/* ======================= Pie de Página ======================= */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding-top: 3rem;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #444;
}

.footer__col h5 {
    color: var(--light-color);
}

.footer__col p {
    color: #ccc;
    font-size: 0.9rem;
}

.footer__bottom {
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #aaa;
}


/* ======================= Responsividad (Móvil) ======================= */
@media (max-width: 992px) {
    .nav {
        display: none;
        position: absolute;
        top: 73px;
        left: 0;
        width: 100%;
        background-color: white;
    }
    
    .nav.active {
        display: block;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
    }
    
    .nav__dropdown-menu {
        display: none !important; /* Simplificado para móvil */
    }

    .header__toggle {
        display: block;
    }
    
    .hero__container {
        flex-direction: column;
    }
    
    .how-it-works__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 576px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    
    .how-it-works__grid {
        grid-template-columns: 1fr;
    }
}


/* ================================================== */
/* ESTILOS PARA FORMULARIO MEJORADO          */
/* ================================================== */

/* Contenedor principal del formulario */
.formulario-mejorado {
    max-width: 650px; /* Ancho máximo del formulario */
    margin: 40px auto; /* Centrado en la página */
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 12px; /* Espacio vertical reducido entre filas */
}

.formulario-mejorado h2 {
    text-align: center;
    color: #333;
    margin-bottom: 5px;
}

.formulario-mejorado p {
    text-align: center;
    color: #666;
    margin-top: 0;
    margin-bottom: 20px;
}

/* Fila para agrupar campos (la clave de las 2 columnas) */
.form-row {
    display: flex;
    gap: 12px; /* Espacio horizontal entre los campos en la misma fila */
}

/* Estilo general para todos los campos de entrada */
.formulario-mejorado input,
.formulario-mejorado select,
.formulario-mejorado textarea {
    width: 100%;
    padding: 12px 15px; /* Relleno para que no se sientan apretados */
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit; /* Usa la misma fuente que el resto de la web */
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* Efecto visual al hacer clic en un campo */
.formulario-mejorado input:focus,
.formulario-mejorado select:focus,
.formulario-mejorado textarea:focus {
    outline: none;
    border-color: #007bff; /* Color azul para destacar */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

/* Estilo específico para el área de texto */
.formulario-mejorado textarea {
    resize: vertical; /* Permite al usuario cambiar la altura */
}

/* Estilo del botón de envío */
.formulario-mejorado .btn-enviar {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    background-color: #0d6efd; /* Un azul más moderno */
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.formulario-mejorado .btn-enviar:hover {
    background-color: #0b5ed7; /* Color más oscuro al pasar el ratón */
    transform: translateY(-2px); /* Pequeño efecto de elevación */
}

/* === Diseño Responsivo para Móviles === */
@media (max-width: 768px) {
    /* Cuando la pantalla es pequeña, las columnas se apilan */
    .form-row {
        flex-direction: column;
    }
}



.phone-container {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
    }

    .phone-container input {
      flex: 1;
      padding: 10px;
      border-radius: 5px;
      border: 1px solid #ccc;
      font-size: 16px;
    }

    .prefix {
      padding: 10px;
     
     
      border-right: none;
      font-size: 16px;
      min-width: 50px;
      text-align: center;
    }



.site-footer {
    background-color: #0d1b2a; /* Azul marino oscuro y moderno */
    color: #b0c4de; /* Color de texto suave (azul acero claro) */
    padding: 50px 0 0 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.7;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap; /* Para que se adapte en móviles */
    justify-content: space-between;
    gap: 30px;
}

/* Estilo de las columnas del footer */
.footer-about,
.footer-links,
.footer-contact,
.footer-social {
    flex: 1; /* Permite que las columnas crezcan */
    min-width: 220px; /* Ancho mínimo antes de que se apilen */
    margin-bottom: 30px;
}

/* Títulos de cada columna */
.site-footer h4 {
    color: #ffffff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

/* Línea decorativa debajo de los títulos */
.site-footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #007bff; /* Azul vibrante de acento */
}

/* Columna "Acerca de" y Logo */
.footer-about .footer-logo {
    max-width: 200px;
    margin-bottom: 15px;
}

.footer-about p {
    font-size: 15px;
}

/* Columna de enlaces */
.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li a {
    color: #b0c4de;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links ul li a:hover {
    color: #ffffff;
    padding-left: 5px; /* Pequeño efecto al pasar el ratón */
}

/* Columna de contacto */
.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px; /* Espacio entre el ícono y el texto */
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-contact i {
    color: #007bff; /* Íconos con el color de acento */
    font-size: 16px;
}

/* Columna de redes sociales */
.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s, transform 0.3s;
}

.social-icons a:hover {
    background-color: #007bff;
    transform: translateY(-3px); /* Efecto de elevación */
}

/* Barra inferior del footer */
.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
    background-color: rgba(0, 0, 0, 0.2); /* Fondo ligeramente más oscuro */
    border-top: 1px solid #2a3b4c;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .site-footer h4::after {
        left: 50%;
        transform: translateX(-50%); /* Centra la línea decorativa */
    }
}



/* ================================================== */
/* ESTILOS PARA LA NUEVA SECCIÓN DE SERVICIOS         */
/* ================================================== */

.services-section {
    padding: 60px 0;
    background-color: #f8f9fa; /* Un gris muy claro para contrastar */
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: #222;
}

.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
    color: #666;
    font-size: 1.1rem;
}

/* El contenedor para las tarjetas (Grid) */
.services-grid {
    display: grid;
    /* Crea columnas automáticas que se adaptan al espacio */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; /* Espacio entre las tarjetas */
}

/* Estilo de cada tarjeta */
.service-card {
    background-color: #ffffff;
    padding: 35px 30px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Efecto al pasar el cursor sobre la tarjeta */
.service-card:hover {
    transform: translateY(-10px); /* Eleva la tarjeta */
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1); /* Sombra más pronunciada */
}

/* Icono dentro de la tarjeta */
.card-icon {
    font-size: 45px;
    color: #007bff; /* Mismo azul moderno que usamos antes */
    margin-bottom: 20px;
}

/* Título de la tarjeta */
.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #343a40;
}

/* Descripción en la tarjeta */
.service-card p {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* Enlace "Ver más" */
.card-link {
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.card-link i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.service-card:hover .card-link {
    color: #0056b3; /* Color más oscuro al pasar el cursor */
}

.service-card:hover .card-link i {
    transform: translateX(5px); /* Mueve la flecha a la derecha */
}



 .whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 0px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease-out forwards;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

/* Responsividad para móviles */
@media (max-width: 768px) {
  .whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 15px;
    right: 70%;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  }
}

/* Animación de entrada */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1001;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  position: relative;
  animation: modalZoomIn 0.3s ease-out;
}

@keyframes modalZoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-content h3 {
  margin-top: 0;
  font-size: 18px;
  margin-bottom: 10px;
}

.modal-content textarea {
  width: 100%;
  height: 100px;
  resize: none;
  padding: 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  box-sizing: border-box;
}

.modal-content button {
  background-color: #25D366;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  color: #333;
  font-size: 20px;
  border: none;
  cursor: pointer;
}

@media (max-height: 500px) and (max-width: 768px) {
  .whatsapp-button {
    bottom: 10px;
  }
}



* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Evitar overflow horizontal */
html, body {
  width: 100%;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}



/* Prevenir que las etiquetas <body> o <html> se expandan más allá del viewport */
html {
  overflow-x: hidden;
}