
/* ==========================================
   CAPILLA SAN GASPAR | CONTACTO
   ========================================== */

: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: 100px;
}

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;
}

.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;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: var(--burgundy);
    border-radius: 15px;
    font-size: 22px;
}

.brand-text,
.footer-brand span {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.brand-text strong {
    color: var(--burgundy);
    font-size: 15px;
}

.brand-text small,
.footer-brand small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.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;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding: 11px 13px;
    color: #504650;
    background: transparent;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
}

.menu > li > a:hover,
.menu > li > a.active,
.dropdown-toggle:hover {
    color: var(--burgundy);
    background: #f5eef2;
}

.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;
    font-size: 13px;
    transition: var(--transition);
}

.submenu a:hover {
    padding-left: 17px;
    color: var(--burgundy);
    background: #f8f1f5;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--burgundy);
    background: #f5eef2;
    border: 0;
    border-radius: 12px;
    font-size: 20px;
    cursor: pointer;
}

/* ========== PORTADA ========== */

.hero-contacto {
    position: relative;
    isolation: isolate;
    min-height: 465px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 82% 25%,
            rgba(216, 182, 106, 0.19),
            transparent 27%
        ),
        linear-gradient(
            120deg,
            var(--burgundy-dark),
            var(--burgundy) 58%,
            var(--burgundy-light)
        );
}

.hero-decoration {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(245, 232, 198, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.decoration-one {
    width: 520px;
    height: 520px;
    top: -170px;
    right: -120px;
}

.decoration-two {
    width: 380px;
    height: 380px;
    top: -100px;
    right: -50px;
}

.hero-content {
    padding-block: 85px 100px;
    color: var(--white);
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--burgundy-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.eyebrow {
    padding: 9px 13px;
    color: var(--gold);
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(245, 232, 198, 0.25);
    border-radius: 50px;
}

.hero-content h1 {
    max-width: 780px;
    margin-top: 25px;
    font-size: clamp(40px, 6vw, 66px);
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-content h1 span {
    display: block;
    color: var(--gold);
}

.hero-content > p {
    max-width: 570px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    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;
    cursor: pointer;
    transition: transform var(--transition),
                background var(--transition),
                box-shadow var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-gold {
    margin-top: 27px;
    color: var(--burgundy-dark);
    background: var(--gold);
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.12);
}

.btn-gold:hover {
    background: #ead19a;
}

.hero-bottom {
    position: absolute;
    right: max(20px, calc((100% - 1160px) / 2));
    bottom: 22px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 11px;
    letter-spacing: 1px;
}

.hero-bottom i {
    margin-right: 5px;
    color: var(--gold);
}

/* ========== SECCIONES GENERALES ========== */

.section {
    padding-block: 85px;
}

.section-heading {
    max-width: 650px;
    margin: 0 auto 42px;
    text-align: center;
}

.section-heading h2,
.form-intro h2 {
    margin-top: 12px;
    color: var(--burgundy);
    font-size: clamp(29px, 4vw, 38px);
    line-height: 1.25;
    letter-spacing: -1px;
}

.section-heading > p {
    max-width: 560px;
    margin: 14px auto 0;
    color: var(--muted);
    font-size: 14px;
}

/* ========== TARJETAS DE CONTACTO ========== */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 30px 25px;
    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);
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.contact-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 23px;
    color: var(--burgundy);
    background: #f6edf2;
    border-radius: 16px;
    font-size: 23px;
}

.contact-label {
    margin-bottom: 7px;
    color: var(--burgundy-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.contact-card h3 {
    color: var(--burgundy);
    font-size: 21px;
    line-height: 1.4;
}

.contact-card > p {
    flex: 1;
    margin-top: 13px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
    color: var(--burgundy);
    font-size: 12px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.contact-link i {
    font-size: 10px;
    transition: transform var(--transition);
}

.contact-link:hover {
    color: var(--burgundy-light);
}

.contact-link:hover i {
    transform: translate(3px, -2px);
}

.contact-card-featured {
    background: var(--burgundy);
    border-color: var(--burgundy);
}

.contact-card-featured .contact-icon {
    color: var(--burgundy-dark);
    background: var(--gold);
}

.contact-card-featured .contact-label {
    color: var(--gold);
}

.contact-card-featured h3,
.contact-card-featured .contact-link {
    color: var(--white);
}

.contact-card-featured > p {
    color: rgba(255, 255, 255, 0.75);
}

.contact-card-featured .contact-link:hover {
    color: var(--gold);
}

/* ========== MENSAJE PASTORAL ========== */

.pastoral-section {
    padding-block: 65px;
    background: var(--cream);
}

.pastoral-content {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: start;
    gap: 35px;
    max-width: 940px;
}

.pastoral-symbol {
    width: 100px;
    height: 100px;
    display: grid;
    place-items: center;
    color: var(--gold);
    background: var(--burgundy);
    border-radius: 28px;
    font-size: 38px;
}

.pastoral-text h2 {
    margin-top: 8px;
    color: var(--burgundy);
    font-size: clamp(27px, 4vw, 35px);
    line-height: 1.3;
}

.pastoral-text > p {
    margin-top: 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.pastoral-text .pastoral-quote {
    padding-left: 17px;
    border-left: 3px solid var(--gold);
    color: var(--burgundy);
    font-style: italic;
}

.pastoral-quote strong {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-style: normal;
}

/* ========== FORMULARIO ========== */

.form-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
    gap: 65px;
}

.form-intro {
    padding-top: 25px;
}

.form-intro h2 {
    max-width: 420px;
}

.form-intro > p {
    margin-top: 20px;
    color: var(--muted);
    font-size: 14px;
    line-height: 2;
}

.form-promise {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 28px;
}

.promise-icon {
    flex: 0 0 45px;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    color: var(--burgundy);
    background: #f6edf2;
    border-radius: 13px;
    font-size: 18px;
}

.form-promise strong {
    display: block;
    color: var(--burgundy);
    font-size: 13px;
}

.form-promise p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.form-card {
    min-width: 0;
    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: 22px;
    line-height: 1.4;
}

.form-subtitle {
    margin-top: 7px;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 12px;
}

.form-contacto {
    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: 125px;
    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;
}

.form-note {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;
    text-align: center;
}

.form-status {
    display: none;
    padding: 10px 12px;
    color: var(--burgundy);
    background: #f8f0f4;
    border-radius: 8px;
    font-size: 12px;
}

.form-status:not(:empty) {
    display: block;
}

/* ========== CIERRE ========== */

.closing-section {
    padding: 70px 20px;
    background: linear-gradient(
        120deg,
        var(--burgundy-dark),
        var(--burgundy)
    );
    text-align: center;
}

.closing-cross {
    color: var(--gold);
    font-size: 28px;
}

.closing-content h2 {
    margin-top: 15px;
    color: var(--white);
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -0.7px;
}

.closing-content p {
    max-width: 570px;
    margin: 14px auto 25px;
    color: rgba(255, 255, 255, 0.76);
    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;
    color: var(--white);
    background: #200a18;
}

.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;
    color: rgba(255, 255, 255, 0.53);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 10px;
}

.copyright span {
    display: inline-block;
    margin-left: 5px;
}

/* ========== WHATSAPP FLOTANTE ========== */

.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    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 ========== */

.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 ========== */

@media (max-width: 1000px) {
    .navbar {
        min-height: 74px;
    }

    .hamburger {
        display: grid;
        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;
    }

    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-card-featured {
        grid-column: 1 / -1;
    }

    .form-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .form-intro {
        padding-top: 0;
    }

    .form-intro h2 {
        max-width: 600px;
    }
}

/* ========== MÓVILES ========== */

@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-contacto {
        min-height: 415px;
    }

    .hero-content {
        padding-block: 70px 90px;
    }

    .hero-content h1 {
        font-size: clamp(37px, 10vw, 50px);
        letter-spacing: -1.5px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .hero-bottom {
        right: 18px;
        bottom: 16px;
    }

    .section {
        padding-block: 62px;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .section-heading h2,
    .form-intro h2 {
        font-size: 29px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-card,
    .contact-card-featured {
        grid-column: auto;
        padding: 26px;
    }

    .contact-card > p {
        flex: initial;
    }

    .pastoral-section {
        padding-block: 48px;
    }

    .pastoral-content {
        grid-template-columns: 1fr;
        gap: 23px;
    }

    .pastoral-symbol {
        width: 68px;
        height: 68px;
        border-radius: 19px;
        font-size: 27px;
    }

    .pastoral-text h2 {
        font-size: 29px;
    }

    .form-card {
        padding: 24px 19px;
    }

    .form-card h3 {
        font-size: 20px;
    }

    .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 ========== */

@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;
    }
}
