html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    overflow-x: hidden;
}

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;

    background-image: url("https://moria.aurens.com/organizations/9544b7c9-e4ac-4f76-a9b8-4ab610794e0b/facilities/gsnnzu-ucimed.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 0;
}

.container > * {
    position: relative;
    z-index: 1;
}

/* ==========================
   ENCABEZADO
========================== */

header {
    text-align: center;
    padding: 15px 20px;
    color: white;
}

.logo {
    width: clamp(180px, 28vw, 320px);
    height: auto;
    display: block;
    margin: 0 auto 15px;
}

header h1 {
    margin: 0;
}

header p {
    margin-top: 10px;
}

/* ==========================
   CONTENIDO
========================== */

.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================
   CARRUSEL
========================== */

.carousel {
    position: relative;
    width: min(950px, 92%);
    margin: 15px auto;
}

.carousel-track {
    position: relative;
}

.slide {
    display: none;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

.slide.active {
    display: block;
}

/* ==========================
   FLECHAS
========================== */

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: rgba(0,0,0,.6);
    color: white;
    font-size: 24px;
    transition: .3s;
    z-index: 2;
}

.prev {
    left: -20px;
}

.next {
    right: -20px;
}

.prev:hover,
.next:hover {
    background: #0257f6;
}

/* ==========================
   BOTONES
========================== */

.buttons {
    margin-top: auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 15px 20px 20px;
}

.buttons a {
    text-decoration: none;
    padding: 14px 28px;
    background: #0257f6;
    color: white;
    font-size: 17px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.2);
    transition: .25s;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.buttons a:hover {
    background: #0146c7;
    transform: translateY(-3px);
}

/* ==========================
   FOOTER
========================== */

footer {
    text-align: center;
    color: white;
    padding: 12px;
    font-size: 14px;
    background: rgba(0,0,0,.25);
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width:768px){

    header{
        padding:10px 15px;
    }

    .logo{
        width:180px;
    }

    .carousel{
        width:95%;
        margin:10px auto;
    }

    .prev,
    .next{
        width:40px;
        height:40px;
        font-size:20px;
    }

    .prev{
        left:-10px;
    }

    .next{
        right:-10px;
    }

    .buttons{
        flex-direction:column;
        align-items:center;
        gap:12px;
    }

    .buttons a{
        width:240px;
        text-align:center;
        font-size:16px;
    }

    header h1{
        font-size:26px;
    }

    header p{
        font-size:16px;
    }
}