/* ============================================================
   ESTILOS DE LA PÁGINA PRINCIPAL (INDEX) - RESPONSIVO TOTAL
   ============================================================ */

:root {
    --primary-color: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --accent-color: #38bdf8;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --bg-light: #ffffff;
    --bg-alt: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 36px rgba(2, 132, 199, 0.15);
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== MODAL AFICHE BANNER ==================== */
.modal-banner {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 16px;
    box-sizing: border-box;
}

.modal-content {
    background: #ffffff;
    padding: 8px;
    border-radius: var(--radius-lg);
    max-width: 620px;
    width: 100%;
    max-height: 92vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.modal-content img {
    max-width: 100%;
    max-height: 84vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    display: block;
}

.close-button {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ef4444;
    color: #ffffff;
    border: 2.5px solid #ffffff;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
    z-index: 10;
}

.close-button:hover {
    background: #dc2626;
    transform: scale(1.12);
}

@media (max-width: 640px) {
    .modal-banner {
        padding: 12px;
    }
    .modal-content {
        padding: 6px;
        max-height: 90vh;
    }
    .modal-content img {
        max-height: 80vh;
    }
    .close-button {
        top: 6px;
        right: 6px;
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* ==================== HEADER & NAVBAR ==================== */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 52px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.98rem;
    position: relative;
    padding: 6px 2px;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-greeting {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.92rem;
}

.user-avatar {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.btn-dashboard-nav {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-dashboard-nav:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.btn-logout {
    background: #fee2e2;
    color: #ef4444;
    padding: 7px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-logout:hover {
    background: #ef4444;
    color: #ffffff;
}

.btn-logout-nav {
    color: #ef4444;
    font-size: 1.1rem;
    padding: 6px 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.btn-logout-nav:hover {
    background: #fee2e2;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
    transition: all 0.25s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
}

.hamburger .bar {
    width: 26px;
    height: 3px;
    background-color: #1e293b;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 130px 0 70px 0;
    background: url('../imagenes/banner.png') no-repeat center center/cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 132, 199, 0.75));
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 720px;
    color: #ffffff;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: #7dd3fc;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 18px;
}

.hero-title .highlight {
    background: linear-gradient(120deg, #38bdf8, #bae6fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #e0f2fe;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
    transition: all 0.25s ease;
    border: 2px solid transparent;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(2, 132, 199, 0.6);
    background: #0284c7;
}

.btn-cta-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease;
}

.btn-cta-secondary:hover {
    background: #ffffff;
    color: #0369a1;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.15);
    width: fit-content;
}

.stat-box {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: #38bdf8;
}

.stat-label {
    font-size: 0.8rem;
    color: #bae6fd;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    padding: 80px 0;
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 50px auto;
}

.section-tag {
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.82rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.feature-card {
    background: #ffffff;
    padding: 30px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-emerald { background: #d1fae5; color: #059669; }
.icon-purple { background: #f3e8ff; color: #9333ea; }
.icon-amber { background: #fef3c7; color: #d97706; }

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ==================== SAMPLES PREVIEW SECTION ==================== */
.samples-preview-section {
    padding: 80px 0;
    background: #ffffff;
}

.samples-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}

.sample-preview-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.sample-preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.sample-img-box {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.sample-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sample-preview-card:hover .sample-img-box img {
    transform: scale(1.06);
}

.sample-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.sample-content {
    padding: 22px;
}

.sample-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.sample-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 15px;
}

.sample-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sample-link:hover {
    color: var(--primary-dark);
}

/* ==================== CTA BANNER SECTION ==================== */
.cta-banner-section {
    padding: 50px 0 80px 0;
}

.cta-card {
    background: linear-gradient(135deg, #0284c7, #075985);
    border-radius: var(--radius-lg);
    padding: 45px 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.25);
    color: #ffffff;
}

.cta-text h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-text p {
    font-size: 1rem;
    color: #e0f2fe;
    max-width: 600px;
}

.btn-cta-white {
    background: #ffffff;
    color: var(--primary-dark);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    white-space: nowrap;
    transition: all 0.25s ease;
}

.btn-cta-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    background: #f8fafc;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #0f172a;
    color: #94a3b8;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.6fr 1.2fr;
    gap: 35px;
    padding-bottom: 45px;
    border-bottom: 1px solid #1e293b;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.footer-logo i {
    color: #38bdf8;
}

.footer-col p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.credits-box {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid #334155;
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.credits-title {
    font-size: 0.85rem;
    color: #38bdf8 !important;
    margin-bottom: 4px !important;
    font-weight: 700;
}

.credits-names {
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin-bottom: 8px !important;
}

.credits-note {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.45;
    margin-bottom: 0 !important;
}

.footer-authors-badge {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #64748b;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    color: #cbd5e0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-socials a:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-col h4 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col ul a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: #38bdf8;
}

.footer-bottom {
    padding: 20px 0;
    font-size: 0.85rem;
    text-align: center;
    color: #64748b;
}

/* ============================================================
   RESPONSIVIDAD TOTAL (Móviles, Tablets, Laptops)
   ============================================================ */

@media (max-width: 992px) {
    .nav-menu {
        position: fixed;
        top: 75px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 75px);
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 35px 20px;
        gap: 25px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transition: left 0.35s ease;
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    .header-user-actions {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-login, .btn-dashboard-nav {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .hamburger {
        display: flex;
    }

    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 35px 25px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 110px 0 50px 0;
        min-height: auto;
    }

    .hero-stats {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-cta-primary, .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
