* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background: #f4f6fa;
}

/* ─────────── CARRUSEL ─────────── */
.carrusel-contenedor {
    position: relative;
    max-width: 900px;
    margin: 30px auto;
    overflow: hidden;
    border-radius: 12px;
}

.carrusel {
    height: 380px;
}

.slide {
    display: none;
    position: relative;
    height: 100%;
}

.slide.activo {
    display: block;
}

.slide img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.slide-texto {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.55);
    color: white;
    padding: 20px;
}

.btn-carrusel {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 14px;
    cursor: pointer;
    border-radius: 4px;
}

.btn-carrusel:hover {
    background: rgba(0,0,0,0.8);
}

.izquierda { left: 10px; }
.derecha   { right: 10px; }

/* ─────────── BIENVENIDA ─────────── */
.home-bienvenida {
    text-align: center;
    max-width: 700px;
    margin: 40px auto;
    padding: 0 15px;
}

.home-bienvenida h2 {
    font-size: 28px;
    color: #14243b;
    margin-bottom: 10px;
}

.home-bienvenida p {
    color: #444;
    line-height: 1.6;
}

/* ─────────── TARJETAS ─────────── */
.home-tarjetas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: auto;
    padding: 20px;
}

.tarjeta {
    background: white;
    width: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.tarjeta:hover {
    transform: translateY(-5px);
}

.tarjeta img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.tarjeta-body {
    padding: 15px;
}

.tarjeta-body h3 {
    margin-bottom: 8px;
    color: #14243b;
}

.tarjeta-body p {
    font-size: 14px;
    color: #555;
}

/* ─────────── CTA ─────────── */
.home-cta {
    background: #14243b;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin-top: 40px;
}