/* --- Reseteo básico y configuración global --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #141414;
    color: #f5f5f5;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
}

/* --- Encabezado --- */
.main-header {
    background-color: #000;
    padding: 1.5rem 2rem;
    text-align: center;
    border-bottom: 3px solid #52b54b; /* Verde Emby */
}

.main-header h1 {
    color: #52b54b;
    font-weight: 700;
    font-size: 2.5rem;
}

/* --- Contenedor principal --- */
.container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* --- Mensaje de Bienvenida --- */
.welcome-message {
    text-align: center;
    padding: 2rem;
    background-color: #1f1f1f;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.welcome-message h2 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.welcome-message p {
    font-size: 1.2rem;
    color: #aaa;
    font-weight: 300;
}

/* --- Títulos de Sección (ej. "Novedades") --- */
.movie-grid h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #333;
}

/* --- Rejilla de Películas --- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

/* --- Tarjeta de Película Individual --- */
.movie-card {
    background-color: #282828;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.movie-card img {
    width: 100%;
    display: block;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background-color: #4a4a4a;
}

.movie-card h3 {
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    padding: 1rem 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Botón de Call-to-Action (CTA) - Estilo GRANDE --- */
.cta-button {
    display: inline-block;
    margin-top: 1.5rem;
    
    padding: 16px 30px; /* Más padding (más alto) */
    font-size: 1.2rem;  /* Fuente más grande */
    font-weight: 700;
    text-align: center;
    
    background-color: #52b54b;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    border: none; /* Quita el borde de <button> */
    cursor: pointer;
    
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #46a040;
}

.cta-button:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(82, 181, 75, 0.3);
}

/* --- Sección de Formularios --- */
.forms-section {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas */
    gap: 2rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid #333;
}

.form-container {
    background-color: #1f1f1f;
    padding: 2rem;
    border-radius: 8px;
}

.form-container h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #52b54b;
}

.form-container p {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #ddd;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 12px;
    background-color: #333;
    border: 2px solid #444;
    border-radius: 5px;
    color: #f5f5f5;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #52b54b;
    box-shadow: 0 0 10px rgba(82, 181, 75, 0.3);
}

textarea {
    resize: vertical;
}

.form-container .cta-button {
    width: 100%; /* Botón del formulario al 100% */
    margin-top: 0.5rem;
}

/* --- Pie de Página --- */
footer {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background-color: #0a0a0a;
    color: #666;
    font-size: 0.9rem;
}

/* --- Ajuste para pantallas pequeñas (Móviles) --- */
@media (max-width: 768px) {
    .forms-section {
        grid-template-columns: 1fr; /* Una sola columna en móviles */
    }
    
    .main-header h1 {
        font-size: 2rem; /* Título más pequeño en móviles */
    }

    .container {
        margin-top: 1rem;
        padding: 0 1rem; /* Menos padding lateral en móviles */
    }
}
/* --- Sección de Ayuda TV --- */
.help-section {
    margin: 60px 0;
    padding: 0 20px;
}

.help-section h2 {
    color: var(--text-color);
    margin-bottom: 10px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.help-section > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    padding-left: 20px;
}

.help-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

/* Lista de pasos */
.help-steps {
    flex: 2;
    min-width: 300px;
}

.help-steps ol {
    counter-reset: steps-counter;
    list-style: none;
    padding: 0;
}

.help-steps li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

.help-steps li strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.help-steps li::before {
    counter-increment: steps-counter;
    content: counter(steps-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background-color: #333;
    color: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    font-weight: bold;
    border: 2px solid var(--primary-color);
}

/* Tarjeta de Datos del Servidor */
.server-info-card {
    flex: 1;
    min-width: 280px;
    background: linear-gradient(145deg, #1f1f1f, #252525);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.server-info-card h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.info-row .label {
    color: var(--text-secondary);
}

.info-row .value {
    color: #fff;
    font-family: monospace; /* Fuente tipo código para que se lea claro */
    font-size: 1.1rem;
    background: #000;
    padding: 2px 8px;
    border-radius: 4px;
}

.alert-box {
    margin-top: 20px;
    background-color: rgba(229, 9, 20, 0.1); /* Fondo rojo muy suave */
    padding: 10px;
    border-radius: 6px;
    color: #ffcccb;
    border: 1px solid rgba(229, 9, 20, 0.3);
}

/* Ajuste Responsive */
@media (max-width: 768px) {
    .help-container {
        flex-direction: column-reverse; /* En móvil pone la tarjeta arriba o abajo según prefieras */
    }
    
    .server-info-card {
        width: 100%;
    }
}
