/* =========================================
   ESTILOS GENERALES Y NAVEGACIÓN
   ========================================= */
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
}

body.landing-page-body {
    padding-top: 82px;
}

.landing-site-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

@media (max-width: 991.98px) {
    body.landing-page-body {
        padding-top: 76px;
    }
}
.navbar-nav .nav-link { transition: color 0.3s ease; }
.navbar-nav .nav-link:hover { color: #6CE5CC !important; }

/* =========================================
   BOTONES ADTECH
   ========================================= */
.btn-mint {
    background-color: #6CE5CC !important;
    color: #000000 !important;
    transition: all 0.3s ease;
    border: none;
}
.btn-mint:hover {
    background-color: #58D0B7 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 229, 204, 0.4) !important;
}
.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}
.btn-whatsapp {
    position: fixed;
    right: 24px;
    bottom: 24px;
    left: auto;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-whatsapp:hover {
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5) !important;
}

.landing-events { background: #f7fbff; }
.landing-events-eyebrow { color: #2d68c4; letter-spacing: .08em; font-size: .78rem; }
.landing-event-card { overflow: hidden; border: 1px solid #e3e8f0; border-radius: 18px; background: #fff; box-shadow: 0 12px 26px rgba(31, 53, 84, .08); transition: transform .2s ease, box-shadow .2s ease; }
.landing-event-card:hover { transform: translateY(-5px); box-shadow: 0 18px 32px rgba(31, 53, 84, .14); }
.landing-event-media { width: 100%; aspect-ratio: 2.35 / 1; overflow: hidden; background: #e7edf5; }
.landing-event-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transform: scale(1.01); }
.landing-event-card-body { display: flex; flex-direction: column; align-items: flex-start; height: auto; padding: 24px; }
.landing-event-card h2, .landing-event-card h3 { color: #17243b; font-size: 1.3rem; font-weight: 700; }
.landing-event-card-body > p:not(.landing-event-date):not(.landing-event-place) { color: #627087; flex: 1; }
.landing-event-date { color: #51449b; font-weight: 700; font-size: .9rem; }
.landing-event-place { color: #3c4e69; font-size: .9rem; }
.landing-events-empty { padding: 36px; border: 1px dashed #b8c8d9; border-radius: 16px; color: #65758b; text-align: center; background: #fff; }
.landing-events-page { min-height: calc(100vh - 80px); background: #f7fbff; }
.landing-event-detail-body { background: #f5f8fc; }
.landing-event-detail { min-height: calc(100vh - 80px); }
.landing-event-banner { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: #e7edf5; box-shadow: 0 18px 38px rgba(31, 53, 84, .15); }
.landing-event-banner img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transform: scale(1.01); }
.landing-event-information { display: grid; gap: 12px; }
.landing-event-information > div { display: grid; grid-template-columns: 28px 1fr; column-gap: 10px; padding: 14px; border: 1px solid #dde7f0; border-radius: 12px; background: rgba(255,255,255,.86); }
.landing-event-information i { grid-row: span 3; color: #51449b; font-size: 1.15rem; }
.landing-event-information span, .landing-event-information small { color: #67768b; font-size: .85rem; }
.landing-event-information strong { color: #17243b; }
.landing-event-description { width: 100%; max-width: none; padding: 32px; border-radius: 18px; background: #fff; box-shadow: 0 12px 26px rgba(31,53,84,.08); color: #40516a; line-height: 1.75; }
@media (max-width: 575.98px) { .landing-event-banner { border-radius: 14px; } .landing-event-card-body { padding: 20px; } .landing-event-description { padding: 24px; } }

/* =========================================
   ANIMACIONES
   ========================================= */
.hero-text, .hero-image { animation: fadeInUp 0.8s ease-out forwards; }
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   TARJETAS DE SERVICIOS
   ========================================= */
.service-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}
.service-card i { transition: transform 0.3s ease; }
.service-card:hover i { transform: scale(1.15); }

/* =========================================
   METODOLOGÍA Y TESTIMONIOS
   ========================================= */
.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
}
@media (min-width: 768px) {
    .step-item:not(:last-child)::after {
        content: '\F138';
        font-family: "bootstrap-icons";
        position: absolute;
        top: 25px;
        right: -25px;
        font-size: 1.5rem;
        color: #6031A6;
        opacity: 0.6;
        z-index: 1;
    }
}
.testimonial-card {
    border: 1px solid #f8f9fa;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: box-shadow 0.3s ease;
    background-color: #fcfcfc;
}
.testimonial-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
}

/* =========================================
   FORMULARIO DE DIAGNÓSTICO FINAL
   ========================================= */
.form-floating-card {
    box-shadow: 0 20px 50px rgba(0,0,0,0.15); /* Sombra súper profunda */
    border: 1px solid rgba(0,0,0,0.05);
}

.custom-input-light {
    background-color: #f2f4f8 !important;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    transition: all 0.3s ease;
}
.custom-input-light:focus {
    background-color: #ffffff !important;
    border: 1px solid #6CE5CC !important;
    box-shadow: 0 0 0 0.25rem rgba(108, 229, 204, 0.25) !important;
    outline: none;
}

/* Lista de servicios */
.service-option {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    color: #495057;
}
.service-option.active {
    background-color: #ffffff;
    font-weight: bold;
    color: #000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.service-option:hover:not(.active) {
    background-color: #e9ecef;
}

/* Calendario UI */
.cal-day {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.2s;
}
.cal-day:hover:not(.cal-active):not(.invisible) {
    background-color: #f2f4f8;
}
.cal-active {
    background-color: #6CE5CC !important;
}

/* Botones de Hora */
.time-pill {
    background-color: #f2f4f8;
    color: #495057;
    border: none;
    border-radius: 50px;
    padding: 8px 15px;
    font-weight: 500;
    transition: all 0.2s;
    width: 30%;
}
.time-pill:hover {
    background-color: #e2e6eb;
}

/* =========================================
   FOOTER
   ========================================= */
.footer-link {
    transition: opacity 0.3s ease, padding-left 0.3s ease;
}
.footer-link:hover {
    opacity: 1 !important;
    padding-left: 5px; /* Pequeño salto a la derecha al pasar el mouse */
}
.cursor-pointer {
    cursor: pointer;
}
/* =========================================
   RESPONSIVE GENERAL LANDING
   ========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* NAVBAR */
@media (max-width: 991.98px) {
    .navbar {
        padding-top: 0.8rem !important;
        padding-bottom: 0.8rem !important;
    }

    .navbar-brand img {
        height: 42px !important;
        transform: scale(1.25) !important;
        transform-origin: left center !important;
    }

    .navbar-collapse {
        padding-top: 1rem;
        text-align: center;
    }

    .navbar-nav {
        gap: 0.4rem;
    }

    .navbar-nav .nav-link {
        padding: 0.7rem 0;
    }

    .mobile-nav-actions {
        display: grid;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .mobile-nav-actions .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand img {
        height: 38px !important;
        transform: scale(1.15) !important;
    }
}

/* HERO */
#inicio {
    overflow: hidden;
}

#inicio h1 {
    font-size: clamp(2.4rem, 7vw, 4.5rem) !important;
}

#inicio p {
    max-width: 100% !important;
    font-size: clamp(1rem, 2vw, 1.25rem) !important;
}

#inicio .hero-image img {
    max-height: 500px !important;
    width: 100%;
    object-fit: contain;
}

@media (max-width: 991.98px) {
    #inicio {
        min-height: auto !important;
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
        text-align: center;
    }

    #inicio .hero-text {
        margin-bottom: 2rem;
    }

    #inicio .hero-text .d-flex {
        justify-content: center;
    }

    #inicio .hero-image img {
        max-height: 380px !important;
    }

    .btn-whatsapp {
        right: 18px;
        bottom: 18px;
        width: 58px;
        height: 58px;
    }

    .btn-whatsapp i {
        font-size: 28px !important;
    }
}

@media (max-width: 575.98px) {
    #inicio {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    #inicio h1 {
        font-size: 2.25rem !important;
        line-height: 1.15 !important;
    }

    #inicio p {
        font-size: 0.98rem !important;
        margin-bottom: 2rem !important;
    }

    #inicio .btn {
        width: 100%;
        padding: 0.85rem 1rem !important;
    }

    #inicio .hero-image img {
        max-height: 300px !important;
    }
}

/* SECCIONES */
section {
    scroll-margin-top: 90px;
}

#nosotros h2,
#servicios h2,
#metodologia h2,
#resultados h2,
#testimonios h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem) !important;
}

@media (max-width: 767.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    section.py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .container.py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    #nosotros {
        text-align: center;
    }

    #nosotros ul {
        text-align: left;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* SERVICIOS */
@media (max-width: 575.98px) {
    .service-card .card-body {
        padding: 1.5rem !important;
    }

    .service-card h4 {
        font-size: 1.2rem;
    }
}

/* METODOLOGÍA */
@media (max-width: 767.98px) {
    .step-icon {
        width: 60px;
        height: 60px;
    }

    .step-item h6 {
        font-size: 0.9rem;
    }
}

/* RESULTADOS */
@media (max-width: 575.98px) {
    #resultados h2.fw-bold {
        font-size: 2rem !important;
    }

    #resultados p {
        font-size: 0.85rem !important;
    }
}

/* TESTIMONIOS */
@media (max-width: 767.98px) {
    .testimonial-card {
        text-align: left;
    }
}

/* FORMULARIO DIAGNÓSTICO */
#diagnostico h2 {
    font-size: clamp(2rem, 5vw, 2.8rem) !important;
}

@media (max-width: 991.98px) {
    #diagnostico {
        text-align: center;
    }

    #diagnostico ul {
        text-align: left;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    #diagnostico .d-inline-flex {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 575.98px) {
    #diagnostico .rounded-5 {
        border-radius: 1.4rem !important;
        padding: 1.25rem !important;
    }

    .form-floating-card {
        padding: 1.25rem !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }

    .custom-input-light {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }

    #diagnostico button[type="submit"] {
        font-size: 1rem !important;
    }
}

/* FOOTER */
@media (max-width: 991.98px) {
    footer {
        text-align: center;
    }

    footer .col-lg-8 > .d-flex {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    footer .col-lg-8 > .d-flex > div[style*="width: 1px"] {
        display: none !important;
    }

    footer .d-flex.flex-wrap {
        justify-content: center;
    }

    footer ul {
        padding-left: 0;
    }
}

@media (max-width: 575.98px) {
    footer .col-lg-8 > .d-flex {
        flex-direction: column;
        margin-bottom: 2.5rem !important;
    }

    footer h4 {
        margin-right: 0 !important;
    }

    footer img {
        width: 160px !important;
    }

    footer .btn {
        width: 150px !important;
    }
}

/* ========================================= */
/* ESTILOS DEL SISTEMA DE SOPORTE            */
/* ========================================= */
.soporte-container {
    background-color: #f4f7f6; /* Fondo gris claro y limpio */
    min-height: 80vh;
}

/* Tarjetas modernas con bordes redondeados y sombras suaves */
.card-modern {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

#vista-login, #vista-registro {
    max-width: 450px; /* Centrado y delgado para login */
}

/* Color del botón principal AdTech */
.btn-soporte {
    background-color: #6CE5CC;
    color: #111;
    padding: 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.btn-soporte:hover {
    background-color: #58cbb4;
}

/* Clase para ocultar pantallas con JS */
.oculto {
    display: none !important;
}

/* Diseño de la tarjeta de cada ticket individual */
.ticket-item {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    background-color: #fafafa;
}
.estado-pendiente {
    background-color: #fff3cd;
    color: #856404;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}
