/*
Theme Name: Vallarta Country
Theme URI: https://paseomercialvallartacountry.com/
Author: Antigravity
Description: Tema personalizado para el Paseo Comercial Vallarta Country. Landing page de alta conversión y bilingüe.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vallarta-country
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Lora:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Colors - Matched to Logo */
    --primary: #8D6740;
    --primary-light: #A67C52;
    --secondary: #5D4037;
    --accent: #D4AF37;
    --bg-light: #FDFBF9;
    --text-dark: #3E2723;
    --text-muted: #795548;
    --white: #FFFFFF;

    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-accent: 'Lora', serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-width: 1200px;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
.accent-font {
    font-family: var(--font-accent);
    font-weight: 700;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Base Components */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2);
}

.btn-accent {
    background-color: var(--accent);
    color: var(--white);
}

.btn-accent:hover {
    background-color: #e67e22;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(243, 156, 18, 0.2);
}

/* Section Templates */
section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Staged Loading Logic */
.section-hidden {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
nav {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    display: block;
    height: 150px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
    z-index: 1200;
}

/* Lang Switch */
.lang-switch {
    position: fixed;
    top: 25px;
    right: 20px;
    z-index: 1100;
    background: var(--primary);
    padding: 5px;
    border-radius: 20px;
    display: flex;
}

.lang-switch button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px 12px;
    font-size: 0.75rem;
    cursor: pointer;
    border-radius: 15px;
    font-weight: 600;
}

.lang-switch button.active {
    background: var(--accent);
    color: var(--white);
}

@media (max-width: 768px) {
    .lang-switch {
        right: 60px;
        /* Shift left to make room for hamburger menu */
        top: 35px;
        /* Align visually with the logo/menu center */
        padding: 2px;
    }

    .lang-switch button {
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

/* Hero */
.hero {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    padding-top: 200px;
    padding-bottom: 80px;
    position: relative;
    /* Ensure consistent stacking context */
    overflow: hidden;
    /* Prevent video overflow */
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video-background iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This might not work on iframes, so we rely on size */
    border: none;
    transform: scale(1.5);
    /* Zoom to cover potential letterboxing */
    pointer-events: none;
    /* Prevent interaction */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* Dark overlay for text readability */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    /* Content above video */
    max-width: 800px;
}

.tagline {
    display: block;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 20px;
}

.presale-badge {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.4);
    animation: pulse 2s infinite;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.presale-badge:hover {
    transform: scale(1.05);
    background: #e5c14d;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* Legal Cards */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.legal-card {
    background: var(--white);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
}

.legal-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent);
}

.legal-card i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.legal-card h3 {
    margin-bottom: 15px;
    color: var(--primary);
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    height: 250px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.close-lightbox:hover {
    color: var(--accent);
}

.lightbox-nav {
    position: absolute;
    bottom: 40px;
    display: flex;
    gap: 30px;
}

.lightbox-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav button:hover {
    background: var(--accent);
    border-color: var(--accent);
}

@media (max-width: 768px) {
    .lightbox-nav {
        display: none;
    }
}

/* Generic Modal (Legal) */
.modal {
    display: none;
    position: fixed;
    z-index: 2100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    position: relative;
    text-align: center;
    animation: fadeInUp 0.4s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.modal-header-actions {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 60px;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
    pointer-events: none;
    /* Let clicks pass through except for button */
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-dark);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.8);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    pointer-events: auto;
    /* Re-enable clicks */
    transition: var(--transition-smooth);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal-scroll-wrapper {
    overflow-y: auto;
    padding: 60px 40px 40px 40px;
    /* Top padding to clear close button */
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.close-modal:hover {
    color: var(--primary);
}

#legal-modal-body i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 25px;
    display: block;
}

#legal-modal-body h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 20px;
}

#legal-modal-body div {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    text-align: justify;
}

#legal-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #eee;
    color: var(--primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav-btn.prev-btn {
    left: 15px;
}

.modal-nav-btn.next-btn {
    right: 15px;
}

@media (max-width: 768px) {
    .modal-nav-btn {
        display: none;
        /* Hide arrows on mobile, rely on swipe */
    }
}

/* Location */
/* Location */
.loc-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: stretch;
    /* Stretch to match heights */
}

.loc-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 400px;
    /* Match map height */
    overflow-y: auto;
    /* Scroll if content exceeds map height */
    padding-right: 10px;
    /* Space for scrollbar */
}

/* Custom scrollbar for loc-cards */
.loc-cards::-webkit-scrollbar {
    width: 6px;
}

.loc-cards::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 3px;
}

.loc-cards::-webkit-scrollbar-track {
    background-color: #eee;
}

.loc-card {
    background: var(--white);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    /* Center items vertically */
    gap: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: var(--transition-smooth);
    border-left: 5px solid transparent;
    flex-shrink: 0;
}

.loc-card:hover {
    transform: translateX(5px);
    border-left-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Definitive icon size fix */
.loc-icon-wrapper {
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.loc-icon-wrapper img.loc-icon-svg {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    margin: 0 !important;
}

.loc-card i {
    font-size: 1.8rem !important;
    color: var(--accent);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.loc-card-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.loc-card h4 {
    color: var(--primary);
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.2;
}

.loc-card p {
    font-size: 0.8rem;
    color: var(--accent);
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
}

.map-container {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border: 4px solid var(--white);
    height: 400px !important;
    /* Fixed height for laptop safety */
}

.map-container iframe {
    height: 100%;
    width: 100%;
    min-height: 0;
    border: none;
}

@media (max-width: 992px) {
    .loc-content {
        grid-template-columns: 1fr;
    }

    .loc-cards {
        display: grid;
        grid-template-columns: 1fr 1fr;
        height: auto;
        overflow-y: visible;
    }
}

@media (max-width: 600px) {
    .loc-cards {
        grid-template-columns: 1fr;
    }
}

.bg-dark {
    background-color: var(--primary);
    color: var(--white);
}

.bg-light {
    background-color: var(--bg-light);
}



/* Contact / Preventa Section */
/* Contact / Preventa Section */
#preventa {
    padding-top: 10px;
    padding-bottom: 40px;
}

.preventa-left-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center video vertically */
    height: 100%;
    /* Match form height */
    width: 100%;
}

.contact-header {
    text-align: center;
    /* Center text */
    margin: 0 auto 40px auto;
    /* Center block and add bottom spacing */
    max-width: 100%;
    /* Allow full width for long text */
    width: 100%;
}

.contact-header h2 {
    color: var(--white);
    text-align: center;
}

.contact-header p {
    text-align: center;
    max-width: 900px;
    /* Constrain reading width slightly */
    margin: 10px auto 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 6fr 4fr;
    /* 60% Video / 40% Form to match heights */
    /* Video height comes from width (16:9). Form height is fixed. 60% width gives video ~350-380px height which matches form. */
    gap: 30px;
    align-items: stretch;
    /* Stretch to match height of left column */
}

.preventa-video-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    /* Force 16:9 ratio */
    min-height: 0;
    /* Remove min-height */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: #000;
}

#preventa-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.preventa-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    background: transparent;
}

@media (max-width: 768px) {
    .preventa-video-wrapper {
        min-height: auto;
    }

    .contact-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    /* Ensure correct order: Text/Video first, then Form */
    .preventa-left-col {
        order: 1;
    }

    .contact-form {
        order: 2;
        height: auto;
        /* Allow natural height on mobile */
    }
}


.trigger-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 10px;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    /* Adjusted padding */
    border-radius: 8px;
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Fill the grid height */
    justify-content: center;
    /* Center inputs vertically */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#leadForm {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Consistent gap between fields */
}

.form-group {
    width: 100%;
}

input,
select {
    width: 100%;
    height: 48px;
    /* Standard comfortable height */
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.w-100 {
    width: 100%;
}

.contact-form button[type="submit"] {
    width: 100%;
    height: 50px;
    /* Fixed standard height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin-top: 10px;
    cursor: pointer;
}

footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    position: relative;
}

.admin-btn {
    background: var(--primary);
    border: none;
    color: var(--white);
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    margin-left: 20px;
}

/* Footer Menu */
/* Footer Video Removed */


.video-modal-content {
    background: transparent;
    box-shadow: none;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#modal-player {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.close-video-modal {
    position: absolute;
    top: -50px;
    right: 0;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    z-index: 100;
    background: none;
    box-shadow: none;
}

.close-video-modal:hover {
    color: var(--accent);
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-content {
    flex-direction: column;
    /* Stack menu and copyright */
    gap: 15px;
}

/* Override admin-btn margin since we are now vertical */
.admin-btn {
    margin-left: 0;
    margin-top: 10px;
}

.admin-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Responsive Extensions */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .loc-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hidden by default on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1100;
        transition: var(--transition-smooth);
    }

    .nav-links.active {
        display: flex;
        /* Show when active */
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .logo img {
        height: 80px;
    }

    .hero {
        padding-top: 150px;
    }

    .hero-btns {
        flex-direction: column;
    }
}

/* Layouts Internos - 3 Columnas */
.three-col-layout {
    display: grid;
    grid-template-columns: 250px 1fr 250px;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    grid-template-areas: "sidebar-left content sidebar-right";
}

.sidebar-left {
    grid-area: sidebar-left;
}

.content-middle {
    grid-area: content;
}

.sidebar-right {
    grid-area: sidebar-right;
}

.sidebar {
    background: #fdfdfd;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    align-self: start;
}

/* Sidebar Widgets */
.widget {
    margin-bottom: 30px;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--accent);
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}

.widget a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.widget a:hover {
    color: var(--accent);
}

/* Inner Hero */
.hero-inner {
    padding-top: 160px;
    /* Offset for fixed header */
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 0;
}

.hero-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Overlay */
}

.hero-inner .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.hero-inner h1 {
    font-family: var(--font-accent);
    color: #fff;
    font-size: 3rem;
    margin-bottom: 10px;
}

.post-meta {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 300;
}

/* Estilos de Contenido */
.entry-content {
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content p {
    margin-bottom: 20px;
}

.entry-content h2,
.entry-content h3 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.section-padding {
    padding: 60px 20px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.search-submit {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* Blog Entry */
.blog-entry {
    margin-bottom: 40px;
}

.entry-title a {
    text-decoration: none;
    color: var(--primary);
}

.entry-title a:hover {
    color: var(--accent);
}

.post-thumbnail {
    margin: 20px 0;
}

.post-thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

/* Responsive - Stack Sidebars below Content */
@media (max-width: 992px) {
    .three-col-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "sidebar-left"
            "sidebar-right";
        gap: 40px;
    }

    .sidebar {
        border: none;
        background: transparent;
        padding: 0;
    }
}

/* Hero Video Background */
.hero {
    position: relative;
    overflow: hidden;
    /* Ensure video doesn't spill out */
}

.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    /* Behind overlay and content */
    overflow: hidden;
}

.hero-video-background iframe {
    width: 100vw;
    height: 56.25vw;
    /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh;
    /* 16:9 aspect ratio */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    /* Prevent interaction */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
    z-index: -1;
    /* Behind content, in front of video */
}