
/* =========================================
   CAPILLA SAN GASPAR | HORARIOS
   Diseño moderno y adaptable
   ========================================= */

:root {
    --burgundy: #45152f;
    --burgundy-dark: #2c0d20;
    --burgundy-light: #6b294d;
    --gold: #d8b66a;
    --gold-light: #f5e8c6;
    --cream: #faf8f5;
    --white: #ffffff;
    --text: #302832;
    --muted: #77717a;
    --border: #eee7e9;
    --shadow: 0 16px 45px rgba(48, 20, 38, 0.09);
    --radius: 20px;
    --transition: 0.3s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

/* ========== NAVEGACIÓN ========== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid rgba(69, 21, 47, 0.08);
    box-shadow: 0 4px 20px rgba(30, 10, 25, 0.035);
    backdrop-filter: blur(14px);
}

.navbar {
    min-height: 82px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
}

.brand,
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: var(--burgundy);
    font-size: 22px;
}

.brand-text,
.footer-brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.brand-text strong {
    font-size: 15px;
    color: var(--burgundy);
    letter-spacing: -0.3px;
}

.brand-text small,
.footer-brand small {
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px;
}

.menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    list-style: none;
}

.menu > li {
    position: relative;
}

.menu > li > a,
.dropdown-toggle {
    min-height: 44px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #504650;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.menu > li > a:hover,
.dropdown-toggle:hover,
.menu > li > a.active {
    background: #f5eef2;
    color: var(--burgundy);
}

.dropdown-toggle i {
    font-size: 10px;
    transition: transform var(--transition);
}

.dropdown.open .dropdown-toggle i {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 215px;
    padding: 8px;
    list-style: none;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: var(--transition);
}

.dropdown:hover > .submenu,
.dropdown:focus-within > .submenu,
.dropdown.open > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    transition: var(--transition);
}

.submenu a:hover {
    background: #f8f1f5;
    color: var(--burgundy);
    padding-left: 17px;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    color: var(--burgundy);
    background: #f5eef2;
    border: 0;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
}

/* ========== PORTADA ========== */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 470px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(216, 182, 106, 0.19),
            transparent 28%
        ),
        linear-gradient(120deg, #2c0d20 0%, #45152f 58%, #6b294d 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(245, 232, 198, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.hero::before {
    width: 520px;
    height: 520px;
    right: -120px;
    top: -170px;
}

.hero::after {
    width: 380px;
    height: 380px;
    right: -50px;
    top: -100px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(44, 13, 32, 0.12),
        transparent 80%
    );
}

.hero-content {
    padding-block: 90px 105px;
    color: var(--white);
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.eyebrow {
    padding: 8px 13px;
    border: 1px solid rgba(245, 232, 198, 0.25);
    background: rgba(255, 255, 255, 0.055);
    border-radius: 50px;
}

.hero h1 {
    max-width: 760px;
    margin-top: 24px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.1;
    letter-spacing: -2.3px;
    font-weight: 750;
}

.hero h1 span {
    color: var(--gold);
}

.hero-content > p {
    max-width: 540px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 16px;
    line-height: 1.9;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 13px 21px;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 750;
    transition: transform var(--transition),
                background var(--transition),
                box-shadow var(--transition);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-gold {
    margin-top: 28px;
    background: var(--gold);
    color: var(--burgundy-dark);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.12);
}

.btn-gold:hover {
    background: #ead19a;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.hero-bottom {
    position: absolute;
    bottom: 22px;
    right: max(20px, calc((100% - 1160px) / 2));
    color: rgba(255, 255, 255, 0.65);
    font-size: 11px;
    letter-spacing: 1px;
}

.hero-bottom i {
    color: var(--gold);
    margin-right: 5px;
}

/* ========== SECCIONES ========== */

.section {
    padding-top: 88px;
    padding-bottom: 88px;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-label {
    color: var(--burgundy-light);
    font-size: 10px;
}

.section-heading h2,
.mass-intro h2 {
    margin-top: 12px;
    color: var(--burgundy);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.25;
    letter-spacing: -1px;
}

.section-heading > p {
    max-width: 540px;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 14px;
}

/* ========== TARJETAS DE HORARIOS ========== */

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.schedule-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(48, 20, 38, 0.035);
    transition: transform var(--transition),
                box-shadow var(--transition);
}

.schedule-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.schedule-card.featured {
    background: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.schedule-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 23px;
    color: var(--burgundy);
    background: #f7eff3;
    border-radius: 17px;
    font-size: 23px;
}

.featured .schedule-icon {
    color: var(--burgundy);
    background: var(--gold);
}

.card-tag {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--burgundy-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.featured .card-tag {
    color: var(--gold);
}

.schedule-card h3 {
    margin-bottom: 12px;
    color: var(--burgundy);
    font-size: 24px;
    line-height: 1.3;
}

.featured h3 {
    color: var(--white);
}

.schedule-card > p {
    min-height: 80px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
}

.featured > p {
    color: rgba(255, 255, 255, 0.75);
}

.schedule-time {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid var(--border);
    color: var(--burgundy);
    font-size: 15px;
}

.featured .schedule-time {
    color: var(--gold);
    border-top-color: rgba(255, 255, 255, 0.15);
}

.schedule-time i {
    font-size: 17px;
}

.schedule-note {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 9px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.schedule-note i {
    margin-top: 5px;
    color: var(--burgundy-light);
}

/* ========== ACTIVIDADES ========== */

.events-section {
    background: var(--cream);
}

.event-card {
    display: flex;
    align-items: center;
    gap: 26px;
    max-width: 920px;
    margin: 0 auto;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(48, 20, 38, 0.035);
    transition: box-shadow var(--transition),
                transform var(--transition);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.event-date {
    flex: 0 0 88px;
    width: 88px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: var(--burgundy);
    border-radius: 15px;
}

.event-date span {
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.event-date strong {
    font-size: 39px;
    line-height: 1.25;
}

.event-info {
    flex: 1;
    min-width: 0;
}

.event-category {
    color: var(--burgundy-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.event-info h3 {
    margin: 6px 0 8px;
    color: var(--burgundy);
    font-size: 20px;
    line-height: 1.4;
}

.event-info p {
    color: var(--muted);
    font-size: 13px;
}

.event-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 13px;
    color: var(--burgundy);
    font-size: 12px;
    font-weight: 700;
}

.event-decoration {
    flex: 0 0 55px;
    width: 55px;
    height: 55px;
    display: grid;
    place-items: center;
    color: var(--burgundy-light);
    background: #f8f0f4;
    border-radius: 50%;
    font-size: 22px;
}

.events-footnote {
    margin-top: 24px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

/* ========== FORMULARIO DE MISAS ========== */

.mass-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 65px;
    align-items: start;
}

.mass-intro {
    padding-top: 35px;
}

.mass-intro h2 {
    max-width: 430px;
}

.mass-intro > p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.mass-benefit {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 28px;
}

.mass-benefit > i {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--burgundy);
    background: #f6edf2;
    border-radius: 13px;
    font-size: 18px;
}

.mass-benefit span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mass-benefit strong {
    color: var(--burgundy);
    font-size: 13px;
}

.mass-benefit small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.form-card {
    padding: 34px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-card h3 {
    color: var(--burgundy);
    font-size: 23px;
}

.form-description {
    margin-top: 5px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 12px;
}

.form-misa {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.form-group label {
    color: #4b3a47;
    font-size: 12px;
    font-weight: 750;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-width: 0;
    padding: 12px 13px;
    color: var(--text);
    background: #fcfafb;
    border: 1px solid #e9e1e6;
    border-radius: 10px;
    font-size: 13px;
    transition: border-color var(--transition),
                box-shadow var(--transition);
}

.form-group input,
.form-group select {
    min-height: 47px;
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #a49ba3;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--burgundy-light);
    box-shadow: 0 0 0 3px rgba(69, 21, 47, 0.08);
}

.btn-submit {
    width: 100%;
    min-height: 50px;
    color: var(--white);
    background: #227d4e;
    border: 0;
}

.btn-submit:hover {
    background: #19683f;
}

.btn-submit i {
    font-size: 18px;
}

.privacy-note {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}

/* ========== CIERRE ========== */

.closing-section {
    position: relative;
    overflow: hidden;
    padding: 70px 20px;
    background: linear-gradient(120deg, var(--burgundy-dark), var(--burgundy));
    text-align: center;
}

.closing-content {
    position: relative;
    z-index: 1;
}

.closing-cross {
    color: var(--gold);
    font-size: 28px;
}

.closing-content h2 {
    margin-top: 15px;
    color: var(--white);
    font-size: clamp(27px, 4vw, 38px);
    letter-spacing: -0.7px;
}

.closing-content p {
    max-width: 570px;
    margin: 14px auto 25px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
}

.btn-light {
    color: var(--burgundy);
    background: var(--white);
}

.btn-light:hover {
    background: var(--gold-light);
}

/* ========== PIE DE PÁGINA ========== */

.footer {
    padding: 34px 0 22px;
    background: #200a18;
    color: var(--white);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-brand {
    color: var(--white);
}

.footer-brand > i {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    font-size: 20px;
}

.footer-brand strong {
    font-size: 14px;
}

.footer-brand small {
    color: rgba(255, 255, 255, 0.55);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--burgundy-dark);
    background: var(--gold);
    transform: translateY(-3px);
}

.copyright {
    width: 100%;
    margin-top: 25px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.53);
    font-size: 10px;
}

.copyright span {
    display: inline-block;
    margin-left: 5px;
}

/* ========== WHATSAPP FLOTANTE ========== */

.whatsapp-float {
    position: fixed;
    z-index: 900;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 17px;
    color: var(--white);
    background: #16894b;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(22, 137, 75, 0.28);
    font-size: 12px;
    font-weight: 750;
    transition: transform var(--transition),
                box-shadow var(--transition);
}

.whatsapp-float i {
    font-size: 23px;
}

.whatsapp-float:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(22, 137, 75, 0.38);
}

/* ========== ANIMACIONES DE ENTRADA ========== */

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-enabled .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== TABLET Y MÓVILES ========== */

@media (max-width: 1000px) {
    .navbar {
        min-height: 74px;
    }

    .hamburger {
        display: grid;
        place-items: center;
        flex-shrink: 0;
    }

    .menu {
        position: fixed;
        top: 74px;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 999;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 5px;
        padding: 20px;
        overflow-y: auto;
        background: var(--white);
        opacity: 0;
        visibility: hidden;
        transform: translateX(15px);
        transition: opacity var(--transition),
                    transform var(--transition),
                    visibility var(--transition);
    }

    .menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .menu > li > a,
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 14px 16px;
        font-size: 15px;
    }

    .submenu {
        position: static;
        display: none;
        min-width: 0;
        margin: 0 0 8px 12px;
        padding: 6px;
        border: 0;
        border-left: 2px solid var(--gold);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .dropdown.open > .submenu {
        display: block;
    }

    .dropdown:hover > .submenu {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .mass-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .mass-intro {
        padding-top: 0;
    }

    .mass-intro h2 {
        max-width: 600px;
    }
}

@media (max-width: 650px) {
    .container {
        width: min(100% - 30px, 1160px);
    }

    .brand-icon {
        width: 41px;
        height: 41px;
        border-radius: 12px;
        font-size: 19px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text small {
        font-size: 10px;
    }

    .hero {
        min-height: 420px;
    }

    .hero-content {
        padding-block: 75px 95px;
    }

    .hero h1 {
        font-size: clamp(37px, 10vw, 52px);
        letter-spacing: -1.6px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .hero-bottom {
        right: 18px;
        bottom: 16px;
    }

    .section {
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2,
    .mass-intro h2 {
        font-size: 29px;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .schedule-card {
        padding: 27px;
    }

    .schedule-card > p {
        min-height: 0;
    }

    .schedule-note {
        text-align: left;
    }

    .event-card {
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .event-date {
        flex-basis: 65px;
        width: 65px;
        height: 82px;
        border-radius: 12px;
    }

    .event-date strong {
        font-size: 31px;
    }

    .event-date span {
        font-size: 9px;
    }

    .event-info h3 {
        font-size: 17px;
    }

    .event-info p {
        font-size: 12px;
    }

    .event-detail {
        align-items: flex-start;
        font-size: 11px;
    }

    .event-decoration {
        display: none;
    }

    .form-card {
        padding: 24px 19px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .closing-section {
        padding: 55px 15px;
    }

    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 53px;
        height: 53px;
        justify-content: center;
        padding: 0;
        border-radius: 50%;
    }

    .whatsapp-float i {
        font-size: 27px;
    }

    .whatsapp-float span {
        display: none;
    }

    .copyright {
        line-height: 2;
    }

    .copyright span {
        display: block;
        margin: 0;
    }
}

/* Accesibilidad: reducir movimiento si el usuario lo solicita */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .js-enabled .reveal {
        opacity: 1;
        transform: none;
    }
}
