/* =========================================================================
   RESTAURANDO FAMILIAS | IGLESIA DE DIOS DE LA 100 - STYLE SHEET
   ========================================================================= */

/* --- 1. CSS VARIABLES (Color Palette & Typography) --- */
:root {
    /* Colors - Deep Navy, Warm Gold, Soft Beige */
    --primary-color: #1a2942;
    /* Deep Navy / Charcoal blue */
    --secondary-color: #d4af37;
    /* Warm Gold */
    --secondary-dark: #b8952b;
    /* Darker Gold for hover states */
    --bg-light: #fdfcf9;
    /* Very light warm white */
    --bg-warm: #f6f4ed;
    /* Soft beige */
    --text-dark: #2d3748;
    /* Dark grey for text (softer than pure black) */
    --text-muted: #4a5568;
    /* Mid grey for secondary text */
    --white: #ffffff;
    --error: #e53e3e;

    /* Typography */
    --font-heading: 'Lora', serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing & Layout */
    --max-width: 1200px;
    --section-padding: 5rem 1rem;
    --transition-speed: 0.3s;
    --radius-lg: 12px;
    --radius-md: 8px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- 2. RESET & GLOBAL STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Base Layout Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-fluid {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--bg-light);
}

.bg-warm {
    background-color: var(--bg-warm);
}

.bg-pattern {
    background-color: var(--bg-warm);
    /* Subtle radial gradient to mimic light */
    background-image: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    color: var(--primary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.section-title.text-left {
    text-align: left;
}

.section-title.text-left::after {
    margin-left: 0;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    font-size: 1.15rem;
}

.section-subtitle.text-left {
    text-align: left;
    margin-left: 0;
}

/* --- 3. BUTTONS --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-family: var(--font-body);
    font-size: 1.05rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* --- 4. NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: all 0.4s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 0.8rem 0;
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--white);
    transition: color 0.4s ease;
}

.navbar.scrolled .logo-text {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--white);
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar.scrolled .nav-menu a {
    color: var(--text-dark);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    position: relative;
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
    background-color: var(--primary-color);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger open state */
.mobile-menu-btn.open .hamburger {
    background-color: transparent !important;
}

.mobile-menu-btn.open .hamburger::before {
    top: 0;
    transform: rotate(45deg);
    background-color: var(--primary-color) !important;
}

.mobile-menu-btn.open .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
    background-color: var(--primary-color) !important;
}

/* --- 5. HERO SECTION --- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Hero Image: New York Skyline at Night */
    background-image: url('https://images.unsplash.com/photo-1485871981521-5b1fd3805eee?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 41, 66, 0.7), rgba(26, 41, 66, 0.9));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1.5rem;
    margin-top: 60px;
    /* Offset for navbar */
}

.hero-title {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-slogan {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.hero-subtext {
    font-size: 1.15rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- 6. ACTIVITIES (SLIDER) --- */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.slide {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 0 10px;
}

@media (min-width: 768px) {
    .slide {
        flex: 0 0 50%;
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .slide {
        flex: 0 0 33.333%;
        min-width: 33.333%;
    }
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
}

.card-overlay h3 {
    color: var(--white);
    font-size: 1rem;
    margin: 0;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.activity-title {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.activity-time {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.activity-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.slider-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background-color: var(--secondary-color);
}

/* --- 7. ABOUT / BIENVENIDOS --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.bible-verse-block {
    background-color: var(--primary-color);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.bible-verse-block::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background-color: var(--secondary-color);
    opacity: 0.1;
    border-radius: 0 0 0 100%;
}

.quote-icon {
    font-size: 4rem;
    color: var(--secondary-color);
    line-height: 0;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.verse-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.verse-ref {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    text-align: right;
}

/* --- 8. MISIÓN, VISIÓN Y PASTORES --- */
.mision-pastores-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: stretch;
}

.mision-vision-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.purpose-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border-left: 4px solid var(--secondary-color);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease;
}

.purpose-card:hover {
    transform: translateY(-3px);
}

.purpose-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.purpose-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.pastores-block {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
}

.pastores-block:hover {
    transform: translateY(-3px);
}

.pastores-img {
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.pastores-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
    line-height: 1.3;
}

/* --- 9. GALERÍA --- */
.gallery-slider-container {
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    border-radius: var(--radius-lg);
}

.gallery-track {
    display: flex;
    transition: transform 0.6s ease;
}

.gallery-slide {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
}

@media (min-width: 768px) {
    .gallery-slide {
        flex: 0 0 50%;
        min-width: 50%;
    }
}

@media (min-width: 1024px) {
    .gallery-slide {
        flex: 0 0 33.333%;
        min-width: 33.333%;
    }
}

.gallery-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(26, 41, 66, 0.9));
    color: var(--white);
    padding: 2rem 1.5rem 1rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.g-btn {
    pointer-events: auto;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g-btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

/* --- 10. PETICIÓN DE ORACIÓN (FORM) --- */
.form-container {
    max-width: 700px;
    background-color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
}

.form-intro {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
}

.required {
    color: var(--error);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #cbd5e0;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-submit-btn {
    width: 100%;
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* --- 11. YOUTUBE SECTION --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background-color: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- 12. FACEBOOK SECTION --- */
.facebook-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.fb-embed-placeholder {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.fb-placeholder-box {
    background-color: #f0f2f5;
    border: 2px dashed #ccd0d5;
    border-radius: var(--radius-md);
    padding: 3rem 2rem;
    text-align: center;
    color: #606770;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fb-note {
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Social Icons specific */
.social-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 32px;
    height: 32px;
}

.pt-yt {
    color: #FF0000;
}

.pt-fb {
    color: #1877F2;
}

/* --- 13. GOOGLE MAPS --- */
.map-layout {
    display: flex;
    flex-wrap: wrap;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-info {
    flex: 1;
    min-width: 300px;
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.map-welcome {
    font-size: 1.15rem;
    margin-bottom: 2rem;
}

.church-address {
    font-style: normal;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-dark);
    border-left: 3px solid var(--secondary-color);
    padding-left: 1rem;
}

.church-address strong {
    color: var(--primary-color);
    font-size: 1.3rem;
}

.map-embed {
    flex: 2;
    min-width: 300px;
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    min-height: 450px;
    display: block;
}

/* --- 14. FOOTER --- */
.site-footer {
    background-color: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-slogan {
    color: var(--secondary-color);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.footer-subtitle {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.contact-list a {
    color: rgba(255, 255, 255, 0.8);
}

.contact-list a:hover {
    color: var(--secondary-color);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    padding: 8px;
    transition: background-color 0.3s;
    color: white;
}

.social-icons a:hover {
    background-color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.9rem;
}

/* --- 15. UTILS & ANIMATIONS --- */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- 16. RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {

    .about-grid,
    .facebook-container {
        gap: 2rem;
    }

    .mision-pastores-layout {
        gap: 2rem;
        grid-template-columns: 1fr;
    }

    .pastores-img {
        max-width: 250px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {

    /* Navbar Mobile */
    .mobile-menu-btn {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.open {
        max-height: 500px;
    }

    .nav-menu li {
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        color: var(--text-dark);
    }

    .nav-menu a::after {
        display: none;
    }

    .navbar.scrolled .logo-text {
        color: var(--primary-color);
    }

    /* Layout tweaks */
    .about-grid,
    .facebook-container {
        grid-template-columns: 1fr;
    }

    .mision-pastores-layout {
        grid-template-columns: 1fr;
    }

    .map-layout {
        flex-direction: column;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-slogan {
        font-size: 1.4rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-section {
        background-attachment: scroll;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .hide-on-mobile {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-list li {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }
}