/* === Base / Dark Mode === */

:root {
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    background: #0b0b0b;
    color: #eaeaea;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Helvetica Neue", Arial;
}


/* === Slider full screen === */

.slider {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    animation: fadeZoom 70s linear infinite;
}

@keyframes fadeZoom {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    2% {
        opacity: 1;
    }
    5% {
        opacity: 1;
    }
    7% {
        opacity: 0;
        transform: scale(1.2);
    }
    100% {
        opacity: 0;
    }
}


/* === Overlay contenido centrado === */

.overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1;
    padding: 16px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
    text-align: center;
}

.title {
    letter-spacing: .25em;
    font-weight: 800;
    font-size: clamp(28px, 6vw, 64px);
    margin: 0;
}

.btn {
    appearance: none;
    border: 1px solid #ffffff33;
    padding: 12px 24px;
    border-radius: 999px;
    background: #111a;
    backdrop-filter: blur(6px);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, background .2s ease, border-color .2s;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: #fff;
}


/* === Modales === */

.modal {
    position: fixed;
    inset: 0;
    background: #000c;
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2;
}

.modal.open {
    display: flex;
}

.card {
    width: min(920px, 95vw);
    background: #121212;
    border: 1px solid #ffffff22;
    border-radius: 16px;
    box-shadow: 0 10px 30px #0009;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #ffffff22;
}

.card-header h2 {
    margin: 0;
    font-size: 18px;
}

.content {
    padding: 0;
    height: min(70vh, 70svh);
}

.close {
    background: none;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

iframe.calendar {
    width: 100%;
    height: 100%;
    border: 0;
}


/* === Contacto === */

.contact {
    padding: 20px;
    font-size: 16px;
    display: grid;
    gap: 8px;
}

.contact a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dashed #ffffff55;
}

.hint {
    opacity: .8;
}

@media (hover: none) {
    .btn:hover {
        transform: none;
    }
}