/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
a { text-decoration: none; color: inherit; }

/* Header */
.main-header {
    background: var(--nav-bg);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}
.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}
.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}
.nav-links a:hover {
    color: var(--color-secondary);
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
}

/* Hero */
.hero {
    background-color: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }
.btn-primary {
    background-color: var(--color-secondary);
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    display: inline-block;
    transition: transform 0.2s, background-color 0.3s;
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }

/* Secciones Generales */
.section { padding: 80px 0; }
.section:nth-child(even) { background-color: var(--card-bg); }
.section-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 40px;
    font-size: 2.2rem;
}

/* Versículos */
.verse-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    margin: -40px auto 40px auto;
    max-width: 800px;
    position: relative;
    transition: opacity 0.5s ease-in-out, background-color 0.3s;
}
.verse-quote { font-size: 1.5rem; font-style: italic; color: var(--color-text); margin-bottom: 10px; }
.verse-ref { font-weight: bold; color: var(--color-secondary); }

/* Ministerio */
.ministerio-box { text-align: center; max-width: 800px; margin: 0 auto; }
.ministerio-box p { font-size: 1.1rem; }

/* Grid Tarjetas (Blog/Tienda) */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}
.card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, background-color 0.3s;
}
.card:hover { transform: translateY(-5px); }
.card-img { width: 100%; height: 200px; object-fit: cover; }
.product-img { width: 100%; height: 280px; object-fit: contain; padding: 15px; background: transparent; }
.card-body { padding: 20px; }
.card-title { color: var(--color-primary); margin-bottom: 10px; }

/* Footer */
.main-footer { background: var(--footer-bg); color: #fff; padding: 60px 0 20px 0; transition: background-color 0.3s; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer-section h3 { color: var(--color-secondary); margin-bottom: 20px; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.social-links a { margin-right: 15px; color: #aaa; transition: color 0.3s; }
.social-links a:hover { color: #fff; }
.footer-bottom { text-align: center; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #aaa; }

/* WhatsApp Float */
@keyframes pulseWa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102, 0); }
}
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    padding: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 1000;
    transition: transform 0.3s;
    animation: pulseWa 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.05); animation: none; box-shadow: 0 4px 20px rgba(37,211,102,0.6); }
.wa-text { margin-right: 10px; font-weight: bold; display: none; }
.whatsapp-float:hover .wa-text { display: block; }

/* Image Slider */
.image-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 10px;
    min-height: 200px;
}
.image-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.image-slider .slide:first-child {
    position: relative;
    opacity: 1;
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.2rem;
    border-radius: 50%;
    z-index: 10;
    transition: background 0.3s;
}
.slider-btn:hover { background: rgba(0, 0, 0, 0.8); }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 75vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: var(--nav-bg);
        padding: 20px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero h1 { font-size: 2rem; }
    .main-header {
        padding-top: env(safe-area-inset-top, 25px);
    }
    .logo a {
        font-size: 1.1rem;
        word-break: break-word;
        white-space: normal;
    }
}
