:root {
    --bg-main: #080d1a;
    --bg-surface: #0f172a;
    --bg-surface-alt: #131d31;
    --primary: #38bdf8;
    --primary-hover: #0284c7;
    --accent: #fbbf24;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border: #1e293b;
    --border-hover: #334155;
    --radius-full: 9999px;
    --radius: 12px;
    --transition: all 0.2s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* NAVBAR ALINEADA A LA IZQUIERDA */
.navbar {
    background: #0b1325;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 65px;
    display: flex;
    align-items: center;
    width: 100%;
}

.nav-container {
    width: 100%;
    max-width: 100%;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-right: auto;
}

.brand strong {
    color: var(--text-main);
}

.cross-icon {
    font-size: 1.35rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-destaque {
    background: rgba(56, 189, 248, 0.15) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
}

.btn-destaque:hover {
    background: var(--primary) !important;
    color: var(--bg-main) !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* BOTONES GLOBALES */
.btn-primary {
    background: var(--primary);
    color: var(--bg-main);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.btn-secondary {
    background: var(--bg-surface-alt);
    color: var(--text-main);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.w-100 {
    width: 100%;
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-decoration: underline;
}

/* FORMULARIOS & CAMPOS */
.campo {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
    text-align: left;
}

.campo label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.campo input, .campo textarea, .campo select {
    background: rgba(11, 17, 32, 0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.campo input:focus, .campo textarea:focus, .campo select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

/* PÁGINA DE LOGIN & REGISTRO */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.brand-link {
    text-decoration: none;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 800;
    display: inline-block;
    margin-bottom: 1.2rem;
}

.auth-sub {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.auth-switch {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* SECCIONES & ESTRUCTURAS */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.secao {
    padding: 5rem 0;
}

.bg-alt {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.secao-cabecalho {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3rem;
}

.subtitulo-secao {
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.titulo-secao {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.desc-secao {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* HERO SECTION */
.hero {
    position: relative;
    padding: 7rem 1.5rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    background: radial-gradient(circle at 50% 20%, #152747 0%, var(--bg-main) 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.tag-versiculo {
    display: inline-block;
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.25);
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* BUSCADORES Y FILTROS */
.filtro-busca {
    max-width: 600px;
    margin: 0 auto 2rem;
    display: flex;
    gap: 0.5rem;
}

.filtro-busca input {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 0.85rem 1.5rem;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
}

.filtro-busca input:focus {
    border-color: var(--primary);
}

.btn-buscar {
    background: var(--primary);
    color: var(--bg-main);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    cursor: pointer;
}

.tags-filtro-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.tag-filtro {
    background: var(--bg-surface);
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tag-filtro.ativa, .tag-filtro:hover {
    background: rgba(56, 189, 248, 0.15);
    color: var(--primary);
    border-color: var(--primary);
}

/* CARDS DE IGLESIAS */
.grid-igrejas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.card-igreja {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transition: var(--transition);
}

.card-igreja:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.card-igreja-tag {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    align-self: flex-start;
}

.card-igreja-titulo {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.card-igreja-info {
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* MURO DE ORACIÓN */
.oracao-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2.5rem;
}

.form-oracao-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: fit-content;
}

.muro-pedidos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 520px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.card-pedido {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.5rem;
}

.card-pedido-autor {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.card-pedido-texto {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-style: italic;
}

/* ACORDEÓN FAQ */
.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .icon-toggle {
    transform: rotate(45deg);
}

/* RODAPÉ */
.footer {
    background: #060913;
    border-top: 1px solid var(--border);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.card-loader {
    text-align: center;
    padding: 2.5rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .hero-title {
        font-size: 1.95rem;
    }
    .oracao-wrapper {
        grid-template-columns: 1fr;
    }
}