* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('/static/img/fondo01.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container-minimal {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    max-width: 1000px;
}

/* ===== BLOQUE DE FRASE ===== */
.frase-block {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #222;
    line-height: 1.6;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== CARRUSEL ===== */
.carousel-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.carousel-track {
    display: flex;
    gap: 20px;
    will-change: transform;
}

.carousel-item {
    min-width: 280px;
    max-width: 280px;
    cursor: pointer;
    text-align: center;
}

.carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.08);
}

.carousel-description {
    margin-top: 15px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ===== PANEL DE ACCESO ===== */
.access-panel {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.access-panel h1 {
    font-size: 42px;
    color: #222;
    margin-bottom: 10px;
    font-weight: 700;
}

.access-panel .subtitle {
    font-size: 20px;
    color: #555;
    margin-bottom: 30px;
    font-weight: 500;
}

.button-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-access {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-paciente {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-paciente:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-personal {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-personal:hover {
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 87, 108, 0.4);
}

.btn-label {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container-minimal {
        gap: 20px;
    }

    .frase-block {
        padding: 20px;
        font-size: 16px;
    }

    .access-panel {
        padding: 30px 20px;
    }

    .access-panel h1 {
        font-size: 32px;
    }

    .access-panel .subtitle {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .button-group {
        flex-direction: column;
        gap: 15px;
    }

    .btn-access {
        width: 100%;
        min-width: unset;
    }

    .carousel-item {
        min-width: 240px;
        max-width: 240px;
    }

    .carousel-item img {
        height: 170px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 15px;
    }

    .container-minimal {
        gap: 15px;
    }

    .frase-block {
        padding: 15px;
        font-size: 14px;
    }

    .access-panel {
        padding: 25px 15px;
    }

    .access-panel h1 {
        font-size: 26px;
    }

    .access-panel .subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .carousel-container {
        padding: 15px;
    }

    .carousel-item {
        min-width: 200px;
        max-width: 200px;
    }

    .carousel-item img {
        height: 140px;
    }

    .carousel-description {
        font-size: 13px;
    }
}
