/**
 * iDi Offer Builder - Homepage Premium Dark Styles
 * Estilos semánticos para la homepage de iDidáctica.
 * Diseño: Dark Mode, Glassmorphism, Split Component.
 */

/* ===== Variables ===== */
:root {
    --hp-dark: #0F172A;
    --hp-light: #F8FAFC;
    --hp-brand: var(--idi-accent);
    --hp-pro: var(--hp-brand);
    --hp-corp: color-mix(in srgb, var(--hp-dark), #fff 25%);
    --hp-font-sans: 'Inter', sans-serif;
    --hp-font-heading: 'Playfair Display', serif;
}

/* ===== Wrapper ===== */
.idi-homepage-wrap {
    font-family: var(--hp-font-sans);
    background-color: var(--hp-dark);
    color: var(--hp-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
}
.idi-homepage-wrap *, .idi-homepage-wrap *::before, .idi-homepage-wrap *::after {
    box-sizing: border-box;
}
.idi-homepage-wrap a { color: inherit; text-decoration: none; }
.idi-homepage-wrap h1, .idi-homepage-wrap h2, .idi-homepage-wrap h3, .idi-homepage-wrap h4 { margin: 0; }
.idi-homepage-wrap p { margin: 0; }
.idi-homepage-wrap svg { display: inline-block; vertical-align: middle; }

/* ===== Navbar ===== */
.idi-hp-navbar {
    position: fixed;
    width: 100%;
    z-index: 50;
    transition: all 0.3s;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.idi-hp-navbar.scrolled {
    background-color: color-mix(in srgb, var(--hp-dark) 80%, transparent);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.idi-hp-navbar-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.idi-hp-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.idi-hp-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, var(--hp-brand), var(--hp-pro));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.idi-hp-logo-icon span {
    font-family: var(--hp-font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}
.idi-hp-logo-text {
    font-family: var(--hp-font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    color: #fff;
}

/* Nav Links */
.idi-hp-nav {
    display: none;
    gap: 2rem;
}
.idi-hp-nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}
.idi-hp-nav a:hover { color: #fff; }
.idi-hp-nav-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}
.idi-hp-nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    transition: color 0.2s;
}
.idi-hp-nav-link:hover { color: #fff; }
.idi-hp-nav-cta {
    padding: 0.625rem 1.25rem;
    border-radius: 9999px;
    background: var(--hp-brand);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}
.idi-hp-nav-cta:hover { filter: brightness(1.1); color: #fff; }

@media (min-width: 768px) {
    .idi-hp-nav { display: flex; }
    .idi-hp-nav-actions { display: flex; }
}

/* ===== Hero ===== */
.idi-hp-hero {
    padding: 8rem 1.5rem 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 100vh;
}

/* Blobs */
.idi-hp-blob {
    position: absolute;
    border-radius: 50%;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: idiHpFloat 6s ease-in-out infinite;
}
.idi-hp-blob--1 {
    top: 25%; left: 25%;
    width: 24rem; height: 24rem;
    background: color-mix(in srgb, var(--hp-brand) 20%, transparent);
    filter: blur(120px);
}
.idi-hp-blob--2 {
    bottom: 25%; right: 25%;
    width: 31rem; height: 31rem;
    background: rgba(255,255,255,0.08);
    filter: blur(150px);
    animation-delay: -3s;
}
@keyframes idiHpFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hero Content */
.idi-hp-hero-content {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 10;
    animation: idiHpSlideUp 0.6s ease-out forwards;
}
@keyframes idiHpSlideUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Badge */
.idi-hp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: var(--hp-brand);
}
.idi-hp-badge-dot {
    width: 0.5rem; height: 0.5rem;
    border-radius: 50%;
    background: var(--hp-pro);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Title */
.idi-hp-hero-title {
    font-family: var(--hp-font-heading);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    color: #fff;
}
.idi-hp-gradient-text {
    background: linear-gradient(to right, var(--hp-pro), var(--hp-brand));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Subtitle */
.idi-hp-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    max-width: 48rem;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.6;
}
.idi-hp-hero-subtitle strong {
    color: #fff;
    font-weight: 500;
}

@media (min-width: 768px) {
    .idi-hp-hero-title { font-size: 4.5rem; }
    .idi-hp-hero-subtitle { font-size: 1.5rem; }
}

/* ===== Split Component ===== */
.idi-hp-split {
    width: 100%;
    max-width: 80rem;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 50vh;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: idiHpFadeIn 0.5s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}
@keyframes idiHpFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.idi-hp-split-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    position: relative;
    cursor: pointer;
    transition: all 0.7s cubic-bezier(0.16,1,0.3,1);
    text-decoration: none !important;
}
.idi-hp-split-side::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 10;
    opacity: 0;
    transition: opacity 0.7s;
    pointer-events: none;
}
.idi-hp-split-side--pro {
    background: color-mix(in srgb, var(--hp-dark), #000 15%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.idi-hp-split-side--corp {
    background: color-mix(in srgb, var(--hp-dark), #000 30%);
}

/* Background image */
.idi-hp-split-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    transition: opacity 0.7s;
    mix-blend-mode: overlay;
}
.idi-hp-split-side:hover .idi-hp-split-bg { opacity: 0.3; }

/* Split content */
.idi-hp-split-content {
    position: relative;
    z-index: 20;
    text-align: center;
    transition: transform 0.7s;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.idi-hp-split-side:hover .idi-hp-split-content { transform: scale(1.05); }

/* Icons */
.idi-hp-split-icon {
    width: 5rem; height: 5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}
.idi-hp-split-icon--pro {
    background: color-mix(in srgb, var(--hp-brand) 15%, transparent);
    border: 1px solid color-mix(in srgb, var(--hp-brand) 30%, transparent);
    color: var(--hp-brand);
    box-shadow: 0 0 30px color-mix(in srgb, var(--hp-brand) 20%, transparent);
}
.idi-hp-split-icon--corp {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    box-shadow: 0 0 30px rgba(255,255,255,0.05);
}

/* Title & Desc */
.idi-hp-split-title {
    font-family: var(--hp-font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}
.idi-hp-split-desc {
    font-size: 1.125rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    max-width: 24rem;
    line-height: 1.6;
}

/* Buttons */
.idi-hp-split-btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1.125rem;
    color: #fff;
    transition: all 0.3s;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    pointer-events: none;
    position: relative;
    overflow: hidden;
}
.idi-hp-split-btn > span {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.idi-hp-split-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.2);
    transform: translateX(-100%);
    transition: transform 0.5s ease-out;
}
.idi-hp-split-side:hover .idi-hp-split-btn::after { transform: translateX(0); }
.idi-hp-split-btn--pro { background: var(--hp-pro); }
.idi-hp-split-btn--corp { background: var(--hp-corp); }
.idi-hp-split-btn svg {
    transition: transform 0.2s;
}
.idi-hp-split-side:hover .idi-hp-split-btn svg { transform: translateX(4px); }

@media (min-width: 768px) {
    .idi-hp-split {
        flex-direction: row;
        height: 70vh;
        min-height: 500px;
    }
    .idi-hp-split-side { padding: 4rem; }
    .idi-hp-split-side--pro { border-bottom: none; border-right: 1px solid rgba(255,255,255,0.1); }
    .idi-hp-split-title { font-size: 2.5rem; }

    /* Hover effects - desktop only */
    .idi-hp-split-side:hover { flex: 1.5; }
    .idi-hp-split:hover .idi-hp-split-side::before { opacity: 1; }
    .idi-hp-split:hover .idi-hp-split-side:hover::before { opacity: 0; }
    .idi-hp-split:hover .idi-hp-split-side:not(:hover) {
        flex: 0.75;
        filter: grayscale(80%) blur(2px);
    }
}

/* ===== Philosophy Section ===== */
.idi-hp-philosophy {
    padding: 8rem 1.5rem;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.idi-hp-philosophy-inner {
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}
.idi-hp-section-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hp-brand);
    margin-bottom: 1rem;
}
.idi-hp-philosophy-title {
    font-family: var(--hp-font-heading);
    font-size: 2.25rem;
    color: #fff;
    margin-bottom: 2rem;
}
.idi-hp-philosophy-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.6);
    font-weight: 300;
    margin-bottom: 3rem;
    line-height: 1.7;
}
.idi-hp-philosophy-desc strong { color: #fff; font-weight: 600; }

@media (min-width: 768px) {
    .idi-hp-philosophy-title { font-size: 3rem; }
}

/* Feature Cards */
.idi-hp-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 768px) {
    .idi-hp-features { grid-template-columns: repeat(3, 1fr); }
}
.idi-hp-feature-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-left: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    padding: 2rem;
    border-radius: 1rem;
    text-align: left;
}
.idi-hp-feature-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}
.idi-hp-feature-card p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
}
.idi-hp-feature-icon {
    width: 3rem; height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.idi-hp-feature-icon--brand { background: color-mix(in srgb, var(--hp-brand) 20%, transparent); color: var(--hp-brand); }
.idi-hp-feature-icon--pro { background: color-mix(in srgb, var(--hp-brand) 15%, transparent); color: var(--hp-brand); }
.idi-hp-feature-icon--corp { background: color-mix(in srgb, var(--hp-brand) 10%, transparent); color: var(--hp-brand); }

/* ===== Footer ===== */
.idi-hp-footer {
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(16px);
}
.idi-hp-footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
.idi-hp-footer-copy {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
}
.idi-hp-footer-links {
    display: flex;
    gap: 1.5rem;
}
.idi-hp-footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.875rem;
    transition: color 0.2s;
}
.idi-hp-footer-links a:hover { color: #fff; }

@media (min-width: 768px) {
    .idi-hp-footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}
