:root {
    --color-bg: #04060b;
    --color-bg-alt: #0d111a;
    --color-bg-soft: #151b23;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-text: #f5f7fb;
    --color-muted: #96a3ba;
    --color-accent: #f0b90b;
    --color-accent-strong: #ff8a00;
    --color-ambar: #ff8a00;
    --color-whatsapp: #25d366;
    --shadow-strong: 0 30px 60px rgba(0, 0, 0, 0.65);
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: "Montserrat", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(4, 6, 11, 0.92);
    backdrop-filter: blur(12px);
    z-index: 50;
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 0;
    gap: 1rem;
}

.logo img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    border: 2px solid var(--color-border);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.6rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: linear-gradient(120deg, var(--color-accent), var(--color-accent-strong));
    color: #0d0d0d;
    box-shadow: 0 12px 24px rgba(203, 160, 90, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-nav {
    border-color: var(--color-accent);
    color: var(--color-accent);
    padding: 0.55rem 1.4rem;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 4rem;
    background: radial-gradient(circle at top left, rgba(240, 185, 11, 0.25), transparent 55%),
        url("images/portada.jpg") center/cover no-repeat;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 6, 11, 0.88);
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-tag {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.typewriter {
    font-size: 1.6rem;
    font-family: "Space Grotesk", "Montserrat", sans-serif;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--color-text);
}

.typewriter-cursor {
    display: inline-block;
    width: 3px;
    height: 1.4em;
    background: #fff;
    animation: cursorBlink 0.9s step-end infinite;
}

.hero-description {
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.hero-meta li {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.02);
}

.hero-meta span {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.25rem;
}

.hero-media {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-wrapper {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    background: #000;
    position: relative;
}

.audio-toggle {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    z-index: 5;
    backdrop-filter: blur(6px);
    transition: opacity 0.2s ease;
}

.audio-toggle.hidden {
    opacity: 0;
    pointer-events: none;
}

.audio-icon {
    position: relative;
    width: 1.6rem;
    height: 1.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.audio-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}

.audio-wave.delay {
    animation-delay: 0.3s;
}

.audio-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.video-wrapper iframe {
    width: 100%;
    min-height: 280px;
}

.section {
    padding: 4rem 0;
}

.section + .section {
    border-top: 1px solid var(--color-border);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.section-tag {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-accent);
    font-size: 0.78rem;
    margin-bottom: 0.7rem;
    display: inline-block;
}

.section-header h2 {
    font-size: 2.4rem;
    margin-bottom: 0.8rem;
}

.section-header p {
    color: var(--color-muted);
}

.pastores {
    background: var(--color-bg-alt);
}

.pastores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.pastor-card {
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-soft);
}

.pastor-photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-border);
    margin: 0 auto 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    background: #05070e;
}

.pastor-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pastor-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
    text-align: center;
}

.pastor-card p {
    color: var(--color-muted);
    margin-bottom: 1rem;
    text-align: center;
}

.pastor-card ul {
    display: grid;
    gap: 0.4rem;
    color: var(--color-muted);
}

.pastor-card i {
    color: var(--color-accent);
    margin-right: 0.5rem;
}

.reuniones {
    background: var(--color-bg);
}

.reuniones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.reunion-card {
    border: 1px solid var(--color-border);
    border-radius: 1.3rem;
    padding: 1.75rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.2));
}

.reunion-day {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    color: var(--color-muted);
    margin-bottom: 0.4rem;
}

.reunion-card h3 {
    font-size: 1.4rem;
}

.reunion-time {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    margin: 0.4rem 0;
}

.reunion-card p {
    color: var(--color-muted);
}

.reunion-note {
    text-align: center;
    color: var(--color-text);
    font-weight: 600;
    padding: 1rem 1.5rem;
    border: 1px dashed var(--color-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
}

.ministerios {
    background: var(--color-bg-alt);
}

.ministerios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.ministerio-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 1.2rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.ministerio-card h3 {
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.ministerio-card p {
    color: var(--color-muted);
}

.identidad {
    background: var(--color-bg-alt);
}

.identidad-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    align-items: center;
}

.identidad-text p {
    color: var(--color-muted);
    margin-bottom: 0.8rem;
}

.identidad-logo {
    width: 210px;
    height: 210px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    overflow: hidden;
}

.identidad-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.galeria {
    background: var(--color-bg);
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
    min-height: 260px;
    box-shadow: var(--shadow-soft);
}

.gallery-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.7s ease, opacity 0.7s ease;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-slide figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.85rem 1.2rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
    font-weight: 600;
}

.gallery-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2;
}

.gallery-slide.exit {
    opacity: 0;
    transform: translateX(-100%);
}

.gallery-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.filter-btn {
    border-radius: 999px;
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.6rem;
    background: transparent;
    color: var(--color-muted);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.filter-btn.active {
    background: var(--color-accent);
    color: #04060b;
    border-color: var(--color-accent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.4rem;
    align-items: stretch;
    position: relative;
}

.gallery-grid.is-collapsed {
    max-height: clamp(360px, 52vh, 520px);
    overflow: hidden;
}

.gallery-grid.is-collapsed::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(180deg, rgba(4, 6, 11, 0), rgba(4, 6, 11, 0.95));
    pointer-events: none;
}

.gallery-item {
    position: relative;
    border-radius: 1.15rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    cursor: pointer;
    background: #000;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.75rem 1rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.75));
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(240, 185, 11, 0.18), transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item.is-hidden {
    display: none;
}

.gallery-toggle-btn {
    margin: 1.5rem auto 0;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: var(--color-text);
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border 0.2s ease;
}

.gallery-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

.gallery-toggle-btn.hidden {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    z-index: 120;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: min(90vw, 900px);
    max-height: 80vh;
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-strong);
    object-fit: contain;
    background: #000;
}

.lightbox-caption {
    color: var(--color-muted);
    text-align: center;
    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
}

body.lightbox-open {
    overflow: hidden;
}

.calendario {
    background: var(--color-bg);
}

.calendar-admin-wrapper {
    position: relative;
    max-width: 820px;
    margin: 0 auto 1.5rem;
}

.calendar-board {
    display: grid;
    grid-template-columns: auto 720px;
    align-items: stretch;
    justify-content: center;
    position: relative;
    column-gap: 0;
    padding-bottom: 1.8rem;
}

.calendar-week-rail {
    min-width: 35px;
    position: relative;
}

.calendar-week-rail ol {
    --group-count: 5;
    --calendar-height: 560px;
    --calendar-offset: 0px;
    list-style: none;
    padding: 0;
    margin: var(--calendar-offset) 0 0;
    display: grid;
    grid-template-rows: repeat(var(--group-count), 1fr);
    height: var(--calendar-height);
}

.calendar-week-rail li {
    display: flex;
    align-items: center;
    gap: 0.18rem;
    padding: 0.1rem 0.28rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin: 0;
    height: calc(var(--calendar-height) / var(--group-count));
    box-sizing: border-box;
}

.calendar-week-rail li + li {
    border-top: none;
}

.calendar-week-rail li:first-child {
    border-top-left-radius: 0.6rem;
    border-top-right-radius: 0.6rem;
}

.calendar-week-rail li:last-child {
    border-bottom-left-radius: 0.6rem;
    border-bottom-right-radius: 0.6rem;
}

.calendar-week-rail li::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-accent);
    opacity: 0.85;
}
.calendar-heading {
    text-align: center;
    margin-bottom: 1.5rem;
}

.calendar-heading p {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.calendar-frame {
    border-radius: 1.2rem;
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #010204;
    max-width: 720px;
    width: min(100%, 720px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.calendar-frame iframe {
    width: 100%;
    min-height: 560px;
    border: 0;
    filter: saturate(0.95);
}

.calendar-manage {
    border: 1px solid var(--color-border);
    border-radius: 1.25rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
}

.calendar-admin-controls {
    position: absolute;
    right: 5.4rem;
    bottom: 0;
    display: flex;
    gap: 0.5rem;
}

.calendar-admin-toggle {
    border: 1px dashed rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.4);
    color: var(--color-text);
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border 0.2s ease;
}

.calendar-admin-toggle:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.calendar-admin-close {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text);
    border-color: rgba(255, 255, 255, 0.3);
}

.calendar-admin-close[hidden] {
    display: none;
}

.calendar-manage label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.calendar-form-controls {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.calendar-form-controls input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid var(--color-border);
    background: rgba(4, 6, 11, 0.6);
    color: var(--color-text);
}

.calendar-manage textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.8rem;
    border: 1px solid var(--color-border);
    background: rgba(4, 6, 11, 0.6);
    color: var(--color-text);
    min-height: 120px;
    resize: vertical;
    margin-bottom: 0.9rem;
}

.calendar-btn {
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.calendar-btn.primary {
    background: var(--color-accent);
    color: #04060b;
}

.calendar-btn.secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.calendar-btn.secondary:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.calendar-instructions {
    margin-top: 0.9rem;
    color: var(--color-muted);
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .calendar-form-controls {
        grid-template-columns: 1fr auto auto;
        align-items: center;
    }
}

@media (max-width: 900px) {
    .calendar-board {
        grid-template-columns: auto 1fr;
        width: min(100%, 560px);
        margin: 0 auto;
        column-gap: 0.5rem;
        padding-bottom: 1rem;
    }

    .calendar-frame {
        width: 100%;
        max-width: 520px;
        margin: 0;
    }

    .calendar-frame iframe {
        min-height: 520px;
    }

    .calendar-week-rail {
        min-width: 32px;
    }
}

@media (max-width: 600px) {
    .calendar-board {
        width: min(100%, 480px);
        grid-template-columns: auto 1fr;
        column-gap: 0.35rem;
    }

    .calendar-frame {
        max-width: 440px;
    }

    .calendar-frame iframe {
        min-height: 480px;
    }

    .calendar-week-rail {
        min-width: 28px;
    }

    .calendar-admin-controls {
        position: relative;
        right: auto;
        bottom: auto;
        justify-content: center;
        margin-top: 0.5rem;
        padding-right: 0;
    }
}

.donaciones {
    background: var(--color-bg);
}

.donaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.donacion-panel {
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    padding: 2rem;
    background: var(--color-bg-soft);
    box-shadow: var(--shadow-soft);
}

.donacion-panel h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.donacion-panel p {
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    font-size: 1rem;
    appearance: none;
    min-height: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 1px solid var(--color-accent);
}

.form-group select option {
    background: #111827;
    color: #f5f7fb;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.5;
}

.oracion-form textarea {
    min-height: 56px;
    max-height: 180px;
    resize: none;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-top: 0.75rem;
}

.bank-panel {
    background: linear-gradient(135deg, rgba(240, 185, 11, 0.12), rgba(19, 24, 36, 0.95));
}

.bank-data {
    margin-bottom: 1rem;
    display: grid;
    gap: 0.4rem;
}

.bank-data span {
    color: var(--color-muted);
    margin-right: 0.3rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
}

.faq {
    background: var(--color-bg-alt);
}

.faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 1.5rem;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    color: var(--color-accent);
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin-top: 0.8rem;
    color: var(--color-muted);
}

.contacto {
    background: var(--color-bg);
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.contacto-card {
    border: 1px solid var(--color-border);
    border-radius: 1.5rem;
    padding: 2rem;
    background: var(--color-bg-soft);
}

.contacto-info {
    display: grid;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: var(--color-muted);
}

.contacto-info i {
    color: var(--color-accent);
    margin-right: 0.6rem;
}

.contacto-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.redes-note {
    color: var(--color-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--color-muted);
    font-weight: 500;
}

.social-links i {
    margin-right: 0.4rem;
    color: var(--color-accent);
}

.map-frame {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-strong);
    min-height: 320px;
}

.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.footer {
    border-top: 1px solid var(--color-border);
    background: #020308;
    padding: 1.5rem 0;
    text-align: center;
    color: var(--color-muted);
}

.whatsapp-floating {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-whatsapp);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.45);
    z-index: 80;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.4rem;
    cursor: pointer;
}

.nav-overlay {
    display: flex;
    justify-content: flex-end;
    flex: 1;
}

@keyframes cursorBlink {
    0%, 70% {
        opacity: 1;
    }
    70%, 100% {
        opacity: 0;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.6);
        opacity: 0.9;
    }
    60% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: block;
    }

    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 8, 15, 0.92);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 90;
        padding: calc(2.2rem + env(safe-area-inset-top)) 1.5rem 2.5rem;
        backdrop-filter: blur(16px);
        overflow-y: auto;
    }

    .nav-overlay::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient(circle at top, rgba(18, 30, 52, 0.9), rgba(2, 3, 6, 0.95));
        z-index: 0;
    }

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

    .nav-overlay .main-nav {
        position: relative;
        z-index: 1;
        width: min(360px, 100%);
        background: transparent;
        border-radius: 0;
        padding: 0;
        border: none;
        display: flex;
        flex-direction: column;
        gap: 0.9rem;
        text-align: center;
        margin: 0 auto;
    }

    .nav-overlay .main-nav a:not(.btn) {
        color: #f8fbff;
        font-weight: 500;
        text-transform: none;
        font-size: 0.95rem;
        letter-spacing: 0.1em;
        padding-bottom: 0.1rem;
        border-bottom: none;
        opacity: 0.92;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    .nav-overlay .main-nav a:not(.btn):hover {
        color: var(--color-accent);
        transform: translateY(-1px);
    }

    .nav-overlay .main-nav .btn {
        margin-top: 1.3rem;
        border: 1px solid rgba(255, 255, 255, 0.45);
        color: #fff;
        background: transparent;
        padding: 0.7rem 1.7rem;
        font-size: 0.9rem;
        letter-spacing: 0.05em;
        transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
    }

    .nav-overlay .main-nav .btn:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.75);
    }

    .hero-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 4rem;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-meta {
        grid-template-columns: 1fr;
    }

    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

    .gallery-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .contacto-actions {
        flex-direction: column;
    }

    .social-links {
        flex-direction: column;
        align-items: flex-start;
    }
}

.audio-mute-line {
    width: 140%;
    height: 2px;
    background: #ff4f4f;
    position: absolute;
    transform: rotate(-30deg);
    box-shadow: 0 0 8px rgba(255, 79, 79, 0.85);
    top: 50%;
    left: -20%;
}
