/* ============================================
   NUEVOS ESTILOS PARA HOMEPAGE MEJORADO
   ============================================ */

/* ===== INTRO SECTION ===== */
.intro-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f5f0e8 0%, #ede5d8 100%);
    position: relative;
    overflow: hidden;
}

.intro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(139, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 20, 60, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.intro-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(139, 0, 0, 0.1);
    color: #8B0000;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 0, 0, 0.2);
}

.intro-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 32px;
    line-height: 1.2;
}

.intro-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #4a4a4a;
    margin-bottom: 64px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.intro-feature {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 0, 0, 0.1);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden
}

.intro-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8B0000, #DC143C);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 0, 0, 0.15);
    border-color: rgba(139, 0, 0, 0.3);
}

.intro-feature:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-icon svg {
    width: 64px;
    height: 64px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.intro-feature:hover .feature-icon {
    transform: scale(1.1);
}

.intro-feature:hover .feature-icon svg {
    filter: drop-shadow(0 4px 12px rgba(220, 20, 60, 0.3));
}

.intro-feature h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 12px;
    font-weight: 600;
}

.intro-feature p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===== MANIFIESTO SIMPLIFICADO ===== */
.manifiesto {
    background: #1a1a1a;
    padding: 100px 0;
    position: relative;
}

.manifiesto-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #fff;
    line-height: 1.4;
    font-weight: 400;
    max-width: 900px;
    margin: 0 auto 40px;
}

.manifiesto-author {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    margin-top: 48px;
}

.author-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #DC143C, transparent);
}

.manifiesto-author span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ===== EXPERIENCE SECTION (NUEVA) ===== */
.experience-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f0e8 100%);
    position: relative;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

.experience-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 0, 0, 0.15);
    border-radius: 24px;
    padding: 56px 48px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #8B0000, #DC143C, #8B0000);
    border-radius: 24px 24px 0 0;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.experience-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 48px rgba(139, 0, 0, 0.15);
    border-color: rgba(220, 20, 60, 0.3);
}

.experience-card:hover::before {
    opacity: 1;
}

.exp-number {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8B0000, #DC143C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 24px;
}

.experience-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    font-weight: 600;
}

.experience-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 32px;
}

.experience-card a {
    color: #8B0000;
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.experience-card a:hover {
    color: #DC143C;
    border-bottom-color: #DC143C;
}

/* Mini Stats dentro de las tarjetas */
.exp-stats {
    display: flex;
    gap: 32px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(139, 0, 0, 0.1);
}

.exp-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8B0000, #DC143C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Features checklist */
.exp-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.feature-item {
    color: #666;
    font-size: 0.95rem;
    padding-left: 8px;
    position: relative;
}

.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #DC143C;
    border-radius: 50%;
}


/* ===== WHY US - REDISEÑADO ===== */
.why-us {
    background: linear-gradient(180deg, #f5f0e8 0%, #ffffff 100%);
    padding: 120px 0;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

.why-us-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 0, 0, 0.1);
    border-radius: 24px;
    padding: 48px 32px;
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.why-us-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #8B0000, #DC143C, #8B0000);
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-us-card:hover::before {
    transform: scaleX(1);
}

.why-us-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.why-us-card:hover::after {
    opacity: 1;
}

.why-us-card:hover {
    transform: translateY(-12px);
    box-shadow:
        0 20px 60px rgba(139, 0, 0, 0.15),
        0 0 0 1px rgba(220, 20, 60, 0.1);
    border-color: rgba(220, 20, 60, 0.2);
}

.card-badge {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(220, 20, 60, 0.1));
    color: #8B0000;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 0, 0, 0.2);
    position: relative;
}

.why-us-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.05), rgba(220, 20, 60, 0.05));
    border-radius: 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.why-us-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, #8B0000, #DC143C);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.why-us-card:hover .why-us-icon::before {
    opacity: 1;
}

.why-us-card:hover .why-us-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.1), rgba(220, 20, 60, 0.1));
}

.why-us-icon svg {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-us-card:hover .why-us-icon svg {
    transform: scale(1.05);
}

.why-us-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 16px;
    font-weight: 600;
    text-align: center;
    position: relative;
}

.why-us-card p {
    color: #666;
    line-height: 1.8;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 24px;
}

.why-us-card a {
    color: #8B0000;
    text-decoration: none;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.why-us-card a:hover {
    color: #DC143C;
    border-bottom-color: #DC143C;
}

.card-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(139, 0, 0, 0.1);
}

.stat-item-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number-small {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8B0000, #DC143C);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label-small {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .intro-title {
        font-size: 2.5rem;
    }

    .intro-text {
        font-size: 1.125rem;
    }

    .manifiesto-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .why-us-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .intro-section {
        padding: 80px 0;
    }

    .intro-title {
        font-size: 2rem;
    }

    .intro-text {
        font-size: 1rem;
        margin-bottom: 48px;
    }

    .intro-features {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .manifiesto {
        padding: 80px 0;
    }

    .manifiesto-card {
        padding: 32px 24px;
    }

    .card-number {
        font-size: 3rem;
    }

    .why-us {
        padding: 80px 0;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .why-us-card {
        padding: 36px 24px;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 1.75rem;
    }

    .intro-badge {
        font-size: 0.75rem;
        padding: 6px 16px;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .intro-feature h3 {
        font-size: 1.25rem;
    }

    .card-number {
        font-size: 2.5rem;
    }

    .manifiesto-card h3 {
        font-size: 1.5rem;
    }

    .why-us-icon {
        width: 64px;
        height: 64px;
    }

    .why-us-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .experience-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .experience-card {
        padding: 48px 32px;
    }

    .exp-number {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    .experience-section {
        padding: 80px 0;
    }

    .experience-card {
        padding: 40px 24px;
    }

    .exp-number {
        font-size: 3.5rem;
    }

    .experience-card h3 {
        font-size: 1.75rem;
    }
}


/* ===== WHY US - TEXTO CENTRADO ===== */
.why-us .section-header {
    text-align: center;
}

.why-us .section-header h2,
.why-us .section-header p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}


/* ===== WHY US CTA - CENTRADO Y ESPACIADO ===== */
.why-us-cta {
    text-align: center;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(139, 0, 0, 0.1);
}

.why-us-cta p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 32px;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #333;
}

.why-us-cta .btn-secondary {
    margin: 0 auto;
}


/* ===== SERVICES SECTION - CENTRADO ===== */
.services .section-header {
    text-align: center;
}

.services .section-header h2,
.services .section-header .section-title,
.services .section-header p,
.services .section-header .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.services .section-number {
    margin-left: auto;
    margin-right: auto;
}


/* ===== FEATURED PROJECTS SECTION - CENTRADO ===== */
.featured-projects .section-header {
    text-align: center;
}

.featured-projects .section-header h2,
.featured-projects .section-header .section-title,
.featured-projects .section-header p,
.featured-projects .section-header .section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 800px;
}

.featured-projects .section-number {
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   MOBILE HERO REDESIGN (SPLIT VIEW)
   ============================================ */
@media (max-width: 768px) {

    /* 1. Reset & Main Layout */
    .hero {
        display: flex;
        flex-direction: column;
        background-color: #0b0b0b;
        /* Solid black for bottom part, matching dark theme */
        height: 100vh;
        height: 100svh;
        position: relative;
    }

    /* 2. Top Section: Video/Image Background */
    /* Forces the background to only take the top ~65% */
    /* Forces the background to only take the top ~70% */
    .hero-bg {
        height: 70% !important;
        min-height: 70% !important;
        bottom: auto !important;
        top: 0 !important;
        position: absolute;
        width: 100%;
        overflow: hidden;
        /* Ensure video doesn't bleed out */
    }

    .hero-overlay {
        height: 100% !important;
        /* Fix: Match parent height */
        min-height: 100% !important;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1;
        /* Ensure overlay is above video */
    }

    /* Ensure video elements inside also respect this */
    .hero-video,
    .hero-image {
        height: 100% !important;
        object-fit: cover;
        object-position: center;
    }

    /* 3. Content Container */
    .hero-content {
        height: 100%;
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        position: relative;
        z-index: 10;
        width: 100%;
    }

    /* 4. Top Content (Logo + Title) - Over Video */
    .hero-top {
        height: 70%;
        position: static !important;
        /* Ensure it is NOT a containing block */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0 20px;
    }

    /* Logo Positioning */
    .hero-logo {
        width: 165px;
        /* Slightly smaller for mobile if needed */
        margin-bottom: 20px !important;
        z-index: 2;
    }

    /* Title Positioning */
    .hero-title {
        margin-bottom: 0 !important;
        font-size: 2.2rem !important;
        /* Ensure readable title */
        padding: 0;
        text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
        /* Improve contrast over video */
        z-index: 2;
    }

    /* 5. Bottom Content (Subtitle) - Solid Black Area */
    .hero-subtitle {
        position: absolute;
        top: 70%;
        /* Explicitly start at 70% mark */
        bottom: auto;
        left: 0;
        width: 100%;
        height: 30%;
        margin: 0 !important;
        padding: 0 16px 20px 16px !important;
        /* Reduced padding to maximize space */
        /* Added bottom padding to avoid arrow overlap */

        display: flex !important;
        align-items: center;
        justify-content: center;

        background-color: #0b0b0b;
        /* Solid black background */
        color: rgba(255, 255, 255, 0.9) !important;

        text-align: center;
        /* Responsive font size: splits difference between small and large screens */
        font-size: clamp(0.95rem, 5vw, 1.25rem) !important;
        line-height: 1.4 !important;
        /* Slightly tighter line height for safety */
        font-weight: 300;

        z-index: 20;
    }

    /* Remove default AOS transforms for subtitle to prevent layout issues in this fixed mode */
    .hero-subtitle[data-aos] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* 6. Hiding Elements */
    .hero-bottom {
        display: none !important;
        /* Hides the container of the CTA button */
    }

    .hero-cta {
        display: none !important;
        /* Double ensure button is gone */
    }

    /* 7. Scroll Indicator - Reposition if needed */
    .hero-scroll {
        bottom: 15px !important;
        z-index: 30;
        /* Above black background */
    }

    .scroll-arrow-icon svg {
        width: 20px;
        height: 20px;
        opacity: 0.7;
    }
}