
* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.gold-gradient {
    background: linear-gradient(135deg, #E3BF7A 0%, #B8862B 100%);
}

.glass-morphism {
    backdrop-filter: blur(12px);
    background: rgba(20, 20, 20, 0.7);
}

/* Header: mantener navegación responsive y menú móvil visible */

.s45-header-inner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .s45-header-inner {
        display: grid;
        grid-template-columns: auto auto auto;
        align-items: center;
        justify-content: space-between;
        column-gap: clamp(22px, 3vw, 56px);
        width: 100%;
        max-width: none !important;
        padding-left: clamp(24px, 3.5vw, 64px) !important;
        padding-right: clamp(24px, 3.5vw, 64px) !important;
    }

    .s45-header-logo {
        justify-self: start;
    }

    .s45-desktop-nav {
        justify-self: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(16px, 1.7vw, 34px) !important;
        white-space: nowrap;
    }

    .s45-header-cta {
        justify-self: end;
    }
}

.s45-menu-toggle {
    color: #f4c577;
}

.s45-menu-toggle svg,
.s45-menu-toggle svg path {
    stroke: currentColor;
}

.s45-menu-toggle:hover {
    color: #E3BF7A;
}

/* Hero cap: evita que la portada parezca infinita al hacer zoom out en desktop */
.s45-hero {
    min-height: 620px;
    height: min(100vh, 920px);
    height: min(100svh, 920px);
}

@media (max-width: 767px) {
    .s45-hero {
        min-height: 100svh;
        height: auto;
        max-height: none;
    }
}

/* Force hero CTA buttons centered on desktop in case utilities are overridden */
@media (min-width: 768px) {
    .hero-cta-row {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: clamp(12px, 1.2vw, 24px) !important;
    }
    .hero-cta-row > a {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Form validation */
.error-badge {
    display: none;
    color: #f8d7da;
    background: rgba(196, 60, 60, 0.12);
    border: 1px solid rgba(196, 60, 60, 0.25);
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.78rem;
    line-height: 1.3;
    margin-top: 0.6rem;
}

.error-badge.visible {
    display: block;
}

.input-error {
    border-color: rgba(196, 60, 60, 0.8) !important;
}


#mobile-menu .s45-mobile-nav-link.is-active {
    color: #f4c577 !important;
}

#mobile-menu .s45-mobile-nav-link:focus:not(.is-active) {
    color: #d2c5b3 !important;
}

.s45-footer-logo-link {
    width: 100%;
    max-width: 100%;
}

.s45-footer-logo {
    display: block;
    margin: 0 auto;
    background-size: contain;
    background-position: center center;
}

/* Footer */
@media (min-width: 768px) {
    #footer .grid>div {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #footer .grid>div:first-child {
        max-width: 320px;
    }
}

/* Cookie banner */
body.s45-cookie-lock {
    overflow: hidden;
}

.s45-cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 20px;
    z-index: 100;
    display: none;
    pointer-events: none;
}

.s45-cookie-banner.active {
    display: block;
}

.s45-cookie-card {
    width: min(100%, 760px);
    margin: 0 auto;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.98);
    color: #1f2933;
    border: 1px solid rgba(184, 134, 43, 0.16);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    align-items: start;
}

.s45-cookie-eyebrow {
    margin: 0 0 8px;
    font: 700 11px/1.2 Inter, system-ui, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #B8862B;
}

.s45-cookie-copy h3,
.s45-cookie-header h2,
.s45-cookie-category h3 {
    margin: 0;
    font-family: Marcellus, serif;
    color: #181818;
}

.s45-cookie-copy h3 {
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.05;
    font-weight: 650;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

.s45-cookie-copy p:not(.s45-cookie-eyebrow) {
    margin: 0;
    max-width: 680px;
    font: 400 14px/1.55 Inter, system-ui, sans-serif;
    color: #3f3f46;
}

.s45-cookie-actions,
.s45-cookie-footer {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.s45-cookie-actions {
    width: 100%;
    flex-wrap: wrap;
}

.s45-cookie-btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    min-height: 42px;
    padding: 0 17px;
    font: 700 11px/1 Inter, system-ui, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.s45-cookie-btn:hover {
    transform: translateY(-1px);
}

.s45-cookie-btn:active {
    transform: translateY(0);
}

.s45-cookie-btn:focus-visible,
.s45-cookie-close:focus-visible,
.s45-cookie-switch input:focus-visible+.s45-cookie-slider {
    outline: 3px solid rgba(184, 134, 43, 0.25);
    outline-offset: 3px;
}

.s45-cookie-btn--primary {
    color: #211600;
    background: linear-gradient(135deg, #E3BF7A 0%, #B8862B 100%);
    box-shadow: 0 10px 24px rgba(184, 134, 43, 0.25);
}

.s45-cookie-btn--outline {
    color: #27272a;
    background: #ffffff;
    border-color: #dedede;
}

.s45-cookie-btn--outline:hover {
    border-color: #B8862B;
}

.s45-cookie-btn--wide {
    min-width: 220px;
}

/* Cookie modal */
.s45-cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.s45-cookie-modal.active {
    display: flex;
}

.s45-cookie-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(4px);
}

.s45-cookie-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 900px);
    max-height: min(86vh, 780px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    color: #181818;
    border-radius: 24px;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.5);
}

.s45-cookie-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 26px 28px 22px;
    border-bottom: 1px solid #eeeeee;
}

.s45-cookie-header h2 {
    font-size: clamp(22px, 3vw, 31px);
    line-height: 1.16;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.s45-cookie-close {
    width: 42px;
    height: 42px;
    border: 1px solid #e7e7e7;
    border-radius: 999px;
    background: #fff;
    color: #4b5563;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.s45-cookie-body {
    padding: 24px 28px;
    overflow: auto;
}

.s45-cookie-intro {
    margin: 0 0 22px;
    font: 400 15px/1.7 Inter, system-ui, sans-serif;
    color: #3f3f46;
}

.s45-cookie-category {
    border: 1px solid #e9e9e9;
    background: #fafafa;
    border-radius: 18px;
    padding: 20px;
    margin-top: 14px;
}

.s45-cookie-category-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}

.s45-cookie-category-head--switch {
    align-items: center;
}

.s45-cookie-category h3 {
    font-size: 20px;
    font-weight: 650;
    margin-bottom: 6px;
}

.s45-cookie-category p {
    margin: 0;
    font: 400 14px/1.65 Inter, system-ui, sans-serif;
    color: #4b5563;
}

.s45-cookie-note {
    margin-top: 12px !important;
    color: #71717a !important;
    font-size: 12px !important;
}

.s45-cookie-always {
    flex: 0 0 auto;
    color: #0f7a3a;
    background: rgba(15, 122, 58, 0.08);
    border: 1px solid rgba(15, 122, 58, 0.15);
    border-radius: 999px;
    padding: 8px 12px;
    font: 700 12px/1 Inter, system-ui, sans-serif;
    white-space: nowrap;
}

.s45-cookie-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.s45-cookie-switch-text {
    color: #52525b;
    font: 600 13px/1 Inter, system-ui, sans-serif;
}

.s45-cookie-switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.s45-cookie-slider {
    position: relative;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    background: #d4d4d8;
    transition: background .2s ease;
}

.s45-cookie-slider::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    left: 3px;
    top: 3px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform .2s ease;
}

.s45-cookie-switch input:checked+.s45-cookie-slider {
    background: linear-gradient(135deg, #E3BF7A 0%, #B8862B 100%);
}

.s45-cookie-switch input:checked+.s45-cookie-slider::after {
    transform: translateX(22px);
}

.s45-cookie-footer {
    padding: 18px 28px 24px;
    border-top: 1px solid #eeeeee;
    background: #ffffff;
}

@media (max-width: 760px) {
    .s45-cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .s45-cookie-card {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
        border-radius: 18px;
    }

    .s45-cookie-eyebrow {
        margin-bottom: 6px;
        font-size: 10px;
    }

    .s45-cookie-copy h3 {
        font-size: 24px;
        margin-bottom: 8px;
    }

    .s45-cookie-copy p:not(.s45-cookie-eyebrow) {
        font-size: 13px;
        line-height: 1.45;
    }

    .s45-cookie-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .s45-cookie-actions .s45-cookie-btn:last-child {
        grid-column: 1 / -1;
    }

    .s45-cookie-footer {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .s45-cookie-btn,
    .s45-cookie-btn--wide {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding-left: 12px;
        padding-right: 12px;
        font-size: 10px;
    }

    .s45-cookie-modal {
        padding: 12px;
        align-items: flex-end;
    }

    .s45-cookie-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 22px;
    }

    .s45-cookie-header,
    .s45-cookie-body,
    .s45-cookie-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .s45-cookie-category-head,
    .s45-cookie-category-head--switch {
        flex-direction: column;
        align-items: flex-start;
    }

    .s45-cookie-switch {
        width: 100%;
        justify-content: space-between;
        padding-top: 4px;
    }
}

/* FAQ section */
.faq-list-wrapper {
    max-width: 860px;
    margin: 0 auto;
    max-height: min(760px, 76vh);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 12px;
}

.faq-list-wrapper::-webkit-scrollbar {
    width: 8px;
}

.faq-list-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.faq-list-wrapper::-webkit-scrollbar-thumb {
    background: rgba(184, 134, 43, 0.4);
    border-radius: 999px;
}

.faq-answer-wrapper {
    position: relative;
}

.faq-answer {
    max-height: 148px;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

/* Answers should be dark text on open */
#faq .faq-answer {
    color: #1A1A1A;
}

.faq-answer-wrapper.has-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4rem;
    background: linear-gradient(180deg, rgba(250, 247, 241, 0) 0%, rgba(250, 247, 241, 0.98) 70%, rgba(250, 247, 241, 1) 100%);
    pointer-events: none;
}

/* Questions: default black (mobile); expanded title turns gold */
#faq .faq-card h3 {
    color: #1A1A1A;
    font-weight: 700;
}

#faq .faq-card.expanded h3 {
    color: #B8862B;
}

/* Desktop: questions are gold and bold by default */
@media (min-width: 768px) {
    #faq .faq-card h3 {
        color: #B8862B;
        font-weight: 700;
    }
}

.faq-answer-wrapper.expanded .faq-answer {
    max-height: none;
}

.faq-answer-wrapper.expanded::after {
    display: none;
}

.faq-toggle-expand {
    display: none;
    margin-top: 1rem;
    padding: 0;
    background: transparent;
    border: none;
    color: #B8862B;
    font: 700 0.95rem/1.25 Inter, system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.faq-answer-wrapper.has-toggle .faq-toggle-expand {
    display: inline-flex;
}

@media (max-width: 767px) {
    #faq .faq-card {
        cursor: default;
    }

    #faq .faq-card h3 {
        cursor: pointer;
        position: relative;
        padding-right: 2rem;
    }

    #faq .faq-card h3::after {
        content: '+';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        color: #B8862B;
        font-weight: 700;
        font-size: 1.2rem;
    }

    #faq .faq-card.expanded h3::after {
        content: '−';
    }

    #faq .faq-answer-wrapper {
        display: none;
    }

    #faq .faq-card.expanded .faq-answer-wrapper {
        display: block;
    }

    #faq .faq-answer {
        max-height: none;
    }

    #faq .faq-toggle-expand {
        display: none !important;
    }
}



/* Alineación y navegación de secciones */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

section[id] {
    scroll-margin-top: 72px;
}

@media (max-width: 1023px) {
    html {
        scroll-padding-top: 56px;
    }

    section[id] {
        scroll-margin-top: 56px;
    }
}

.s45-desktop-nav{gap:2.8rem!important;}
.s45-header-inner{max-width:1500px!important;}

/* Final production refinements */
.error-badge {
    position: static !important;
    width: 100%;
    margin-top: .5rem;
    padding: .15rem 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #f1aeb5;
    font-size: .78rem;
    line-height: 1.45;
    box-shadow: none;
}
.privacy-check.error + .error-badge { display:block; }
.team-hero-image { object-position: 42% center; filter: brightness(.88) contrast(1.03); }
.team-hero-overlay {
    background:
      linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.84) 34%, rgba(0,0,0,.48) 64%, rgba(0,0,0,.58) 100%),
      linear-gradient(270deg, rgba(0,0,0,.26) 0%, transparent 28%);
}
@media (max-width: 767px) {
  .team-hero-image { object-position: 45% center; filter: brightness(.72); }
  .team-hero-overlay { background: linear-gradient(90deg, rgba(0,0,0,.94), rgba(0,0,0,.72)); }
}
.checkbox-wrapper.error + .error-badge { display:block; }
