/*
Theme Name: Tierra Salvaje Theme
Theme URI: https://tu-web.com/
Author: Michel (con ayuda de Gemini)
Author URI: https://tu-web.com/
Description: Un tema rediseñado para el canal de documentales Tierra Salvaje. Moderno, oscuro y centrado en YouTube.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: custom-background, one-column, dark-mode, youtube-focused, responsive-layout
Text Domain: tierrasalvaje
*/

/* --- ESTILOS GLOBALES --- */
:root {
    --verde-naturaleza: #2ecc71;
    --verde-oscuro: #27ae60;
    --negro-fondo: #0a0a0a;
    --gris-oscuro-fondo: #121212;
    --gris-tarjeta: #1e1e1e;
    --gris-texto: #cccccc;
    --blanco: #ffffff;
    --sombra: 0 10px 20px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--negro-fondo);
    color: var(--gris-texto);
    line-height: 1.7;
}
h1, h2, h3 { font-family: 'Montserrat', sans-serif; color: var(--blanco); }
.container { max-width: 1280px; margin: auto; padding: 0 2rem; }
section { padding: 5rem 0; overflow: hidden; }

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    position: relative;
    font-weight: 700;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--verde-naturaleza);
    border-radius: 2px;
}
.btn {
    display: inline-block;
    background: var(--verde-naturaleza);
    color: var(--blanco);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.4);
}
.btn:hover {
    background-color: var(--verde-oscuro);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(46, 204, 113, 0.6);
}

/* --- 1. MENÚ DE NAVEGACIÓN --- */
.navbar {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: background-color 0.3s ease, padding 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.navbar.scrolled {
    background: rgba(18, 18, 18, 0.95);
    padding: 0.8rem 0;
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo img { height: 55px; }
.nav-links { list-style: none; display: flex; }
.nav-links li a {
    color: var(--blanco);
    text-decoration: none;
    margin: 0 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}
.nav-links li a:hover { color: var(--verde-naturaleza); }
.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--verde-naturaleza);
    transition: width 0.3s ease;
}
.nav-links li a:hover::after { width: 100%; }
.hamburger { display: none; cursor: pointer; font-size: 1.8rem; color: var(--blanco); }

/* --- 2. PRESENTACIÓN (HERO SECTION) --- */
#presentacion {
    min-height: 90vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--blanco);
    position: relative;
    padding: 0;
}
#presentacion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.5));
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 {
    font-size: 4.5rem;
    color: var(--blanco);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 15px rgba(0,0,0,0.8);
    font-weight: 800;
}
.hero-content p {
    font-size: 1.4rem;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.8);
    color: var(--gris-texto);
}

/* --- 3. ÚLTIMOS DOCUMENTALES --- */
#ultimos-documentales { background-color: var(--gris-oscuro-fondo); }
.documental-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.doc-card {
    background: var(--gris-tarjeta);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}
.doc-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.7);
}
.doc-card .thumbnail-link {
    display: block;
    position: relative;
}
.doc-card .thumbnail-link::after {
    content: '\f144'; /* Icono de Play de FontAwesome */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    font-size: 3rem;
    color: white;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.doc-card .thumbnail-link:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.doc-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.doc-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.doc-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}
.doc-card-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.center-btn { text-align: center; margin-top: 2rem;}

/* --- 4. SOBRE MÍ --- */
.sobre-mi-content { display: flex; align-items: center; gap: 4rem; }
.sobre-mi-img img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--verde-naturaleza);
    box-shadow: 0 0 25px rgba(46, 204, 113, 0.5);
}
.sobre-mi-text h2 { font-size: 2.5rem; margin-bottom: 1rem;}
.sobre-mi-text p { margin-bottom: 1.5rem; line-height: 1.8; font-size: 1.1rem; }

/* --- 5. CONTACTO --- */
#contacto { background-color: var(--gris-oscuro-fondo); }
.social-icons { display: flex; justify-content: center; gap: 2.5rem; margin-top: 3rem; flex-wrap: wrap; }
.social-icons a img {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.social-icons a:hover img {
    transform: translateY(-10px) scale(1.1);
    filter: drop-shadow(0 0 15px var(--verde-naturaleza));
}

/* --- FOOTER --- */
footer { background: #000; color: #888; text-align: center; padding: 2.5rem 0; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-quote { font-style: italic; font-size: 1.1rem; }

/* --- PÁGINA DE DOCUMENTALES (PLANTILLA) --- */
.page-header {
    text-align: center;
    padding: 10rem 0 5rem;
    background: var(--gris-oscuro-fondo);
    border-bottom: 2px solid var(--verde-naturaleza);
}
.page-header h1 { font-size: 3.5rem; color: var(--blanco); }
.page-header a { color: var(--verde-naturaleza); text-decoration: none; }
.page-content { padding-top: 4rem; padding-bottom: 4rem; }

/* --- PÁGINA INDEX.PHP (FALLBACK) --- */
.index-container { padding-top: 120px; }
.index-article {
    background-color: var(--gris-tarjeta);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--verde-naturaleza);
}
.index-article h2 a { color: var(--blanco); text-decoration: none; }
.index-article h2 a:hover { color: var(--verde-naturaleza); }

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 992px) {
    .sobre-mi-content { flex-direction: column; text-align: center; }
}
@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .hero-content h1 { font-size: 3.2rem; }
    .hero-content p { font-size: 1.2rem; }
    .section-title { font-size: 2.2rem; }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 75px; /* Ajustar según altura del header */
        left: 0;
        background: var(--negro-fondo);
        text-align: center;
    }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 1.5rem 0; }
    .hamburger { display: block; }
    .documental-grid { grid-template-columns: 1fr; }
    .social-icons a img { width: 60px; height: 60px; }
}