/* Variables de colores */
:root {
    --primary: #FF6B6B;
    --secondary: #4ECDC4;
    --accent: #FFE66D;
    --dark: #2C3E50;
    --light: #F7F9FC;
    --purple: #9B59B6;
    --green: #2ECC71;
    --orange: #F39C12;
    --blue: #3498DB;
    --pink: #FF6B9D;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 20px;
    --transition: all 0.3s ease;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka One', cursive;
    font-weight: 400;
    line-height: 1.2;
}

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

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-social {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-social a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.15rem;
    -webkit-text-stroke: 0.6px currentColor;
    transition: var(--transition);
}

.nav-social a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8rem;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--dark);
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    min-height: 100vh;
    width: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 60px 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 700px;
    height: 700px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.hero-slide::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.hero-content {
    max-width: 600px;
    z-index: 10;
    color: var(--white);
}

.hero-logo {
    max-width: 360px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.15);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Nunito', sans-serif;
    box-shadow: var(--shadow);
}

.btn-primary {
    background: var(--accent);
    color: var(--dark);
}

.btn-primary:hover {
    background: #ffd93d;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--white);
    color: var(--dark);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

.btn-course, .btn-game {
    background: linear-gradient(135deg, var(--primary), var(--pink));
    color: var(--white);
    padding: 12px 30px;
    width: 100%;
    margin-top: 15px;
}

.btn-course:hover, .btn-game:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

/* Hero controls */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.25);
    border: none;
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--white);
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dot.active {
    background: var(--white);
    transform: scale(1.2);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Hero Animation */
.hero-animation {
    position: relative;
    width: 400px;
    height: 400px;
    z-index: 10;
}

.floating-shape {
    position: absolute;
    font-size: 3.5rem;
    background: var(--white);
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: var(--shadow);
    animation: float 6s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.floating-shape:hover {
    transform: scale(1.2);
}

.shape-1 { top: 10%; left: 10%; animation-delay: 0s; }
.shape-2 { top: 60%; left: 5%; animation-delay: 1s; }
.shape-3 { top: 20%; right: 10%; animation-delay: 2s; }
.shape-4 { bottom: 20%; right: 25%; animation-delay: 3s; }
.shape-5 { top: 45%; left: 40%; animation-delay: 4s; }

/* Slider furniture images */
.hero-visual {
    position: relative;
    width: min(1000px, 95%, calc(70vh * 10 / 6));
    aspect-ratio: 10 / 6;
    min-width: 280px;
    align-self: center;
    margin: 0 auto;
    z-index: 10;
}

.hero-furniture {
    position: absolute;
    height: auto;
    opacity: 0;
    transform: translateX(60px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.hero-slide.active .hero-furniture {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.hero-furniture-back {
    right: 5%;
    top: 10%;
    width: 50%;
    z-index: 1;
}

.hero-furniture-front {
    left: 5%;
    top: 0;
    width: 50%;
    z-index: 2;
    transition-delay: 0.8s;
}

.hero-slide--furniture,
.hero-slide--mockup,
.hero-slide--calendar {
    justify-content: flex-start;
}

.hero-visual--mockup {
    aspect-ratio: 4 / 3;
    width: min(900px, 95%, calc(70vh * 4 / 3));
}

.hero-mockup {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translateX(60px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.hero-slide.active .hero-mockup {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.hero-visual--calendar {
    aspect-ratio: 5 / 3;
    width: min(900px, 95%, calc(70vh * 5 / 3));
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.hero-calendar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: translateX(60px) scale(0.95);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.hero-slide.active .hero-calendar {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 60px;
    color: var(--dark);
    position: relative;
}

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

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
    margin-top: -30px;
}

/* Features */
.features {
    padding: 100px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    position: relative;
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border: 5pt solid var(--white);
    overflow: hidden;
    color: var(--white);
    z-index: 1;
}

.feature-card:nth-child(1) { border-color: #FF6B6B; }
.feature-card:nth-child(2) { border-color: #4ECDC4; }
.feature-card:nth-child(3) { border-color: #9B59B6; }
.feature-card:nth-child(4) { border-color: #2ECC71; }

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--feature-img);
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease, filter 0.5s ease;
    z-index: -2;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
    z-index: -1;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 0, 0, 0.25);
}

.feature-card:hover::before {
    transform: scale(1.1);
    filter: blur(10px) brightness(0.65);
}

.feature-card:hover::after {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: bounce 2s ease infinite;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.45);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.05rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Courses */
.courses {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    position: relative;
    overflow: hidden;
}

.courses-parallax,
.stats-parallax,
.contact-parallax {
    position: absolute;
    top: -30%;
    bottom: -30%;
    left: 0;
    right: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 0;
}

.courses-parallax {
    background-image: url('../images/fondo01.jpg');
}

.stats-parallax {
    background-image: url('../images/fondo03.jpg');
}

.contact-parallax {
    background-image: url('../images/fondo04.jpg');
}

.courses-parallax::after,
.stats-parallax::after,
.contact-parallax::after {
    content: '';
    position: absolute;
    inset: 0;
}

.courses-parallax::after {
    background: rgba(255, 255, 255, 0.78);
}

.stats-parallax::after {
    background: rgba(44, 62, 80, 0.55);
}

.contact-parallax::after {
    background: rgba(255, 255, 255, 0.72);
}

.courses .container,
.stats .container,
.contact .container {
    position: relative;
    z-index: 1;
}

.courses-grid, .games-grid, .resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.games .games-grid,
.stats .games-grid,
.resources .resources-grid {
    grid-template-columns: repeat(4, 1fr);
}

.course-card, .game-card, .resource-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.course-card {
    border: 5pt solid var(--white);
    position: relative;
}

.course-card:nth-child(1) { border-color: #FF6B6B; }
.course-card:nth-child(2) { border-color: #4ECDC4; }
.course-card:nth-child(3) { border-color: #9B59B6; }
.course-card:nth-child(4) { border-color: #2ECC71; }
.course-card:nth-child(5) { border-color: #F39C12; }
.course-card:nth-child(6) { border-color: #3498DB; }

.course-card:hover, .game-card:hover {
    border-color: var(--white);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-image {
    height: 180px;
    background: linear-gradient(135deg, var(--secondary), var(--blue));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform 0.3s ease;
    position: relative;
}

.course-card:hover .course-image {
    transform: none;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

img.course-png {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    height: 210px;
    width: auto;
    max-width: 85%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

.course-card:nth-child(2) .course-image {
    background: linear-gradient(135deg, var(--orange), var(--primary));
}

.course-card:nth-child(3) .course-image {
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.course-card:nth-child(4) .course-image {
    background: linear-gradient(135deg, var(--green), var(--secondary));
}

.course-icon {
    display: none;
}

.course-card:hover .course-icon {
    transform: scale(1.25);
}

.course-content, .game-card, .resource-item {
    padding: 30px;
}

.course-content h3, .game-card h3, .resource-item h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.course-content p, .game-card p, .resource-item p {
    color: #666;
    margin-bottom: 15px;
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.level, .duration {
    background: rgba(78, 205, 196, 0.15);
    color: var(--secondary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
}

/* Games */
.games {
    padding: 100px 0;
    background: linear-gradient(135deg, #fff3e0 0%, #fce4ec 100%);
}

a.game-card {
    text-decoration: none;
    display: block;
}

.game-card {
    position: relative;
    text-align: center;
    border: 5pt solid var(--white);
    color: var(--white);
    overflow: hidden;
    z-index: 1;
    background: transparent;
}

.game-card:nth-child(1) { --game-bg: linear-gradient(135deg, #FF6B6B, #FF8E53); border-color: #FF6B6B; }
.game-card:nth-child(2) { --game-bg: linear-gradient(135deg, #4ECDC4, #3498DB); border-color: #4ECDC4; }
.game-card:nth-child(3) { --game-bg: linear-gradient(135deg, #9B59B6, #E91E63); border-color: #9B59B6; }
.game-card:nth-child(4) { --game-bg: linear-gradient(135deg, #2ECC71, #4ECDC4); border-color: #2ECC71; }

.game-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--game-bg);
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease, filter 0.5s ease;
    z-index: -2;
}

.game-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, -webkit-backdrop-filter 0.4s ease;
    z-index: -1;
}

.game-card > * {
    position: relative;
    z-index: 1;
}

.game-card:hover {
    border-color: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 25px rgba(0, 0, 0, 0.25);
}

.game-card:hover::before {
    transform: scale(1.1);
    filter: blur(10px) brightness(0.65);
}

.game-card:hover::after {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px) saturate(1.2);
    -webkit-backdrop-filter: blur(12px) saturate(1.2);
}

.stats .game-card:hover {
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.45), 0 0 25px rgba(255, 255, 255, 0.35);
}

.game-icon {
    display: none;
}

.game-card h3 {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.game-card p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Stats */
.stats {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--dark), #34495e);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-number {
    font-family: 'Fredoka One', cursive;
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Resources */
.resources {
    padding: 100px 0;
    background: var(--white);
}

.resource-item {
    text-align: center;
    border: 5pt solid var(--white);
    border-radius: var(--radius);
    position: relative;
    background: url('../images/op01.jpg') center / cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
    color: var(--white);
}

.resource-item:nth-child(1) { border-color: #FF6B6B; }
.resource-item:nth-child(2) { border-color: #4ECDC4; }
.resource-item:nth-child(3) { border-color: #9B59B6; }
.resource-item:nth-child(4) { border-color: #2ECC71; }

.resource-item--sensorial {
    background-image: url('../images/op02.jpg');
}

.resource-item--grafico {
    background-image: url('../images/op03.jpg');
}

.resource-item--semaforo {
    background-image: url('../images/op04.jpg');
}

.resource-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.resource-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.5);
    transition: background 0.4s ease;
    z-index: 1;
}

.resource-item:hover::before {
    background: rgba(44, 62, 80, 0.78);
}

.resource-item > *:not(.resource-carousel) {
    position: relative;
    z-index: 2;
}

.resource-item h3 {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.resource-item p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    margin-bottom: 0;
}

.resource-item {
    cursor: pointer;
}

.resource-item:hover {
    border-color: var(--white);
    transform: scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Lightbox carrusel */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    width: 90%;
    max-width: 850px;
    text-align: center;
}

.lightbox-title {
    color: var(--dark);
    font-size: 2rem;
    margin-bottom: 20px;
}

.lightbox-carousel {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.lightbox-slide {
    width: 100%;
    max-height: 65vh;
    object-fit: cover;
    display: block;
    opacity: 1;
    transition: opacity 0.35s ease;
}

.lightbox-slide.fading {
    opacity: 0;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.85);
    border: none;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    color: var(--dark);
    line-height: 1;
    transition: var(--transition);
}

.lightbox-arrow:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2.8rem;
    cursor: pointer;
    color: var(--dark);
    line-height: 1;
    transition: var(--transition);
}

.lightbox-close:hover {
    color: var(--primary);
    transform: scale(1.15);
}

.lightbox-caption {
    color: #555;
    font-size: 1.05rem;
    margin-top: 15px;
    margin-bottom: 0;
}

.lightbox-dots {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.lightbox-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-dot.active {
    background: var(--primary);
    transform: scale(1.25);
}

/* Contact */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    position: relative;
    overflow: hidden;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.contact-info > p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #666;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-item a {
    color: inherit;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--primary);
}

.contact-icon {
    font-size: 2.6rem;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    -webkit-text-stroke: 0.6px currentColor;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-form .form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 20px;
    cursor: pointer;
}

.contact-form .form-consent input {
    width: auto;
    margin: 3px 0 0;
}

.contact-form .form-disclaimer {
    font-size: 0.8rem;
    color: #999;
    margin-top: 15px;
    margin-bottom: 0;
}

.form-consent a,
.form-disclaimer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.form-consent a:hover,
.form-disclaimer a:hover {
    text-decoration: underline;
}

/* Página legal (Política de Privacidad) */
.legal {
    padding: 160px 0 100px;
    background: var(--light);
    min-height: 60vh;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content .section-title {
    margin-bottom: 40px;
}

.legal-content h3 {
    margin: 35px 0 15px;
    color: var(--dark);
}

.legal-content p {
    margin-bottom: 18px;
    color: #555;
}

.legal-content ul {
    margin: 0 0 18px 25px;
    color: #555;
}

.legal-content ul li {
    margin-bottom: 10px;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.legal-content a:hover {
    text-decoration: underline;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.1);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.footer-logo {
    max-width: 240px;
    height: auto;
    margin-bottom: 20px;
    display: block;
}

.footer-section p {
    opacity: 0.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.8rem;
    font-weight: 700;
    -webkit-text-stroke: 0.6px currentColor;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(-3deg);
    }
    50% {
        transform: rotate(3deg);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero,
    .hero-slider {
        min-height: auto;
    }

    .hero-slide {
        position: relative;
        display: none;
        flex-direction: column;
        text-align: center;
        padding: 140px 30px 100px;
    }

    .hero-slide.active {
        display: flex;
    }

    .games .games-grid,
    .stats .games-grid,
    .resources .resources-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-animation,
    .hero-visual {
        width: 300px;
        height: 300px;
        min-width: 300px;
        margin-top: 60px;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .navbar {
        padding: 15px 20px;
    }

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

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

    .hero-logo {
        max-width: 252px;
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .games .games-grid,
    .stats .games-grid,
    .resources .resources-grid {
        grid-template-columns: 1fr;
    }
}
