/* --- Variables y Reset Básico --- */
:root {
    --primary-color: #e50914; /* Rojo tipo Netflix */
    --secondary-color: #2c3e50; /* Azul oscuro/Negro */
    --text-light: #ecf0f1;
    --text-dark: #34495e;
    --background-dark: #141414; /* Fondo Oscuro */
    --background-light: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: var(--background-dark);
    color: var(--text-light);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* --- Botones --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #ff0000;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

/* --- Header y Navegación --- */
header {
    background: var(--background-dark);
    color: var(--text-light);
    padding: 20px 0;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.8em;
    color: var(--primary-color);
}

header nav ul {
    list-style: none;
    display: flex;
}

header nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Sección Hero (Principal) --- */
.hero {
    background: url('https://picsum.photos/1600/900?random=1') no-repeat center center/cover; /* Imagen de fondo */
    height: 80vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before { /* Overlay oscuro para mejor legibilidad */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.hero .container {
    position: relative; /* Asegura que el contenido esté sobre el overlay */
}

.hero h2 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

/* --- Secciones Generales --- */
section {
    padding: 60px 0;
    text-align: center;
}

section h3 {
    font-size: 2.2em;
    margin-bottom: 40px;
}

/* --- Sección de Características --- */
.features {
    background-color: var(--background-dark);
    color: var(--text-light);
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    flex: 1 1 calc(25% - 20px); /* 4 items por fila en escritorio */
    background: #222;
    padding: 30px;
    border-radius: 8px;
    transition: transform 0.3s;
    min-width: 250px;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.feature-item .icon {
    font-size: 3em;
    margin-bottom: 10px;
    display: block;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.2em;
}

/* --- Sección de Precios --- */
.pricing {
    background-color: var(--background-light);
    color: var(--text-dark);
}

.pricing h3 {
    color: var(--text-dark);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.plan {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.plan.recommended {
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 25px rgba(229, 9, 20, 0.5);
    transform: scale(1.08);
}

.plan h4 {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.plan .price {
    font-size: 3em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.plan .price span {
    font-size: 0.4em;
    font-weight: 400;
    color: var(--text-dark);
}

.plan ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.plan ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    color: var(--text-dark);
}

.plan ul li:last-child {
    border-bottom: none;
}

/* --- Pie de Página (Footer) --- */
footer {
    background: var(--secondary-color);
    color: var(--text-light);
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .social-links a {
    color: var(--text-light);
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
}

footer .social-links a:hover {
    color: var(--primary-color);
}

/* --- Media Queries (Responsividad) --- */
@media (max-width: 768px) {
    .hero {
        height: 60vh;
    }
    .hero h2 {
        font-size: 2.2em;
    }

    header .container {
        flex-direction: column;
        text-align: center;
    }
    header nav {
        margin-top: 10px;
    }
    header nav ul li a {
        margin: 0 10px;
    }

    .feature-grid, .pricing-grid {
        flex-direction: column;
        align-items: center;
    }

    .feature-item {
        flex: 1 1 100%;
        max-width: 90%;
    }

    .plan {
        width: 90%;
        max-width: 400px;
    }

    footer .container {
        flex-direction: column;
        gap: 15px;
    }
}