/* =========================================================================
   DISEÑO EXCLUSIVO - ¿QUÉ ES DARE?
   ========================================================================= */

/* Hero Premium para Página Interna */
.inner-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--secondary);
    margin-bottom: 0;
}

.inner-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('banner/banner1.jpg') center/cover no-repeat;
    transform: scale(1.1);
    animation: zoomOutSlow 20s infinite alternate;
    z-index: 1;
}

@keyframes zoomOutSlow {
    from { transform: scale(1.2); }
    to { transform: scale(1); }
}

.inner-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 28, 32, 0.85) 0%,
        rgba(230, 57, 70, 0.4) 100%
    );
    z-index: 2;
}

.inner-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 30px;
}

.inner-hero-title {
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(40px);
}

.inner-hero-title span {
    background: linear-gradient(120deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.inner-hero-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 300;
    opacity: 0;
    animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    transform: translateY(40px);
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Efecto Wave al fondo del Hero */
.hero-bottom-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 5;
    fill: var(--bg-light);
}

/* =========================================================================
   SECCIÓN: QUÉ ES DARE (Beneficios)
   ========================================================================= */
.about-dare-intro {
    padding: 100px 0;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

.intro-text-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 25px;
    line-height: 1.2;
}

.intro-text-content h2 span {
    color: var(--primary);
    position: relative;
}

.intro-text-content p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.intro-text-content .highlight-box {
    background: var(--white);
    border-left: 5px solid var(--primary);
    padding: 25px;
    border-radius: 0 15px 15px 0;
    box-shadow: var(--shadow-soft);
    margin-top: 30px;
}

.intro-text-content .highlight-box p {
    margin: 0;
    font-weight: 600;
    color: var(--secondary);
    font-style: italic;
    font-size: 1.2rem;
}

/* Grilla de valores/beneficios con Glassmorphism y Bordes Mágicos */
.benefits-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    position: relative;
}

/* Blob de fondo animado para la grilla */
.benefits-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(230,57,70,0.1) 0%, rgba(255,255,255,0) 70%);
    z-index: 0;
    filter: blur(40px);
    animation: blobMove 10s infinite alternate;
}

@keyframes blobMove {
    from { transform: translate(-50%, -50%) scale(1); }
    to { transform: translate(-40%, -40%) scale(1.2); }
}

.benefit-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

/* Efecto de borde animado premium */
.benefit-card::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        transparent,
        transparent,
        transparent,
        var(--primary-light)
    );
    animation: borderRotate 4s linear infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -2;
}

.benefit-card::after {
    content: "";
    position: absolute;
    inset: 2px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
    z-index: -1;
}

@keyframes borderRotate {
    100% {
        transform: rotate(1turn);
    }
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(230,57,70,0.15);
}

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

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(230,57,70,0.3);
    transition: transform 0.5s ease;
}

.benefit-card:hover .benefit-icon {
    transform: scale(1.1) rotate(10deg);
}

.benefit-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--secondary);
}

.benefit-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* =========================================================================
   SECCIÓN: LÍNEA DE TIEMPO (PROGRAMAS POR GRADO)
   ========================================================================= */
.timeline-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.timeline-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.timeline-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--secondary);
}

.timeline-header span {
    color: var(--primary);
}

/* Contenedor del Timeline */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Línea Central Premium */
.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, transparent, var(--primary), var(--primary-light), transparent);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: transparent;
    width: 50%;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

/* Círculos Brillantes del Timeline */
.timeline-dot {
    position: absolute;
    width: 24px;
    height: 24px;
    right: -12px;
    background-color: var(--white);
    border: 4px solid var(--primary);
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(230,57,70,0.2), 0 0 20px rgba(230,57,70,0.6);
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -12px;
}

.timeline-item:hover .timeline-dot {
    background-color: var(--primary);
    box-shadow: 0 0 0 6px rgba(230,57,70,0.3), 0 0 25px rgba(230,57,70,0.8);
    transform: translateY(-50%) scale(1.2);
}

.timeline-content {
    padding: 30px;
    background-color: var(--bg-light);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: all 0.4s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-float);
    border-color: rgba(230,57,70,0.3);
}

/* Flechitas del cuadro */
.timeline-content::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 15px 0 15px 20px;
    border-color: transparent transparent transparent var(--bg-light);
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    border-width: 15px 20px 15px 0;
    border-color: transparent var(--bg-light) transparent transparent;
    left: -20px;
}

.grade-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(230,57,70,0.1);
    color: var(--primary);
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3.timeline-title {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

.timeline-tags {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.timeline-item:nth-child(even) .timeline-tags {
    justify-content: flex-start;
}

.time-tag {
    background: var(--white);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* =========================================================================
   SECCIÓN: HISTORIA (LAPD & LAUSD)
   ========================================================================= */
.history-section {
    padding: 100px 0;
    background-color: var(--secondary);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.history-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(230,57,70,0.2) 0%, transparent 60%);
    top: -200px;
    right: -200px;
    z-index: 1;
}

.history-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
}

.history-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(5deg);
    transition: transform 0.5s ease;
}

.history-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

.history-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(0.3) contrast(1.1);
}

.history-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.history-year {
    position: absolute;
    bottom: 20px;
    left: 30px;
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.history-content {
    flex: 1;
}

.history-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.history-content h2 span {
    color: var(--primary);
}

.history-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255,255,255,0.8);
    margin-bottom: 20px;
}

.history-badges {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.h-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.h-badge i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

/* =========================================================================
   MEDIA QUERIES QUÉ ES DARE
   ========================================================================= */
@media screen and (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .timeline-container::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
        text-align: left !important;
    }
    .timeline-item:nth-child(even), .timeline-item:nth-child(odd) {
        left: 0;
    }
    .timeline-dot {
        left: 19px !important;
    }
    .timeline-content::after {
        display: none;
    }
    .timeline-tags {
        justify-content: flex-start !important;
    }
    .history-container {
        flex-direction: column;
    }
    .history-image {
        transform: none;
    }
    .history-image:hover {
        transform: scale(1.02);
    }
}

@media screen and (max-width: 768px) {
    .benefits-wrapper {
        grid-template-columns: 1fr;
    }
    .inner-hero-title {
        font-size: 2.8rem;
    }
    .history-year {
        font-size: 3rem;
    }
}
