:root {
    --primary-color: #1a2634;
    --secondary-color: #facc15;
    --text-white: #ffffff;
    --text-dark: #334155;
    --bg-light: #f8fafc;
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

main {
    width: 100%;
}

/* ============================
   Hero Section
   ============================ */
.trabaja-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    overflow: hidden;
    text-align: center;
}

.video-container-hero {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-container-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 38, 52, 0.65); /* Overlay semi-transparente para leer bien el texto */
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    padding: 2rem 5%;
    color: var(--text-white);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    color: var(--text-white);
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.hero-text .subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: #e2e8f0;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================
   Zigzag Section
   ============================ */
.zigzag-section {
    padding: 7rem 5%;
    background-color: #ffffff;
}

.zigzag-intro {
    max-width: 900px;
    margin: 0 auto 5rem auto;
    text-align: center;
}

.zigzag-intro h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.25;
}

.zigzag-intro p {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.6;
}

.zigzag-row {
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto 7rem auto;
    gap: 5rem;
}

.zigzag-row:last-child {
    margin-bottom: 0;
}

.zigzag-row.reverse {
    flex-direction: row-reverse;
}

.zigzag-text {
    flex: 1;
}

.zigzag-text h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.25;
    position: relative;
    padding-bottom: 15px;
}

.zigzag-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    border-radius: 2px;
}

.zigzag-text p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.2rem;
    line-height: 1.7;
}

.zigzag-video {
    flex: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); /* Sombra elegante */
}

.zigzag-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 20px;
}

/* ============================
   Cards Section
   ============================ */
.cards-section {
    padding: 7rem 5%;
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 4rem;
    line-height: 1.2;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Sombra suave para un look premium */
    border-top: 5px solid var(--secondary-color); /* Toque del amarillo distintivo */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Transición para que el título se ponga amarillo sutil al poner el mouse */
.card-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.card:hover .card-content h3 {
    color: #eab308;
}

.card-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.card:hover .card-img img {
    transform: scale(1.08);
}

.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-content p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
}

/* ============================
   Animaciones (Intersection Observer)
   ============================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.zoom-in {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* ============================
   Responsivo
   ============================ */
@media (min-width: 1440px) {
    .zigzag-row, .cards-grid {
        max-width: 1400px;
    }
}

@media (max-width: 1024px) {
    .zigzag-row {
        gap: 3rem;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .zigzag-row, .zigzag-row.reverse {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 5rem;
    }
    
    .zigzag-text {
        text-align: center;
    }
    
    .zigzag-text, .zigzag-video {
        width: 100%;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}
