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

:root {
    --apple-gray: #86868b;
    --apple-dark: #1d1d1f;
    --apple-light: #f5f5f7;
    --apple-white: #ffffff;
    --apple-silver: #c0c0c0;
    --apple-text: #1d1d1f;
    --apple-text-light: #86868b;
    --shadow-apple: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-apple-strong: 0 8px 40px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Display', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.47059;
    color: var(--apple-text);
    background: var(--apple-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Animaciones globales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Hero Section - Estilo Apple */
.hero {
    background: var(--apple-white);
    padding: 120px 20px 100px;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(245, 245, 247, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
    z-index: 0;
}

.hero-content {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.apple-logo {
    width: 80px;
    height: auto;
    margin: 0 auto 40px;
    display: block;
    opacity: 0.9;
    animation: fadeIn 1.2s ease-out, scaleIn 1s ease-out;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.apple-logo:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 20px;
    color: var(--apple-dark);
    line-height: 1.05;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--apple-text-light);
    margin-bottom: 12px;
    font-weight: 400;
    letter-spacing: -0.011em;
    animation: fadeInUp 1.2s ease-out 0.2s both;
}

.hero-author {
    font-size: 1.1rem;
    color: var(--apple-gray);
    margin-top: 30px;
    margin-bottom: 8px;
    font-weight: 400;
    animation: fadeInUp 1.4s ease-out 0.4s both;
}

.hero-year {
    font-size: 1.8rem;
    color: var(--apple-dark);
    margin-top: 25px;
    font-weight: 600;
    letter-spacing: -0.02em;
    animation: fadeInUp 1.6s ease-out 0.6s both;
}

/* Main Content - Estilo Apple */
main {
    max-width: 980px;
    margin: 0 auto;
    padding: 80px 30px;
    position: relative;
    z-index: 1;
    background: var(--apple-white);
}

.content-section {
    margin-bottom: 80px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
    transition: none;
    animation: fadeInUp 0.8s ease-out;
}

.content-section:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.section-title {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 20px;
    color: var(--apple-dark);
    line-height: 1.1;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    position: relative;
    padding-bottom: 0;
}

.section-title::after {
    display: none;
}

.subsection-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.011em;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--apple-dark);
    text-shadow: none;
    position: relative;
    padding-left: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
}

.subsection-title::before {
    display: none;
}

.subsubsection-title {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.011em;
    margin-top: 35px;
    margin-bottom: 15px;
    color: var(--apple-dark);
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
}

.section-text {
    font-size: 1.1rem;
    line-height: 1.76471;
    color: var(--apple-text);
    margin-bottom: 20px;
    text-align: left;
    font-weight: 400;
    letter-spacing: -0.011em;
}

.section-text strong {
    font-weight: 600;
    color: var(--apple-dark);
    text-shadow: none;
}

/* Video Container - Estilo Apple */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 40px 0;
    border-radius: 18px;
    box-shadow: var(--shadow-apple-strong);
    background: #000000;
    transition: all 0.4s cubic-bezier(0.28, 0.11, 0.32, 1);
}

.video-container::before {
    display: none;
}

.video-container:hover {
    transform: scale(1.01);
    box-shadow: var(--shadow-apple-strong);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 18px;
}

/* Footer - Estilo Apple */
.footer {
    background: var(--apple-light);
    padding: 40px 20px;
    text-align: center;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer::before {
    display: none;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--apple-text-light);
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.footer-link {
    color: var(--apple-text);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
    text-shadow: none;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--apple-text);
    transition: width 0.3s ease;
}

.footer-link:hover {
    color: var(--apple-dark);
    text-shadow: none;
    transform: none;
}

.footer-link:hover::after {
    width: 100%;
}

/* Scroll Animations */
@keyframes scrollFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: scrollFadeIn 0.8s ease-out both;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    main {
        padding: 60px 30px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 20px 60px;
        min-height: auto;
    }

    .apple-logo {
        width: 60px;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-author {
        font-size: 0.95rem;
    }

    .hero-year {
        font-size: 1.5rem;
    }

    main {
        padding: 50px 20px;
    }

    .content-section {
        margin-bottom: 60px;
    }

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

    .subsection-title {
        font-size: 1.6rem;
    }

    .subsubsection-title {
        font-size: 1.3rem;
    }

    .section-text {
        font-size: 1rem;
    }

    .video-container {
        margin: 30px 0;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .apple-logo {
        width: 50px;
        margin-bottom: 25px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .subsection-title {
        font-size: 1.4rem;
    }

    .subsubsection-title {
        font-size: 1.2rem;
    }

    .section-text {
        font-size: 0.95rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color - Estilo Apple */
::selection {
    background-color: rgba(0, 122, 255, 0.2);
    color: var(--apple-dark);
}

::-moz-selection {
    background-color: rgba(0, 122, 255, 0.2);
    color: var(--apple-dark);
}

/* Scrollbar styling - Estilo Apple */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--apple-light);
}

::-webkit-scrollbar-thumb {
    background: var(--apple-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--apple-text-light);
}

/* Asegurar que el main esté por encima del hero */
main {
    position: relative;
    z-index: 10;
}

.hero {
    position: relative;
    z-index: 1;
}
