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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #003f7f;
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Selector de idioma flotante */
.language-selector-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 36px;
}

.language-selector-floating .btn-language,
.language-selector-floating .language-toggle {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #003f7f;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 60px;
    height: 36px;
    font-weight: 600;
}

.language-selector-floating .btn-language:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px 20px;
    position: relative;
}

.hero-content {
    margin-bottom: 40px;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.title-sparkle {
    animation: sparkle 2s ease-in-out infinite alternate;
    font-size: 2rem;
}

@keyframes sparkle {
    0% { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(15deg) scale(1.2); }
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    max-width: 600px;
    margin: 0 auto;
}

/* Selector de idioma - Dropdown */
.language-selector {
    position: relative;
    min-width: 160px;
}

.language-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-toggle:hover,
.language-toggle.active {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.current-language {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-flag {
    font-size: 1.1rem;
}

.language-name {
    font-weight: 600;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.language-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-options {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    margin-top: 5px;
    overflow: hidden;
    z-index: 1000;
    animation: dropdownFadeIn 0.3s ease;
    min-width: 80px;
    width: auto;
}

.language-options.hidden {
    display: none;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: #4a5568;
    font-weight: 600;
    font-size: 0.9rem;
}

.language-option:hover {
    background: #f7fafc;
}

.language-option.active {
    background: #003f7f;
    color: white;
}

.language-option.active:hover {
    background: #003f7f;
}

/* Secciones principales */
main {
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex: 1;
}

.story-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.story-section:hover {
    transform: translateY(-5px);
}

h2 {
    color: #4a5568;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.help-text {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

/* Botones */
.buttons-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 200px;
}




.btn-story-es {
    background: #ff6b6b;
    color: white;
    display: inline-block;
    margin: 0;
}

.btn-story-es:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.btn-story-fr {
    background: #4ecdc4;
    color: white;
    display: inline-block;
    margin: 0;
}

.btn-story-fr:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

/* Botón principal gigante */
.main-action {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-compact {
    background: #ff6b6b;
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 15px 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.btn-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-compact:hover::before {
    left: 100%;
}

.btn-compact:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.6);
}

.btn-compact:active {
    transform: translateY(-1px) scale(1.01);
}

.btn-magic {
    animation: bounce 2s ease-in-out infinite;
}

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

.action-hint {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Resultados */
.result-box {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #003f7f;
}

.result-box.hidden {
    display: none;
}

.result-box h3 {
    color: #4a5568;
    margin-bottom: 15px;
    text-align: center;
}


/* Conceptos para historias */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.concept-card {
    background: white;
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.concept-card:hover {
    transform: translateY(-3px);
    border-color: #003f7f;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

/* Estado completado de conceptos */
.concept-card.completed {
    background: #f0fff4;
    border-color: #48bb78;
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.2);
}

.concept-card.completed:hover {
    border-color: #38a169;
    box-shadow: 0 5px 15px rgba(56, 161, 105, 0.3);
}

.concept-card h4 {
    color: #4a5568;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.concept-card p {
    color: #003f7f;
    font-weight: 600;
    font-size: 1.2rem;
}

.concept-card small {
    color: #888;
    font-size: 0.9rem;
    display: block;
    margin-top: 8px;
}

/* Tickets de validación */
.validation-ticket {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ticket-checkbox {
    display: flex;
    align-items: center;
}

.concept-checkbox {
    display: none;
}

.checkbox-label {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e0;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label:hover {
    border-color: #003f7f;
    background: #f7fafc;
}

.concept-checkbox:checked + .checkbox-label {
    background: #48bb78;
    border-color: #48bb78;
    transform: scale(1.1);
}

.concept-checkbox:checked + .checkbox-label .checkmark {
    opacity: 1;
    transform: scale(1);
}

.checkmark {
    color: white;
    font-weight: bold;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

/* Estado completado del ticket */
.concept-card.completed .validation-ticket {
    border-color: #48bb78;
}

/* Badge de puntos extra para tiempo verbal */
.extra-points-badge {
    margin: 10px 0;
    text-align: center;
}

.extra-points-text {
    background: #ffd700;
    color: #744210;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Mensaje de celebración */
.celebration-message {
    background: #003f7f;
    color: white;
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: celebrationSlideIn 0.6s ease-out;
}

.celebration-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: celebrationBounce 1s ease-in-out infinite alternate;
}

.celebration-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.celebration-emoji {
    font-size: 2.5rem;
    animation: celebrationRotate 2s ease-in-out infinite;
}

@keyframes celebrationSlideIn {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

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

@keyframes celebrationRotate {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

/* Tarjeta especial para tiempo verbal */
.tiempo-card {
    border-color: #ff6b6b;
    background: #fff5f5;
}

.tiempo-card h4 {
    color: #c53030;
}

.tiempo-card p {
    color: #e53e3e;
    font-size: 1.1rem;
}

/* Estado completado para tiempo verbal */
.tiempo-card.completed {
    background: #f0fff4;
    border-color: #48bb78;
}

.tiempo-card.completed h4 {
    color: #2f855a;
}

.tiempo-card.completed p {
    color: #38a169;
}

/* Tips rápidos minimalistas */
.quick-tips {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    margin-bottom: 0;
    flex-wrap: wrap;
}

.tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    opacity: 0.95;
}

.tip-number {
    background: linear-gradient(135deg, #87ceeb, #4682b4);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 8px;
    backdrop-filter: blur(10px);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.3);
}

.tip-text {
    font-size: 0.9rem;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Overlay de cuenta regresiva */
.countdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.countdown-overlay.hidden {
    display: none;
}

.countdown-overlay.show {
    opacity: 1;
    visibility: visible;
}

.countdown-content {
    text-align: center;
    position: relative;
}

.countdown-text {
    font-size: 4rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    animation: countdownPulse 1s ease-in-out infinite;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
}

/* Animación de partículas de fondo */
.countdown-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.countdown-particles::before,
.countdown-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: floatParticles 3s ease-in-out infinite;
}

.countdown-particles::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.countdown-particles::after {
    top: 60%;
    right: 20%;
    animation-delay: 1.5s;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

/* Animaciones */
@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 50px rgba(255, 255, 255, 1);
    }
}

@keyframes floatParticles {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Animación especial para "Placote!" */
.countdown-text.placote {
    color: #ff6b6b;
    text-shadow: 0 0 40px rgba(255, 107, 107, 0.9);
    animation: placoteExplosion 0.8s ease-out;
}

@keyframes placoteExplosion {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.3);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Efectos de temblor para las tarjetas de conceptos - Solo escritorio */
@media (min-width: 769px) {
    .concept-card.shake-light {
        animation: shakeLight 0.5s ease-in-out infinite;
    }


    .concept-card.shake-medium {
        animation: shakeMedium 0.4s ease-in-out infinite;
    }

    .concept-card.shake-intense {
        animation: shakeIntense 0.3s ease-in-out infinite;
    }
}

@keyframes shakeLight {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    10% { transform: translateX(-1px) translateY(-1px) rotate(-0.5deg); }
    20% { transform: translateX(1px) translateY(1px) rotate(0.5deg); }
    30% { transform: translateX(-1px) translateY(1px) rotate(-0.3deg); }
    40% { transform: translateX(1px) translateY(-1px) rotate(0.3deg); }
    50% { transform: translateX(-1px) translateY(0) rotate(-0.2deg); }
    60% { transform: translateX(1px) translateY(0) rotate(0.2deg); }
    70% { transform: translateX(0) translateY(-1px) rotate(-0.1deg); }
    80% { transform: translateX(0) translateY(1px) rotate(0.1deg); }
    90% { transform: translateX(-0.5px) translateY(-0.5px) rotate(-0.05deg); }
}


@keyframes shakeMedium {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    10% { transform: translateX(-2px) translateY(-2px) rotate(-1deg); }
    20% { transform: translateX(2px) translateY(2px) rotate(1deg); }
    30% { transform: translateX(-2px) translateY(2px) rotate(-0.8deg); }
    40% { transform: translateX(2px) translateY(-2px) rotate(0.8deg); }
    50% { transform: translateX(-2px) translateY(0) rotate(-0.5deg); }
    60% { transform: translateX(2px) translateY(0) rotate(0.5deg); }
    70% { transform: translateX(0) translateY(-2px) rotate(-0.3deg); }
    80% { transform: translateX(0) translateY(2px) rotate(0.3deg); }
    90% { transform: translateX(-1px) translateY(-1px) rotate(-0.2deg); }
}

@keyframes shakeIntense {
    0%, 100% { transform: translateX(0) translateY(0) rotate(0deg); }
    5% { transform: translateX(-3px) translateY(-3px) rotate(-1.5deg); }
    10% { transform: translateX(3px) translateY(3px) rotate(1.5deg); }
    15% { transform: translateX(-3px) translateY(3px) rotate(-1.2deg); }
    20% { transform: translateX(3px) translateY(-3px) rotate(1.2deg); }
    25% { transform: translateX(-3px) translateY(0) rotate(-0.8deg); }
    30% { transform: translateX(3px) translateY(0) rotate(0.8deg); }
    35% { transform: translateX(0) translateY(-3px) rotate(-0.5deg); }
    40% { transform: translateX(0) translateY(3px) rotate(0.5deg); }
    45% { transform: translateX(-2px) translateY(-2px) rotate(-0.3deg); }
    50% { transform: translateX(2px) translateY(2px) rotate(0.3deg); }
    55% { transform: translateX(-1px) translateY(-1px) rotate(-0.1deg); }
    60% { transform: translateX(1px) translateY(1px) rotate(0.1deg); }
    65% { transform: translateX(-0.5px) translateY(-0.5px) rotate(-0.05deg); }
    70% { transform: translateX(0.5px) translateY(0.5px) rotate(0.05deg); }
    75% { transform: translateX(-0.3px) translateY(-0.3px) rotate(-0.02deg); }
    80% { transform: translateX(0.3px) translateY(0.3px) rotate(0.02deg); }
    85% { transform: translateX(-0.1px) translateY(-0.1px) rotate(-0.01deg); }
    90% { transform: translateX(0.1px) translateY(0.1px) rotate(0.01deg); }
    95% { transform: translateX(-0.05px) translateY(-0.05px) rotate(-0.005deg); }
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .hero-section {
        justify-content: center;
        padding: 30px 20px;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .title-sparkle {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    /* Ocultar instrucciones en móvil */
    .quick-tips {
        display: none;
    }
    
    /* Área de juego ajustada para móvil */
    .game-container {
        padding: 20px;
    }
    
    .btn-compact {
        font-size: 1.4rem;
        padding: 15px 35px;
    }
    
    .action-hint {
        font-size: 1rem;
    }
    
    /* Cuenta regresiva responsive */
    .countdown-text {
        font-size: 3rem;
    }
    
    /* Selector de idioma móvil - esquina superior derecha */
    .language-selector-floating {
        top: 15px;
        right: 10px;
        width: 50px;
        height: 32px;
    }
    
    .language-selector-floating .btn-language,
    .language-selector-floating .language-toggle {
        font-size: 0.8rem;
        padding: 6px 8px;
        gap: 4px;
        width: 50px;
        height: 32px;
    }
}

/* Pantallas muy pequeñas (móviles pequeños) */
@media (max-width: 425px) {
    .language-selector-floating {
        top: 10px;
        right: 5px;
        width: 45px;
        height: 30px;
    }
    
    .language-selector-floating .btn-language,
    .language-selector-floating .language-toggle {
        width: 45px;
        height: 30px;
        font-size: 0.75rem;
        padding: 5px 6px;
        gap: 3px;
    }
}

/* Área de juego principal */
.game-area {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Contenedor unificado del juego */
.game-container {
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: auto;
}

/* Grid de conceptos (aparece arriba) */
.concepts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    order: 1;
    animation: slideInDown 0.6s ease-out;
    margin-bottom: 10px;
    max-width: 100%;
}

.concepts-grid.hidden {
    display: none;
    margin-bottom: 0;
}

/* Botón principal (siempre visible abajo) */
.main-action {
    order: 2;
    margin: 0;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    text-align: center;
    margin-top: auto;
    padding: 30px 20px;
    color: white;
    opacity: 0.8;
}

.coffee-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.coffee-link {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.coffee-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Crédito del desarrollador */
.developer-credit {
    margin-top: 25px;
    text-align: center;
}

.developer-credit p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.4;
}

.developer-credit a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.developer-credit a:hover {
    color: white;
    text-decoration: underline;
}

/* Botón de información */
.btn-about {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-about:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Estilos para la página About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content .about-section:first-child {
    margin-top: 0;
}

/* Reducir margen del hero-section en about */
.about-content .hero-section {
    margin-bottom: 10px;
}

/* Reducir padding del hero-content en about */
.about-content .hero-content {
    margin-bottom: 10px;
}

/* Espaciado específico para página about */
body:has(.about-content) .hero-section {
    padding: 20px 20px 10px 20px;
}

body:has(.about-content) .hero-content {
    margin-bottom: 5px;
}

.about-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-section h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.about-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.step-number {
    background: linear-gradient(135deg, #87ceeb, #4682b4);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    box-shadow: 0 4px 12px rgba(135, 206, 235, 0.3);
    flex-shrink: 0;
}

.step p {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

/* Formulario de contacto */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #003f7f;
    box-shadow: 0 0 0 3px rgba(0, 63, 127, 0.2);
    background: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-contact {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    width: 100%;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(255, 107, 107, 0.6);
}

/* Sección de apoyo */
.support-section {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(78, 205, 196, 0.2));
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.support-links {
    text-align: center;
    margin-top: 20px;
}

/* Enlaces de proyectos */
.project-links {
    text-align: center;
    margin-top: 20px;
}

.project-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Botón de regreso */
.back-section {
    text-align: center;
    margin-top: 40px;
}

.btn-back {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    .buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        min-width: 250px;
    }
    
    .concepts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* Tablets - layout intermedio */
@media (max-width: 1024px) and (min-width: 769px) {
    .concepts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .concepts-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .concept-card {
        padding: 20px;
        min-height: auto;
    }
    
    .story-section {
        padding: 20px;
    }
    
    .btn-language {
        min-width: 140px;
        padding: 10px 16px;
        font-size: 0.9rem;
    }
    
    /* Botón about responsive */
    .btn-about {
        font-size: 0.75rem;
        padding: 8px 16px;
    }
    
    .coffee-links {
        gap: 10px;
    }
    
    /* About page responsive */
    .about-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .about-section h2 {
        font-size: 1.5rem;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.9rem;
        padding: 10px 14px;
    }
    
    .btn-contact {
        font-size: 1rem;
        padding: 12px 25px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .btn {
        min-width: 200px;
        padding: 12px 20px;
        font-size: 1rem;
    }
    
    /* About page mobile small */
    .btn-about {
        font-size: 0.7rem;
        padding: 6px 12px;
    }
    
    .coffee-links {
        gap: 8px;
    }
    
    .about-section {
        padding: 15px;
    }
    
    .about-section h2 {
        font-size: 1.3rem;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .btn-contact {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
}

/* ===== NOTIFICACIONES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    max-width: 400px;
    min-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid #10b981;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left-color: #10b981;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-text {
    flex: 1;
}

.notification-text h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1f2937;
}

.notification-text p {
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #9ca3af;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #374151;
}

/* Responsive para notificaciones */
@media (max-width: 768px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        min-width: auto;
    }
    
    .notification-content {
        padding: 12px;
        gap: 10px;
    }
    
    .notification-text h4 {
        font-size: 0.9rem;
    }
    
    .notification-text p {
        font-size: 0.8rem;
    }
} 