/* --- RESET Y VARIABLES GLOBALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



:root {
    /* Paleta colores */
    --color-primary: #007bff;
    /* Color de acento */
    --color-secondary: #f4f4f9;
    /* Fondo muy claro */
    --color-text-dark: #2c3e50;
    /* Negro casi absoluto para el texto */
    --color-text-light: #ffffff;
    --font-sans: 'Helvetica Neue', Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: var(--color-text-light);
    padding-top: 100px;
}

a {
    text-decoration: none;
    color: var(--color-text-dark);
}

ul {
    list-style: none;
}

/* ---  ESTILOS DE BOTON  CTA --- */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease, transform 0.2s;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #0056b3;
    /* Tono mass oscuro al pasar el ratón */
    transform: translateY(-2px);
    /* Efecto sutil */
}

/* ---  HEADER --- */
.main-header {
    display: flex;
    top: 0;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    /* Fijo para facil acceso */
    width: 100%;
    z-index: 1000;
    background-color: #fafaf7;
    /* Fondo blanco con transparencia */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    /* Sombra muy ligera */
}

.logo a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.logo img {
    height: 60px;
    /* Ajusta el tamaño del logo */
    width: auto;
    /* Mantiene proporciones */
    display: block;
    /* Elimina espacios raros */
    object-fit: contain;
    border-radius: 10px;

}


.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-left: 30px;
}

.main-nav a {
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

/* Linea sutil al pasar el raton */
.main-nav a:after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
}

.main-nav a:hover:after {
    width: 100%;
}

.cta-link {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s;
}

.cta-link:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.nav-toggle {
    /* Ocultar boton de menú por defecto en escritorio */
    display: none;
}

/* --- 4. HERO SECTION (Impacto y Centrado) --- */
.hero-section {
    min-height: 100vh;
    /* Ocupa toda la altura de la pantalla */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    /* Espacio para el header fijo */
    background-color: var(--color-secondary);
    /* Fondo sutil */
    overflow-x: hidden;
}


.hero-content {
    max-width: 700px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    line-height: 1.1;
}

.hero-content h1 strong {
    color: var(--color-primary);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* --- Fondo animado del hero --- */
.hero-section {
    position: relative;
    /* Necesario para fondo absoluto */
    overflow: hidden;
    /* Oculta exceso del Lottie */
}

/* Fondo animado general */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.15;
}

/* El Lottie se escala para cubrir toda el area */
.hero-background dotlottie-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    /* más grande que el contenedor */
    height: 120%;
    transform: translate(-50%, -50%) scale(1.3);
    /* scale > 1 elimina todos los huecos */
}

/* Asegura que el contenido quede por encima */
.hero-content {
    position: relative;
    z-index: 2;
}


.tech-stack {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.tech-stack span {
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #7f8c8d;
    /* Gris sutil */
    border: 1px solid #bdc3c7;
    padding: 5px 10px;
    border-radius: 3px;
}

/* --- 6. ESTILOS GENERALES DE SECCIONES --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 80px 5%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 50px;
}

/* --- 7. SECCIoN DE SERVICIOS --- */
.services-section {
    background-color: var(--color-text-light);
    /* Fondo blanco */
}

.services-grid {
    display: grid;
    /* Divide en 3 columnas iguales, ajustando en pantallas pequeñas */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-secondary);
    /* Fondo gris muy sutil para la tarjeta */
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border: 1px solid #ecf0f1;
    /* Borde sutil */
}

.service-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.icon-placeholder {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 20px;
}

.service-card a {
    color: var(--color-primary);
    font-weight: bold;
}


/*------------------------ Seccion de beneficios ------------------*/
.benefits-section {
    margin-top: 80px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.benefit-card h3 {
    margin: 10px 0 10px;
    font-size: 1.3rem;
    color: #333;
}

.benefit-card p {
    font-size: 1rem;
    color: #555;
}

.benefit-icon svg {
    width: 70px;
    height: 70px;
    stroke: #222;
    opacity: 0.9;
    margin-bottom: 15px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.benefit-card:hover svg {
    transform: scale(1.1);
    opacity: 1;
}


/*---------------------Seccion Portfiolio-----------------------*/
.portfolio-section {
    padding: 80px 20px;
    background: #f8f8f8;
    text-align: center;
}

.portfolio-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.portfolio-subtitle {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 50px;
}

/* GRID */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

/* CARD */
.portfolio-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* IMAGE */
.portfolio-img img {
    width: 100%;
    display: block;
    height: 210px;
    object-fit: cover;
}

/* INFO */
.portfolio-info {
    padding: 20px;
    text-align: left;
}

.portfolio-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.portfolio-info p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

/* TAGS */
.portfolio-tags span {
    display: inline-block;
    padding: 5px 10px;
    background: #eee;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 6px;
}

/* BOTON */
.portfolio-btn {
    display: inline-block;
    background: #0351a0;
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background .2s ease;
}

.portfolio-btn:hover {
    background: #023f7f;
}



/*--------------------- SECCION PROCESO ---------------------*/

.process-section {
    padding: 100px 20px;
    background: #fff;
    text-align: center;
}

.process-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.process-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 60px;
}

/* GRID: aseguramos 4 columnas en desktop */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* fuerza 4 columnas */
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 900px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

.process-card {
    background: #fff;
    border-radius: 15px;
    padding: 40px 25px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    position: relative;
    transition: 0.3s ease;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Numero */
.process-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.18;
    position: absolute;
    top: 15px;
    right: 20px;
}

/* Icono */
.process-icon {
    width: 55px;
    height: 55px;
    margin: 0 auto 18px;
    color: var(--color-primary);
}

.process-icon svg {
    width: 100%;
    height: 100%;
}

.process-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.process-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
}


/* ------------- SECCION FAQ -------------------- */
.faq-section {
    padding: 80px 20px;
    max-width: 900px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* FAQ Items */
.faq-item {
    border-bottom: 1px solid #ccc;
    padding: 15px 0;
}

/* Pregunta */
.faq-question {
    background: none;
    border: none;
    width: 100%;
    padding: 0;
    font-size: 1.2rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Icono minimalista */
.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Respuesta (oculta) */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

/* Respuesta visible */
.faq-item.open .faq-answer {
    max-height: 200px;
    padding-top: 10px;
}



/* -------------- SECCION CONTACTO ---------------------- */

.contact-section {
    padding: 80px 20px;
    background: var(--color-secondary);
    text-align: center;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.contact-subtext {
    font-size: 1.2rem;
    margin-bottom: 40px;
    font-weight: 300;
}

.contact-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    gap: 50px;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}



/* FORMULARIO */
/* Asegura un layout base correcto */
.contact-container {
  display: flex;              /* importante para que flex-direction funcione */
  align-items: flex-start;
  gap: 40px;
}

/* Columnas del bloque de contacto */
.contact-form,
.contact-whatsapp {
  flex: 1;
  min-width: 0;               /* evita overflow por min-width en flex items */
  width: 100%;                /* ocupa todo el ancho disponible */
}

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Campos */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 1rem;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;     /* evita desbordes por padding */
}

/* Focus */
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-primary);
}

/* Textarea */
.contact-form textarea {
  resize: none;
  min-height: 140px;
}

/* Botón del formulario */
.contact-form button {
  margin-top: 5px;
  align-self: stretch;        /* se estira a lo ancho del contenedor */
  width: 100%;
}

/* Caja de WhatsApp */
.contact-whatsapp {
  background: #fff;
  padding: 25px;
  border-radius: 15px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

/* Botón WhatsApp */
.btn-whatsapp {
  display: inline-block;
  width: 100%;                /* botón full-width en móvil */
  text-align: center;
  padding: 12px 25px;
  background: #25d366;
  color: #fff;
  font-weight: bold;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-whatsapp:hover {
  background: #1ebe58;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  /* Evita scroll lateral por paddings o ancho extra */
  .contact-section,
  .contact-container {
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: hidden;
  }

  .contact-container {
    flex-direction: column;   /* apila form y whatsapp */
    gap: 24px;
  }

  /* Resetea restricciones que generan el espacio en blanco */
  .contact-form,
  .contact-whatsapp {
    min-width: 100%;
    width: 100%;
  }

  /* Centra y ajusta tipografías */
  .contact-whatsapp {
    text-align: center;
  }

  /* Ajusta los campos para que ocupen bien el ancho */
  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
  }

  .contact-form button,
  .btn-whatsapp {
    width: 100%;
  }
}



/* === FOOTER === */
.footer {
    background: #111; /* Moderno y minimalista */
    color: #fff;
    padding: 50px 0 25px;
    margin-top: 80px;
    font-size: 0.95rem;
}

.footer-container {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    padding: 0 20px;
}

/* Marca */
.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

/* Links */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* WhatsApp */
.footer-whatsapp {
    display: inline-block;
    padding: 10px 18px;
    background: #25d366;
    border-radius: 6px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s;
}

.footer-whatsapp:hover {
    background: #1eb455;
}

/* Bottom */
.footer-bottom {
    text-align: center;
    margin-top: 35px;
    font-size: 0.85rem;
    color: #999;
}

/* Móvil */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-links {
        text-align: center;
    }
}










/* --------------------- RECURSOS.HTML --------------------------------*/

.recursos-wrapper {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    
}


.recursos-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    min-height: 70vh;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* COLUMNA IZQUIERDA (PREGUNTAS) */
.recursos-menu {
    width: 280px;
    background: #f4f4f4;
    padding: 20px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recurso-btn {
    padding: 12px 15px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.recurso-btn:hover {
    background: #eaeaea;
}

.recurso-btn.active {
    background: #0351a0;
    color: white;
    border-color: #0351a0;
}

/* COLUMNA DERECHA (RESPUESTAS) */
.recursos-contenido {
    flex: 1;
    padding: 40px;
}

.recurso-respuesta {
    display: none;
}

.recurso-respuesta.active {
    display: block;
}

.recurso-respuesta h2 {
    margin-bottom: 15px;
    color: #0351a0;
}

.recurso-respuesta p {
    line-height: 1.6;
    margin-bottom: 15px;
}

.recursos-ht{
    text-align: center;
    color: #0056b3;
    padding: 20px 10px;
    font: 40px "Open Sans", Arial, sans-serif;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .recursos-container {
        flex-direction: column;
    }

    .recursos-menu {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
}











/* --- 5. MEDIA QUERIES (Responsividad para cel) --- */

@media (max-width: 768px) {

    /* Header */
    .main-nav {
        display: none;
    }

    .hero-background {

        opacity: 0.35;
    }

    .main-nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--color-text-light);
        padding-top: 80px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .main-nav ul {
        flex-direction: column;
        width: 100%;
        padding: 20px 0;
    }

    .main-nav li {
        margin: 0;
        text-align: center;
        width: 100%;
    }

    .main-nav a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--color-secondary);
    }

    .main-nav a:after {
        display: none;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .nav-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--color-text-dark);
        margin: 4px 0;
        transition: transform 0.3s, opacity 0.3s;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Hero Section */
    .hero-section {
        flex-direction: column;
        /* apila texto y visual */
        padding: 100px 20px 40px;
        /* menos espacio arriba */
        text-align: center;
        overflow-x: hidden;
        /* evita scroll lateral */
    }

    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-visual {
        margin-top: 20px;
        width: 100%;
    }

    .hero-visual dotlottie-player {
        width: 100% !important;
        /* ocupa todo el ancho disponible */
        max-width: 320px;
        /* límite para que no sea gigante */
        height: auto !important;
        /* se ajusta proporcionalmente */
        margin: 0 auto;
    }

    /* Servicios */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}