/* ========================================
   VIVE Puente Genil - Complete Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --gold: #d0bd82;
    --gold-dark: #b8a56a;
    --dark-blue: #1d3557;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 15px 50px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--light-gray);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Utility Classes */
.text-gold {
    color: var(--gold);
}

.text-dark {
    color: var(--dark-blue);
}

/* ========================================
   HEADER
   ======================================== */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Header Extras (Weather) */
.header-extras {
    margin-right: auto;
    padding-left: 1.5rem;
}

.weather-widget {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-blue);
    font-size: 1.1rem;
    font-weight: 700;
}

.weather-temp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-divider {
    opacity: 0.4;
    font-weight: 300;
    margin: 0 0.2rem;
}

.weather-time {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}

.weather-widget i {
    color: var(--gold-dark);
    font-size: 1.1rem;
}

/* Live Indicator */
.nav-link-live {
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-indicator {
    color: #ff0000;
    font-size: 10px;
    animation: pulse-live 1.5s infinite;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
    display: inline-block;
    vertical-align: middle;
}

@keyframes pulse-live {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.logo {
    z-index: 1001;
}

.logo img {
    height: 70px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--dark-blue);
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.nav-links li a:hover {
    color: var(--gold);
}

.nav-links li a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--dark-blue);
    margin: 6px 0;
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    height: 90vh;
    min-height: 600px;
    background-color: #1a2a3a;
    /* Fallback color */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Recorta mínimamente para rellenar, sin "supezoom" */
    object-position: center center;
    /* Asegura que el centro del vídeo sea siempre el foco */
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    /* Darker overlay for better contrast */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: 2rem;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    max-width: 200px;
    /* Logo más pequeño y estético */
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.hero-content h1 {
    font-size: 2.5rem;
    color: var(--white);
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 600;
}



/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 5rem 0;
    width: 100%;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gold);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* White Sections */
.section-white {
    background-color: var(--white);
    position: relative;
}

/* Transition gradient before gold sections */
.section-gold::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(208, 189, 130, 0.3));
    pointer-events: none;
}

/* Gold Sections */
.section-gold {
    background-color: rgba(208, 189, 130, 0.9);
    /* Gold with 90% opacity */
    position: relative;
    overflow: hidden;
}

.section-gold .section-title {
    color: var(--white);
}

.section-gold .section-title::after {
    background: var(--white);
}

/* Decorated Section (Contact) */
.section-decorated::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.section-decorated::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

/* ========================================
   BANNERS SECTION
   ======================================== */
/* ========================================
   BANNERS SECTION - SLIDERS
   ======================================== */
.simple-banners-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
}

.banner-slider-container {
    position: relative;
    width: 100%;
    max-width: 430px;
    height: 110px;
    /* Reduced height */
    min-height: 60px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.banner-slider-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
}

.banner-slide-item {
    display: none;
    /* Hide non-active slides */
    width: 100%;
    height: 110px;
    /* Match container height */
    animation: fadeIn 0.5s ease-in-out;
    justify-content: center;
    /* Center horizontally */
    align-items: center;
    /* Center vertically */
}

.banner-slide-item.active {
    display: flex;
    /* Show active slide as flex */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.banner-slide-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    /* Safety fallback */
    display: block;
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--dark-blue);
    font-size: 1rem;
    /* Smaller icon */
    width: 32px;
    /* Fixed width */
    height: 32px;
    /* Fixed height */
    padding: 0;
    /* Reset padding */
    display: flex;
    /* Perfect centering */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    z-index: 10;
    opacity: 0;
    /* Hidden by default, show on hover */
}

.banner-slider-container:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: var(--gold);
    color: var(--white);
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}


/* Advertise CTA */
.advertise-cta {
    margin-top: 2rem;
    padding: 2rem;
    border: 2px dashed var(--gold);
    border-radius: 16px;
    background: rgba(208, 189, 130, 0.1);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: var(--transition);
}

.advertise-cta:hover {
    background: rgba(208, 189, 130, 0.2);
    transform: translateY(-5px);
}

.advertise-cta i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.advertise-cta p {
    font-size: 1.2rem;
    color: var(--dark-blue);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.btn-advertise {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--dark-blue);
    color: var(--white);
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    border: 2px solid var(--dark-blue);
}

.btn-advertise:hover {
    background: transparent;
    color: var(--dark-blue);
    transform: translateY(-2px);
}

/* ========================================
   VIDEO SECTIONS
   ======================================== */
.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.video-player {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    background: #000;
}

.video-player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Videos Grid - Featured on top, others below */
.videos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Ayuntamiento Videos - 4 columns on desktop */
@media (min-width: 993px) {

    #playlist-container,
    #shorts-container,
    #historias-container {
        grid-template-columns: repeat(4, 1fr);
        max-width: 100%;
    }

    #playlist-container .video-thumb,
    #shorts-container .video-thumb,
    #historias-container .video-thumb {
        padding-bottom: 75%;
        /* Taller aspect ratio for these small cards */
    }
}

.video-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
}

.video-card.featured {
    grid-column: 1 / -1;
    /* Span both columns - full width on top */
}

.video-thumb {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-thumb iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-blue);
}

.video-info p {
    font-size: 0.95rem;
    color: var(--text-light);
}

.video-card.featured .video-info h3 {
    font-size: 1.6rem;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    position: relative;
    z-index: 1;
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-blue);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(190, 172, 55, 0.15);
}

/* Honeypot — completely hidden from humans, visible to bots */
.form-honeypot {
    overflow: hidden;
    height: 0;
    width: 0;
    max-height: 0;
    max-width: 0;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    pointer-events: none;
}

/* Anti-spam checkbox */
.form-checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    user-select: none;
    position: relative; /* Contiene el input[type=checkbox] absoluto */
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-custom {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid #ccc;
    border-radius: 5px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.checkbox-custom::after {
    content: '';
    display: block;
    width: 6px;
    height: 11px;
    border: 2.5px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg) scale(0);
    transition: transform 0.2s ease;
    margin-top: -2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--gold);
    border-color: var(--gold-dark);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-label:hover .checkbox-custom {
    border-color: var(--gold);
}

.checkbox-text {
    font-size: 0.95rem;
    color: var(--text-dark);
    font-weight: 500;
}

.privacy-link {
    color: var(--gold-dark);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.privacy-link:hover {
    color: var(--dark-blue);
}

.btn-submit {

    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(190, 172, 55, 0.4);
}

/* Form Success Message */
.form-success {
    display: none;
    text-align: center;
    padding: 2rem;
    animation: successPop 0.5s ease forwards;
}

.form-success.show {
    display: block;
}

.form-success i {
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    animation: checkBounce 0.6s ease;
}

.form-success h3 {
    color: var(--dark-blue);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.form-success p {
    color: var(--text-light);
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes checkBounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

/* ========================================
   CHURCH PARALLAX SECTION
   ======================================== */
.church-parallax {
    height: 50vh;
    min-height: 400px;
    background: url('../images/banner_inferior_1.webp') center/cover no-repeat;
    background-attachment: fixed;
    background-color: #2a2a2a;
    position: relative;
}

.pueblo-parallax {
    height: 50vh;
    min-height: 400px;
    background: url('../images/banner_medio_1.webp') center/cover no-repeat;
    background-attachment: fixed;
    background-color: #2a2a2a;
    position: relative;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background-color: #000000;
    color: var(--white);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
}

.footer-col {
    text-align: center;
}

.footer-logo {
    max-width: 150px;
    margin: 0 auto;
    /* Removed filter to show original logo colors */
}

.footer-col h4 {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gold);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.footer-links li i {
    color: var(--gold);
    width: 20px;
}

.footer-links a:hover {
    color: var(--gold);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-icons a {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--dark-blue);
    transform: scale(1.1);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   BACK TO TOP BUTTON
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark-blue);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(208, 189, 130, 0.5);
}

/* ========================================
   HERO BUTTON CTA
   ======================================== */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--dark-blue);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.btn-hero:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(208, 189, 130, 0.4);
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

.btn-hero i {
    font-size: 1.3rem;
}

/* ========================================
   WAVE SEPARATOR
   ======================================== */
.wave-separator {
    background: var(--white);
    margin-top: -2px;
}

.wave-separator svg {
    display: block;
    width: 100%;
    height: 60px;
    transform: rotate(180deg);
}

.wave-separator svg path {
    fill: var(--dark-blue);
    opacity: 0.05;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

/* ========================================
   ENHANCED HOVER EFFECTS
   ======================================== */
/* Logo Animation */
.logo img {
    transition: all 0.4s ease;
}

.logo:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(208, 189, 130, 0.6));
}

/* Video Card Enhanced Hover */
.video-card {
    position: relative;
    overflow: hidden;
}

.video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 10;
}

.video-card:hover::before {
    transform: scaleX(1);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.15),
        0 0 0 2px rgba(208, 189, 130, 0.3);
}

/* Social Icons Bounce Animation */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.social-icons a:hover {
    background: var(--gold);
    color: var(--dark-blue);
    animation: bounce 0.5s ease;
}

/* Footer Logo Animation */
.footer-logo {
    transition: all 0.4s ease;
}

.footer-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 15px rgba(208, 189, 130, 0.5));
}

/* Banner Slider Enhanced */
.banner-slider {
    position: relative;
}

.banner-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    pointer-events: none;
    box-shadow: inset 0 0 0 2px transparent;
    transition: box-shadow 0.4s ease;
}

.banner-slider:hover::after {
    box-shadow: inset 0 0 0 2px var(--gold);
}

/* Section Title Animation */
.section-title {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Card Glow Effect */
.contact-card {
    transition: all 0.4s ease;
}

.contact-card:hover {
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 30px rgba(208, 189, 130, 0.2);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */


/* Tablet */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .video-card.featured {
        grid-column: span 1;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {

    /* Mobile Navigation */
    .menu-toggle {
        display: block;
    }

    .navbar {
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        font-size: 1.3rem;
        padding: 0.5rem 1rem;
    }

    /* Mobile Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Logo */
    .logo img {
        height: 55px;
    }

    /* Hero Section - Mobile Portrait: simplified centered layout */
    .hero {
        height: 55vh;
        min-height: 300px;
        background-attachment: scroll !important;
        background-size: cover;
        align-items: center;
        justify-content: center;
        padding: 2rem 1rem;
        position: relative;
        z-index: 1;
        overflow: hidden;
    }

    .church-parallax,
    .pueblo-parallax {
        background-attachment: scroll !important;
        background-size: cover;
    }

    /* Dark overlay for text contrast */
    .hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 0;
    }

    /* Remove the second pseudo-element layer */
    .hero::after {
        display: none;
    }

    .hero-content {
        position: relative;
        z-index: 2;
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-logo {
        max-width: 180px;
        margin-bottom: 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        white-space: normal;
        color: var(--white);
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Landscape orientation */
    @media (orientation: landscape) {
        .hero {
            height: 70vh;
            min-height: auto;
        }
    }

    /* Banner containers - mobile full width */
    .banner-slider-container {
        max-width: 100%;
        border-radius: 10px;
        min-height: auto;
    }

    .banner-slide-item img {
        width: 100%;
        height: auto;
        min-height: 60px;
        object-fit: fill;
    }

    .simple-banners-grid {
        gap: 1rem;
        margin-bottom: 2rem;
        padding: 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Sections */
    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .section-title::after {
        width: 60px;
        height: 3px;
    }

    /* Banners */
    .category-title {
        font-size: 1.4rem;
    }

    .banner-slider {
        height: 220px;
        border-radius: 16px;
    }

    .banner-content {
        padding: 1.5rem;
    }

    .banner-content h3 {
        font-size: 1.4rem;
    }

    .banner-content p {
        font-size: 1rem;
    }

    /* Slider - Mobile: arrows hidden, show on tap */
    .slider-arrow {
        opacity: 0;
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        transition: opacity 0.3s ease;
    }

    .banner-slider-container.arrows-visible .slider-arrow {
        opacity: 1;
    }

    .slider-arrow.prev {
        left: 6px;
    }

    .slider-arrow.next {
        right: 6px;
    }

    .banner-slider-container {
        max-width: 100%;
        border-radius: 12px;
    }


    /* Videos - 2 per row on mobile */
    .video-wrapper {
        padding: 0 0.5rem;
        max-width: 85%;
        margin-left: auto;
        margin-right: auto;
    }

    .video-player {
        border-radius: 10px;
    }

    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .video-card {
        border-radius: 8px;
    }

    .video-card.featured {
        grid-column: span 1;
    }

    #latest-videos-container .video-card.featured {
        grid-column: 1 / -1;
    }

    .video-info {
        padding: 0.6rem;
    }

    .video-info h3 {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 0.25rem;
    }

    .video-info p {
        font-size: 0.75rem;
    }

    .video-card.featured .video-info h3 {
        font-size: 0.9rem;
    }

    /* Contact */
    .contact-card {
        padding: 1.5rem;
        margin: 0 0.5rem;
        border-radius: 16px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .btn-submit {
        padding: 1rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer {
        padding-top: 3rem;
    }

    .footer-grid {
        gap: 2rem;
        padding-bottom: 2rem;
    }

    .footer-logo {
        max-width: 120px;
    }

    .footer-col h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .logo img {
        height: 45px;
    }

    .hero {
        height: 45vh;
        min-height: 260px;
    }

    .hero-logo {
        max-width: 140px;
    }

    .hero-content h1 {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .category-title {
        font-size: 1.2rem;
    }

    .banner-slider {
        height: 180px;
        border-radius: 12px;
    }

    .banner-content h3 {
        font-size: 1.2rem;
    }

    .banner-content p {
        font-size: 0.9rem;
        display: none;
    }

    /* Slider - Small Mobile */
    .slider-arrow {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .slider-arrow.prev {
        left: 4px;
    }

    .slider-arrow.next {
        right: 4px;
    }

    .video-card {
        border-radius: 12px;
    }

    .contact-card {
        padding: 1.2rem;
    }

    .footer-links li {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.3rem;
    }

    .footer-bottom {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-top: 4px solid var(--gold);
    color: var(--dark-blue);
    padding: 1.5rem 0;
    z-index: 2000;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* ========================================
   NEWS SECTION
   ======================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.news-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(190, 172, 55, 0.3);
}

.news-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card:hover .news-img img {
    transform: scale(1.05);
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.news-date i {
    color: var(--gold);
    margin-right: 0.3rem;
}

.news-title {
    color: var(--dark-blue);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-family: 'Outfit', sans-serif;
}

.news-excerpt {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    grid-column: 1 / -1;
}

.pagination button {
    border: 1px solid #ddd;
    background: white;
    color: var(--dark-blue);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover:not(.active) {
    border-color: var(--gold);
    color: var(--gold);
}

.pagination button.active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
    cursor: default;
}

.cookie-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.btn-cookie {
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reject {
    background-color: transparent;
    color: var(--dark-blue);
    border: 1px solid var(--dark-blue);
}

.btn-reject:hover {
    background-color: var(--light-gray);
    color: var(--dark-blue);
}

.btn-accept {
    background-color: var(--dark-blue);
    color: var(--gold);
}

.btn-accept:hover {
    background-color: var(--gold);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.2rem 0;
        border-top-width: 3px;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .btn-cookie {
        width: 100%;
        max-width: 140px;
    }
}