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

body {
    font-family: 'Poppins', sans-serif;
    background: url('/static/image.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    padding: 0.5rem;
    line-height: 1.4;
    color: #fff;
    overflow-x: hidden;
}



body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    z-index: -1;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 10;
}

/* Responsive para container */
@media (max-width: 768px) {
    .container {
        max-width: 95%;
        padding: 0.8rem;
        margin: 0.5rem auto;
    }
}

@media (max-width: 480px) {
    .container {
        max-width: 98%;
        padding: 0.6rem;
        margin: 0.3rem auto;
        border-radius: 15px;
    }
}


.main-header {
    text-align: center;
    margin-bottom: 1rem;
}

h1 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 2px;
    text-align: center;
}

/* Responsive para h1 */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
    }
}

.intro-section {
    max-width: 600px;
    margin: 0.5rem auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.intro-section h2 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

/* Responsive para h2 */
@media (max-width: 768px) {
    .intro-section h2 {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .intro-section h2 {
        font-size: 0.9rem;
    }
}

.instructions {
    text-align: left;
    padding: 0.8rem;
}

.instructions h3 {
    color: #fff;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    text-align: center;
}

/* Responsive para h3 */
@media (max-width: 768px) {
    .instructions h3 {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .instructions h3 {
        font-size: 0.8rem;
    }
}

.instructions ol {
    padding-left: 1.2rem;
}

.instructions li {
    margin-bottom: 0.4rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
}

/* Responsive para li */
@media (max-width: 768px) {
    .instructions li {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }
}

@media (max-width: 480px) {
    .instructions li {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }
}

/* Botones de servicios */
.service-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

/* Responsive para service-buttons */
@media (max-width: 768px) {
    .service-buttons {
        gap: 0.8rem;
        margin: 0.8rem 0;
    }
}

@media (max-width: 480px) {
    .service-buttons {
        gap: 0.5rem;
        margin: 0.6rem 0;
        justify-content: space-around;
    }
}

.service-buttons button {
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 120px;
}

/* Responsive para service-buttons button */
@media (max-width: 768px) {
    .service-buttons button {
        width: 100px;
        padding: 0.6rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .service-buttons button {
        width: 80px;
        padding: 0.5rem;
        font-size: 0.7rem;
        gap: 0.3rem;
    }
}


.service-icon {
    font-size: 1.5rem;
}

.service-name {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Efectos hover para los botones de servicios */
.service-buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.button-netflix:hover {
    background: linear-gradient(135deg, #F40612 0%, #C40610 100%);
}

.button-disney:hover {
    background: linear-gradient(135deg, #1A4FD8 0%, #113CCF 100%);
}

.button-amazon:hover {
    background: linear-gradient(135deg, #00B8F0 0%, #00A8E1 100%);
}

.button-max:hover {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
}

.button-paramount:hover {
    background: linear-gradient(135deg, #004499 0%, #8c9196 100%);
}

.button-universal:hover {
    background: linear-gradient(135deg, #F7931E 0%, #ffe135 100%);
}

/* Estado selected para los botones */
.service-buttons button.selected {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.button-netflix {
    background: linear-gradient(135deg, #E50914 0%, #B20710 100%);
    color: white;
}

.button-disney {
    background: linear-gradient(135deg, #113CCF 0%, #0E2B8C 100%);
    color: white;
}

.button-amazon {
    background: linear-gradient(135deg, #00A8E1 0%, #0077A2 100%);
    color: white;
}

.button-max {
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    color: white;
}

.button-paramount {
    background: linear-gradient(135deg, #0066CC 0%, #004499 100%);
    color: white;
}

.button-universal {
    background: linear-gradient(135deg, #f7f5f4 0%, #0d0d0e 100%);
    color: white;
}

.button-chrunchiroll {
    background: linear-gradient(135deg, #F97316 0%, #EA580C 100%);
    color: white;
    width: 100%;
    max-width: 220px;
    align-self: center;
}

.button-chrunchiroll:hover {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
}

.button-appletv {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.button-appletv:hover {
    background: linear-gradient(135deg, #424245 0%, #2d2d2d 100%);
}

/* Formulario */
.form-container {
    max-width: 450px;
    margin: 0 auto;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
}

/* Responsive para form-container */
@media (max-width: 768px) {
    .form-container {
        max-width: 90%;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        max-width: 95%;
        padding: 0.6rem;
        border-radius: 12px;
    }
}


#serviceTitle {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}

/* Responsive para serviceTitle */
@media (max-width: 768px) {
    #serviceTitle {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    #serviceTitle {
        font-size: 1rem;
    }
}

#serviceTitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.8rem;
    width: 100%;
}

label {
    color: #fff;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

/* Responsive para labels */
@media (max-width: 768px) {
    label {
        font-size: 0.8rem;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 480px) {
    label {
        font-size: 0.75rem;
        letter-spacing: 0.2px;
    }
}

input, select {
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #fff;
    width: 100%;
}

/* Responsive para inputs y selects */
@media (max-width: 768px) {
    input, select {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    input, select {
        padding: 0.4rem;
        font-size: 0.8rem;
        border-radius: 6px;
    }
}

input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

input:focus, select:focus {
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 1em;
    padding-right: 40px;
}

select::-ms-expand {
    display: none;
}

.search-button {
    background: linear-gradient(45deg, #00a1ff, #00ff8f);
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    min-width: 150px;
    margin: 0.8rem auto 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Responsive para search-button */
@media (max-width: 768px) {
    .search-button {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
        min-width: 130px;
    }
}

@media (max-width: 480px) {
    .search-button {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
        min-width: 120px;
        border-radius: 6px;
    }
}


.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 161, 255, 0.5);
}

.search-button .button-icon {
    font-size: 1.2rem;
}

.resultado {
    position: relative;
    margin: 1rem 0 0 0;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-height: 60px;
}

/* Responsive para resultado */
@media (max-width: 768px) {
    .resultado {
        padding: 0.6rem;
        font-size: 0.85rem;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .resultado {
        padding: 0.5rem;
        font-size: 0.8rem;
        min-height: 45px;
        border-radius: 6px;
    }
}

.resultado-texto {
    flex-grow: 1;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: #fff;
}

/* Responsive para resultado-texto */
@media (max-width: 768px) {
    .resultado-texto {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .resultado-texto {
        font-size: 0.8rem;
    }
}

.copy-button {
    background: linear-gradient(45deg, #00a1ff, #00ff8f);
    color: white;
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    align-self: center;
    margin-top: 0.8rem;
    min-width: 120px;
}

.copy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(0, 161, 255, 0.4);
    background: linear-gradient(45deg, #00b8ff, #00ffa3);
}

.copy-button:active {
    transform: translateY(0);
    box-shadow: 0 0 8px rgba(0, 161, 255, 0.3);
}

.copy-button i {
    font-size: 1rem;
}

.copy-success {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 255, 0, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.copy-success.show {
    opacity: 1;
}

.copy-error {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 0, 0, 0.2);
    color: #ff6b6b;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 0, 0, 0.3);
}

/* Eliminar los estilos del contenedor fijo */
.resultado-container {
    display: none;
}

/* Efectos de brillo */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); }
    100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.3); }
}

/* Responsive - Tablets */
@media (max-width: 768px) {
    body {
        padding: 0.3rem;
    }

    .container {
        padding: 0.8rem;
        margin: 0.5rem;
    }

    h1 {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    .intro-section {
        padding: 0.8rem;
        margin: 0.3rem auto;
    }

    .intro-section h2 {
        font-size: 1.1rem;
    }

    .instructions li {
        font-size: 0.85rem;
        text-align: left;
    }

    #serviceTitle {
        font-size: 1.2rem;
    }

    .service-buttons {
        gap: 0.8rem;
    }

    .service-buttons button {
        width: 110px;
        padding: 0.6rem;
    }

    .service-icon {
        font-size: 1.3rem;
    }

    .service-name {
        font-size: 0.75rem;
    }

    .form-container {
        padding: 0.8rem;
        margin: 0.5rem auto;
    }

    .search-form {
        gap: 1rem;
    }

    .search-button {
        min-width: 120px;
        padding: 0.5rem 1.2rem;
    }
}

/* Responsive - Móviles pequeños */
@media (max-width: 480px) {
    body {
        padding: 0.2rem;
    }

    .container {
        padding: 0.6rem;
        margin: 0.2rem;
        border-radius: 15px;
    }

    h1 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .intro-section {
        padding: 0.6rem;
        margin: 0.2rem auto;
    }

    .intro-section h2 {
        font-size: 1rem;
        margin-bottom: 0.6rem;
    }

    .instructions {
        padding: 0.6rem;
    }

    .instructions h3 {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }

    .instructions li {
        font-size: 0.8rem;
        margin-bottom: 0.3rem;
    }

    .service-buttons {
        gap: 0.6rem;
        margin: 0.8rem 0;
    }

    .service-buttons button {
        width: 100px;
        padding: 0.5rem;
        border-radius: 10px;
    }

    .service-icon {
        font-size: 1.2rem;
    }

    .service-name {
        font-size: 0.7rem;
        letter-spacing: 0.5px;
    }

    .form-container {
        padding: 0.6rem;
        margin: 0.3rem auto;
        border-radius: 12px;
    }

    #serviceTitle {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    #serviceTitle::after {
        width: 120px;
    }

    .search-form {
        gap: 0.8rem;
    }

    .form-group {
        margin-bottom: 0.6rem;
    }

    label {
        font-size: 0.8rem;
    }

    input, select {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .search-button {
        min-width: 100px;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .resultado {
        padding: 0.6rem;
        font-size: 0.85rem;
        margin: 0.8rem 0 0 0;
    }

    .copy-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}

/* Responsive - Móviles muy pequeños */
@media (max-width: 360px) {
    .container {
        padding: 0.5rem;
        margin: 0.1rem;
    }

    h1 {
        font-size: 1.2rem;
    }

    .service-buttons button {
        width: 90px;
        padding: 0.4rem;
    }

    .service-icon {
        font-size: 1.1rem;
    }

    .service-name {
        font-size: 0.65rem;
    }

    .form-container {
        padding: 0.5rem;
    }

    #serviceTitle {
        font-size: 1rem;
    }

    input, select {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .search-button {
        min-width: 90px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        padding: 0.2rem;
    }

    .container {
        padding: 0.5rem;
    }

    h1 {
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }

    .intro-section {
        padding: 0.4rem;
        margin: 0.2rem auto;
    }

    .service-buttons {
        margin: 0.5rem 0;
    }

    .service-buttons button {
        width: 100px;
        padding: 0.4rem;
    }

    .form-container {
        padding: 0.5rem;
    }
}

/* Animación de gradiente multicolor */
