* {
    margin: 0px;
    padding: 0px;
    font-weight: 200;
    font-family: helvetica neue, helvetica, arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #000;
    text-decoration: none;
}

a:hover {
    color: #000;
    text-decoration: none;
}

body, html {
    height: 100%;
    background: #fafafa;
    background-repeat: no-repeat;
    background: url(../fondo.jpg) no-repeat center center fixed;
    background-size: 100% 100%;
}

.container {
    width: 100%;
    height: 50px;
    position: fixed;
    top: 50%;
    left: 50%;
    margin-left: -25%;
    margin-top: -25px;
}

p {
    float: left;
    line-height: 50px;
    font-size: 200%;
    color: #888;
}

.scroller {
    height: 50px;
    line-height: 50px;
    float: left;
    margin-left: 5px;
    overflow: hidden;
}

.scroller span {
    display: block;
    font-size: 200%;
    color: #000;
}

.scroller .inner {
    -webkit-animation: scroll 12s 1 ease-out;
    -moz-animation: scroll 12s 1 ease-out;
    animation: scroll 12s 1 ease-out;
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.blue {
    -webkit-animation: color 0.25s 1 linear;
    -moz-animation: color 0.25s 1 linear;
    animation: color 0.25s 1 linear;
    -webkit-animation-delay: 9s;
    -moz-animation-delay: 9s;
    animation-delay: 9s;
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

.blueb {
    -webkit-animation: color 0.25s 1 linear;
    -moz-animation: color 0.25s 1 linear;
    animation: color 0.25s 1 linear;
    -webkit-animation-delay: 9.2s;
    -moz-animation-delay: 9.2s;
    animation-delay: 9.2s;
    -webkit-animation-fill-mode: forwards;
    -moz-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

@-webkit-keyframes color {
    0% { color: #000; }
    100% { color: #2c90c6; }
}

@-moz-keyframes color {
    0% { color: #000; }
    100% { color: #2c90c6; }
}

@keyframes color {
    0% { color: #000; }
    100% { color: #2c90c6; }
}

@-webkit-keyframes scroll {
    11% { margin-top: 0px; }
    22% { margin-top: 0px; }
    33% { margin-top: -50px; }
    44% { margin-top: -50px; }
    55% { margin-top: -100px; }
    66% { margin-top: -100px; }
    77% { margin-top: -150px; }
    88% { margin-top: -150px; }
    100% { margin-top: -150px; }
}

@-moz-keyframes scroll {
    11% { margin-top: 0px; }
    22% { margin-top: 0px; }
    33% { margin-top: -50px; }
    44% { margin-top: -50px; }
    55% { margin-top: -100px; }
    66% { margin-top: -100px; }
    77% { margin-top: -150px; }
    88% { margin-top: -150px; }
    100% { margin-top: -150px; }
}

@keyframes scroll {
    11% { margin-top: 0px; }
    22% { margin-top: 0px; }
    33% { margin-top: -50px; }
    44% { margin-top: -50px; }
    55% { margin-top: -100px; }
    66% { margin-top: -100px; }
    77% { margin-top: -150px; }
    88% { margin-top: -150px; }
    100% { margin-top: -150px; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .scroller span {
        font-size: 120%;
    }
    
    .container {
        width: 95%;
        margin-left: -47.5%;
    }
}

@media (max-width: 480px) {
    .scroller span {
        font-size: 100%;
    }
    
    .container {
        width: 98%;
        margin-left: -49%;
    }
    
    .scroller {
        margin-left: 2px;
    }
}

@media (max-width: 320px) {
    .scroller span {
        font-size: 80%;
    }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .scroller .inner {
        animation: none;
    }
    
    .blue, .blueb {
        animation: none;
        color: #2c90c6;
    }
}

/* Focus visible para navegación por teclado */
a:focus-visible {
    outline: 2px solid #2c90c6;
    outline-offset: 2px;
}

/* Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    width: 100%;
    height: 100%;
    background-color: rgba(50, 50, 50, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    margin: 15% auto;
    padding: 50px 40px;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2c90c6, #1a73a8, #2c90c6);
    background-size: 200% 100%;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-content h2 {
    margin-bottom: 35px;
    color: #1a1a1a;
    font-size: 1.8em;
    font-weight: 400;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.language-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin-top: 20px;
}

.lang-btn {
    background: linear-gradient(135deg, #2c90c6 0%, #1a73a8 100%);
    color: white;
    border: none;
    padding: 18px 30px;
    border-radius: 12px;
    font-size: 1.2em;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(44, 144, 198, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
    min-width: 140px;
}

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

.lang-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(44, 144, 198, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    background: linear-gradient(135deg, #1a73a8 0%, #2c90c6 100%);
}

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

.lang-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(44, 144, 198, 0.3);
}

@media (max-width: 480px) {
    .modal-content {
        margin: 25% auto;
        padding: 40px 25px;
        max-width: 350px;
    }
    
    .modal-content h2 {
        font-size: 1.5em;
        margin-bottom: 30px;
    }
    
    .language-buttons {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .lang-btn {
        padding: 16px 25px;
        font-size: 1.1em;
        min-width: 180px;
    }
}
