/* Fuente: Inter. Palette basada en PlaceComp */
:root {
    --primary: #bc162a;
    --dark: #302325;
    --accent: #ee7f27;
    --bg: #0f1113;
    --glass: rgba(255, 255, 255, 0.04);
    --card-bg: rgba(255, 255, 255, 0.03);
    --text: #e9e7e1;
}

* {
    box-sizing: border-box
}

html,
body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background: linear-gradient(180deg, rgba(15, 17, 19, 1) 0%, rgba(29, 25, 24, 1) 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wrap {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column
}

a{
    color: var(--primary);
    text-decoration: none;
    transition: color .25s
}

/* Parallax layer */
.parallax-layer {
    position: absolute;
    inset: 0;
    background-image: url('../img/background.jpg');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
    filter: blur(2px) brightness(0.6);
    transform: translateZ(0);
    z-index: 0
}

/* Canvas de partículas (por encima del parallax) */
#particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none
}

.topbar {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px
}

.brand h1 {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.6px
}

.brand small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.75)
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    transition: all .25s
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: all .25s
}

.switch input:checked+.slider {
    background: var(--primary)
}

.switch input:checked+.slider:before {
    transform: translateX(20px)
}

.content {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    z-index: 2
}

.card {
    width: min(900px, 96%);
    background: var(--card-bg);
    backdrop-filter: blur(6px) saturate(120%);
    border-radius: 14px;
    padding: 36px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    z-index: 3;
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(12px);
    animation: cardIn .9s cubic-bezier(.2, .9, .3, 1) forwards
}

.card:hover {
    transform: translateY(-6px) scale(1.005);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7)
}

.card-illustration {
    width: clamp(240px, 55%, 540px);
    height: auto;
    display: block;
    margin: 0 0 24px 0;
}

.card h2 {
    margin: 0 0 10px 0;
    font-size: 40px
}

.card p {
    margin: 0 0 18px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px
}

.site-footer {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 18px 12px;
    color: rgba(255, 255, 255, 0.5)
}

/* Animaciones de entrada */
@keyframes cardIn {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* Tooltip / focus improvements */
.content:focus-within .card {
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.75)
}

/* Responsive */
@media (max-width:900px) {
    .card {
        padding: 20px;
        width: min(98vw, 100%);
    }
    .card-illustration {
        width: 60%;
        margin-bottom: 12px;
    }
}