:root {
    color-scheme: light;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #F0DFA1;
    color: #1B1B1B;
}
html {
    scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body {
    margin: 0;
    background: #F0DFA1;
    min-height: 100vh;
    color: #3E3927;
}
a { text-decoration: none; color: inherit; }
.container { width: min(1320px, calc(100% - 1rem)); margin: 0 auto; }
.container {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #A39F76;
    border-radius: 2.4rem;
    padding: 1.25rem 1.3rem 2rem;
    margin: 1.1rem auto 1.4rem;
    box-shadow: 0 30px 80px rgba(27,27,27,.16);
    text-align: center;
}
.container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('/img/flor-del-ceibo-logo.png') center 48% / min(78vw, 760px) no-repeat;
    opacity: .07;
    pointer-events: none;
    z-index: 0;
}
.container > * {
    position: relative;
    z-index: 1;
}
header { padding: 1rem 0; }
.site-header {
    position: relative;
    z-index: 30;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-direction: column;
}
.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 144px;
    height: 144px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,.68);
    border: 1px solid rgba(27,27,27,.12);
    box-shadow: 0 12px 30px rgba(27,27,27,.08);
}
.brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.nav-links {
    position: relative;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}
.nav-links a,
.nav-links button {
    border: 1px solid rgba(27,27,27,.15);
    background: rgba(255,255,255,.52);
    border-radius: .8rem;
    padding: .6rem 1rem;
    cursor: pointer;
    font-size: .95rem;
    font-weight: 700;
    color: #433d28;
    transition: background .2s ease, transform .2s ease;
}
.nav-links a:hover,
.nav-links button:hover {
    background: rgba(255,255,255,.82);
    transform: translateY(-1px);
}
.button,
.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .9rem 1.4rem;
    border: 1px solid rgba(27,27,27,.12);
    background: rgba(27,27,27,.05);
    color: #433d28;
    transition: transform .2s ease, background .2s ease;
}
.button-primary {
    background: #1B1B1B;
    color: #F7F4E9;
}
.button:hover,
.button-primary:hover {
    transform: translateY(-1px);
    background: rgba(27,27,27,.1);
}
.hero {
    padding: 3rem 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
    align-items: center;
    justify-items: center;
}
.hero-copy {
    max-width: 620px;
    text-align: center;
}
.hero-copy .eyebrow {
    text-transform: uppercase;
    font-size: .85rem;
    letter-spacing: .2em;
    margin-bottom: 1rem;
    color: #5b553d;
}
.hero-copy h1 {
    font-size: clamp(2.75rem, 5vw, 4.5rem);
    line-height: 1.02;
    margin: 0 0 1rem;
}
.hero-copy p {
    font-size: 1.05rem;
    max-width: 38rem;
    line-height: 1.8;
    margin: 0 0 1.8rem;
    color: #4f4934;
}
.hero-visual {
    min-height: 420px;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(27,27,27,.05));
    box-shadow: 0 40px 120px rgba(27,27,27,.08);
    display: grid;
    place-items: center;
    padding: 2rem;
    color: #423d29;
    text-align: center;
}
.hero-visual span {
    font-size: 1.05rem;
    text-align: center;
    max-width: 23rem;
}
section {
    padding: 2rem 0;
    scroll-margin-top: 1rem;
}
section:target {
    animation: section-highlight 1.2s ease;
}
@keyframes section-highlight {
    0% {
        transform: scale(0.995);
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
    25% {
        transform: scale(1.005);
        box-shadow: 0 0 0 10px rgba(255,255,255,.18);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255,255,255,0);
    }
}
.about,
.contact {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,.55);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: 0 24px 50px rgba(27,27,27,.06);
    text-align: center;
}
.about h2,
.contact h2 {
    margin-top: 0;
    font-size: 2rem;
    color: #3b3624;
}
.about p {
    font-weight: 600;
}
.site-footer {
    margin-top: 1.5rem;
    padding: 1.6rem 1.4rem;
    border-radius: 1.8rem;
    background: rgba(255,255,255,.38);
    border: 1px solid rgba(255,255,255,.3);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    text-align: center;
}
.footer-column h3 {
    margin: 0 0 .7rem;
    font-size: 1.15rem;
    color: #3b3624;
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    color: #514a35;
}
.footer-links a,
.footer-links span {
    display: inline-block;
    padding: .15rem 0;
}
.footer-credit p {
    margin: 0;
    color: #514a35;
    line-height: 1.6;
}
.tipo-obra {
    margin-top: 1.5rem;
    padding: 1.75rem 0;
}
.tipo-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.tipo-header h3 {
    margin: .35rem 0 .6rem;
    font-size: 2rem;
    color: #3b3624;
}
.tipo-header p {
    margin: 0;
    max-width: 40rem;
    color: #4f4934;
}
.tipo-label {
    text-transform: uppercase;
    letter-spacing: .18em;
    font-size: .75rem;
    color: #5f573d;
}
.carousel-shell {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: .8rem;
    margin-top: 1.5rem;
}
.carousel-track {
    display: flex;
    gap: 1.2rem;
    overflow: hidden;
    scroll-behavior: smooth;
}
.carousel-nav {
    width: 2.6rem;
    height: 2.6rem;
    border: 1px solid rgba(27,27,27,.2);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    color: #1B1B1B;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}
.carousel-nav:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,.96);
}
.carousel-nav:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.slide {
    flex: 0 0 calc((100% - (1.2rem * 2)) / 3);
    border-radius: 1.5rem;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(247,239,216,.98) 0%, rgba(235,223,186,.98) 100%);
    border: 1px solid rgba(107, 92, 46, .12);
    box-shadow: 0 24px 60px rgba(27,27,27,.08);
    display: flex;
    flex-direction: column;
}
.slide-image-trigger {
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: zoom-in;
}
.slide img,
.slide-fallback {
    width: 100%;
    height: 260px;
    object-fit: cover;
}
.slide-image-trigger img {
    display: block;
    transition: transform .25s ease;
}
.slide-image-trigger:hover img {
    transform: scale(1.03);
}
.slide-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #E8D5A6 0%, #F7EFE0 100%);
    color: #6C5918;
    font-size: 1.05rem;
    padding: 2rem;
}
.slide-copy {
    padding: 1.5rem;
    display: grid;
    gap: .75rem;
    text-align: center;
}
.slide-copy strong {
    color: #3b3624;
}
.slide-copy .artista {
    font-size: .9rem;
    color: #655c41;
    text-transform: uppercase;
    letter-spacing: .12em;
}
.slide-copy h4 {
    margin: 0;
    font-size: 1.4rem;
    color: #3b3624;
}
.slide-copy p {
    margin: 0;
    line-height: 1.7;
    color: #514a35;
}
.slide-copy .button {
    width: 100%;
    margin-top: .35rem;
}
.dropdown {
    position: relative;
    z-index: 40;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: .25rem;
    padding: .75rem;
    border-radius: 1rem;
    background: rgba(255,255,255,.96);
    box-shadow: 0 24px 48px rgba(27,27,27,.12);
    min-width: 220px;
}
.dropdown-menu a {
    padding: .75rem 1rem;
    border-radius: .9rem;
    transition: background .2s ease;
    color: #3f3927;
    font-weight: 700;
    text-align: center;
}
.dropdown-menu a:hover {
    background: rgba(27,27,27,.08);
}
.dropdown.open .dropdown-menu { display: flex; }

.image-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.image-modal.open {
    display: flex;
}
.image-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .74);
}
.image-modal-content {
    position: relative;
    z-index: 1;
    width: min(92vw, 1100px);
    max-height: 92vh;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
    background: #111;
}
.image-modal-content img {
    width: 100%;
    height: 100%;
    max-height: 92vh;
    object-fit: contain;
    display: block;
}
.image-modal-close {
    position: absolute;
    top: .7rem;
    right: .8rem;
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    color: #2a2618;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.image-modal-close:hover {
    background: #fff;
}
.interest-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: max(12px, env(safe-area-inset-top, 0px)) 0 max(12px, env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
}
.interest-modal.open {
    display: flex;
}
.interest-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .68);
}
.interest-modal-content {
    position: relative;
    z-index: 1;
    width: min(92vw, 620px);
    max-height: 92vh;
    overflow: auto;
    scroll-padding-bottom: 8rem;
    border-radius: 1.2rem;
    background: rgba(255,255,255,.98);
    box-shadow: 0 30px 90px rgba(0, 0, 0, .35);
    padding: 1.4rem;
    text-align: left;
}
.interest-modal-header {
    text-align: center;
    margin-bottom: 1rem;
}
.interest-modal-header h2 {
    margin: 0 0 .4rem;
    color: #3b3624;
}
.interest-modal-header p {
    margin: 0;
    color: #514a35;
    line-height: 1.6;
}
.interest-modal-close {
    position: absolute;
    top: .7rem;
    right: .8rem;
    width: 2.2rem;
    height: 2.2rem;
    border: none;
    border-radius: 999px;
    background: rgba(27,27,27,.08);
    color: #2a2618;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}
.interest-modal-close:hover {
    background: rgba(27,27,27,.14);
}
.interest-message {
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border-radius: .9rem;
    font-size: .95rem;
}
.interest-message-error {
    background: rgba(160, 48, 48, .12);
    color: #6f1f1f;
    border: 1px solid rgba(160, 48, 48, .2);
}
.interest-message-success {
    background: rgba(73, 124, 74, .14);
    color: #245026;
    border: 1px solid rgba(73, 124, 74, .2);
}
.page-success-message {
    margin: 1rem auto 0;
    max-width: 760px;
    font-weight: 700;
    text-align: center;
    background: rgba(247, 242, 220, .98);
    color: #4a432c;
    border: 1px solid rgba(74, 67, 44, .18);
    box-shadow: 0 14px 32px rgba(74, 67, 44, .14);
}
.interest-message ul {
    margin: 0;
    padding-left: 1.1rem;
}
.interest-form {
    display: grid;
    gap: .95rem;
}
.interest-select-group {
    display: grid;
    gap: .85rem;
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(163,159,118,.12);
    border: 1px solid rgba(59,54,36,.14);
}
.interest-form label {
    display: grid;
    gap: .45rem;
    color: #3b3624;
    font-weight: 600;
}
.interest-form input {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: .9rem;
    border: 1px solid rgba(27,27,27,.18);
    background: rgba(255,255,255,.95);
    color: #3b3624;
    font: inherit;
}
.interest-form select {
    width: 100%;
    padding: .85rem 1rem;
    border-radius: .9rem;
    border: 1px solid rgba(27,27,27,.18);
    background: rgba(255,255,255,.95);
    color: #3b3624;
    font: inherit;
}
.interest-form input:focus {
    outline: 2px solid rgba(163,159,118,.65);
    outline-offset: 2px;
}
.interest-form select:focus {
    outline: 2px solid rgba(163,159,118,.65);
    outline-offset: 2px;
}
.interest-select-group label:last-child {
    margin-top: .1rem;
}
.interest-form .button {
    width: 100%;
}
.scroll-top-button {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 3.25rem;
    height: 3.25rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(247, 242, 220, .98);
    color: #4a432c;
    border: 1px solid rgba(74, 67, 44, .18);
    box-shadow: 0 16px 34px rgba(74, 67, 44, .18);
    z-index: 1200;
    font-size: 1.35rem;
    line-height: 1;
    transition: transform .2s ease, background .2s ease;
}
.scroll-top-button:hover {
    transform: translateY(-2px);
    background: #fff7df;
}
@media (max-width: 900px) {
    .container {
        border-radius: 1.9rem;
        padding: 1rem 1rem 1.5rem;
    }
    .hero { grid-template-columns: 1fr; }
    .site-header { flex-direction: column; align-items: center; }
    .slide {
        flex-basis: calc((100% - 1.2rem) / 2);
    }
    .site-footer {
        grid-template-columns: 1fr;
        padding: 1.3rem 1rem;
    }
    .interest-modal-content {
        padding: 1.2rem;
        max-height: calc(100dvh - 1.5rem - var(--mobile-keyboard-offset, 0px));
        margin: .75rem auto;
    }
    .scroll-top-button {
        right: 1rem;
        bottom: 1rem;
        width: 3rem;
        height: 3rem;
    }
}
@media (max-width: 640px) {
    .container {
        width: min(100%, calc(100% - 1rem));
        border-radius: 1.2rem;
        padding: .75rem .75rem 1.2rem;
        margin-top: .75rem;
    }
    .hero-copy h1 { font-size: 2.5rem; }
    .carousel-shell {
        position: relative;
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .carousel-track {
        order: 1;
    }
    .carousel-nav {
        position: absolute;
        top: 130px;
        z-index: 3;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 999px;
        display: grid;
        place-items: center;
        transform: translateY(-50%);
        background: rgba(255,255,255,.9);
        box-shadow: 0 10px 24px rgba(0,0,0,.18);
    }
    .carousel-nav[data-carousel-prev] {
        left: .35rem;
    }
    .carousel-nav[data-carousel-next] {
        right: .35rem;
    }
    .slide {
        flex-basis: 100%;
    }
    .site-footer {
        border-radius: 1.2rem;
    }
    .interest-modal-content {
        width: min(96vw, 620px);
        padding: 1rem;
        max-height: calc(100dvh - 1rem - var(--mobile-keyboard-offset, 0px));
        margin: .5rem auto;
    }
    .interest-modal {
        align-items: flex-start;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + var(--mobile-keyboard-offset, 0px) + .5rem);
    }
    .scroll-top-button {
        right: .85rem;
        bottom: .85rem;
    }
}
