/* Design System for Caso Zepeda Timeline */
:root {
    --bg-color: #0c0e12;
    --card-bg: rgba(25, 28, 35, 0.7);
    --accent-primary: #e63946; /* Dramatic red */
    --accent-secondary: #457b9d; /* Serious blue */
    --text-primary: #f1faee;
    --text-secondary: #a8dadc;
    --timeline-line: #1d3557;
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('hero_bg.png'); /* Set to generated image */
    background-size: cover;
    background-position: center;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
    font-weight: 700;
}

.hero h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    color: var(--text-secondary);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    color: var(--text-primary);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-primary);
    margin: 15px auto 0;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--timeline-line);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 20px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 4px solid var(--accent-primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--accent-primary);
}

.left { left: 0; }
.right { left: 50%; }

.right::after { left: -10px; }

.content {
    padding: 25px 35px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    position: relative;
    border-radius: 15px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.content:hover {
    transform: scale(1.02);
    border-color: var(--accent-secondary);
}

.content h2 {
    font-size: 1.3rem;
    color: var(--accent-secondary);
    margin-bottom: 5px;
}

.content h3 {
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--accent-primary);
}

/* Actors Grid and Cards */
.actors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.actor-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.actor-card img, .actor-placeholder {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.actor-placeholder {
    background: linear-gradient(135deg, #1d3557 0%, #0c0e12 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.actor-placeholder::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.actor-placeholder::after {
    content: '👤';
    font-size: 80px;
    opacity: 0.3;
    filter: grayscale(1);
}

.actor-placeholder.father { 
    background: linear-gradient(135deg, #7b2cbf 0%, #10002b 100%); 
}

.actor-placeholder.boyfriend { 
    background: linear-gradient(135deg, #2a9d8f 0%, #264653 100%); 
}

.actor-placeholder.judge { 
    background: linear-gradient(135deg, #457b9d 0%, #1d3557 100%); 
}

.actor-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.actor-card:hover img {
    filter: sepia(0%) contrast(1.2);
}

.actor-info {
    padding: 20px;
    text-align: center;
}

.actor-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.actor-info .role {
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.actor-info p:not(.role) {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.data-table th, .data-table td {
    padding: 18px;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.data-table th {
    background: rgba(69, 123, 157, 0.2);
    color: var(--text-secondary);
    font-weight: 700;
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.05);
}

/* Animations and Utilities */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s ease-out;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-top: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-secondary);
}

ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* Responsive and Footer */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .timeline::after { left: 20px; }
    .timeline-item { width: 100%; padding-left: 50px; padding-right: 20px; }
    .timeline-item::after { left: 10px; }
    .right { left: 0; }
}

.footer {
    text-align: center;
    padding: 100px 20px;
    background: #050608;
    color: #444;
}

.footer p { margin-bottom: 10px; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--accent-primary); border-radius: 4px; }
