/* =========================================================
   FIX TAMAÑO REAL DEL CARRUSEL
========================================================= */

/* CONTENEDOR */
.hero-slider {    
    position: relative;
    width: 100%;

    /* Hacemos el carrusel notablemente más alto en pantalla */
    height: 90vh;

    /* LIMITES: Subimos el tope máximo para darle aire a la imagen */
    min-height: 550px;
    max-height: 850px; /* Al subir esto, la imagen se desestira sola */
    
    overflow: hidden;
    background: #000;

    clip-path: polygon(0 0, 100% 0, 100% 95%, 50% 100%, 0 95%);
}
/* =========================================================
   SLIDES
========================================================= */

.hero-slide{
    position:absolute;
    inset:0;

    opacity:0;

    transition:opacity 1s ease;

    display:flex;
    justify-content:center;
    align-items:center;
}

.hero-slide.active{
    opacity:1;
    z-index:2;
}

/* =========================================================
   IMAGENES (Modificado para mostrarse completa)
========================================================= */
.hero-slide img {
    position: relative;
    z-index: 2;
    
    /* Obligamos a la imagen a medir exactamente lo mismo que el carrusel */
    width: 100%;
    height: 100%;

    /* Mantiene el ajuste total que te gustó, pero ahora con mejores proporciones */
    object-fit: fill;
    object-position: center center;

    display: block;
    filter: brightness(.85);
    
    /* Pequeño extra para terminar de pulir cualquier imperfección visual */
    transform: scale(1.02); 
    
    transition: 
        transform 6s ease,
        object-position .5s ease;
}

/* SLIDE ACTIVO */
.hero-slide.active img {
    /* Tu efecto de zoom suave corriendo impecable */
    transform: scale(1.05);
    
    object-position: center center;
}
/* =========================================================
   OVERLAY
========================================================= */

.hero-overlay{
    position:absolute;
    inset:0;

    background:
    linear-gradient(
        90deg,
        rgba(0,0,0,.60) 0%,
        rgba(0,0,0,.25) 45%,
        rgba(0,0,0,.05) 100%
    );

    z-index:3;
}

/* =========================================================
   CONTENIDO
========================================================= */

.hero-content{
    position:absolute;

    /* 1. POSICIÓN: Quitamos top:50% y usamos bottom para anclarlo abajo */
    bottom: 53%;    
    left: 3%;

    /* 2. CONTROL DE ALTURA: Eliminamos el translateY(-50%) para que no interfiera */
    transform: none; 

    z-index: 20;
    color: white;
    max-width: 500px;
}

.hero-content h1{
    font-size:clamp(2rem,4vw,3rem);
    line-height:1.05;
    font-weight:900;
    margin-bottom:10px; /* <-- Espacio entre el título y el párrafo */
    text-transform:uppercase;
    text-shadow:0 5px 20px rgba(0,0,0,.4);
}

.hero-content p{
    font-size:.95rem;
    color:var(--color-acento);
    letter-spacing:2px;
    line-height:1.5;
    margin-bottom:25px;
    border-left:3px solid var(--color-acento);
    padding-left:12px;
}
/* =========================================================
   BOTON
========================================================= */

.btn-slider{

    display:inline-flex;

    align-items:center;
    justify-content:center;

    padding:14px 30px;

    border-radius:8px;

    background:var(--color-acento);

    color:var(--azul-marino);

    text-decoration:none;

    font-size:.85rem;

    font-weight:800;

    transition:.3s ease;
}

.btn-slider:hover{

    background:#fff;

    transform:translateY(-3px);
}

/* =========================================================
   FLECHAS
========================================================= */

.hero-prev,
.hero-next{

    position:absolute;

    top:50%;

    transform:translateY(-50%);

    width:52px;
    height:52px;

    border-radius:50%;

    border:none;

    background:rgba(255,255,255,.12);

    backdrop-filter:blur(10px);

    color:#fff;

    cursor:pointer;

    z-index:100;

    transition:.3s ease;
}

.hero-prev:hover,
.hero-next:hover{
    background:var(--color-acento);

    color:var(--azul-marino);
}

.hero-prev{
    left:20px;
}

.hero-next{
    right:20px;
}

/* =========================================================
   DOTS
========================================================= */

.hero-dots{

    position:absolute;

    bottom:25px;

    width:100%;

    text-align:center;

    z-index:100;
}

.hero-dot{

    width:10px;
    height:10px;

    margin:0 5px;

    border-radius:50%;

    background:rgba(255,255,255,.45);

    display:inline-block;

    transition:.3s ease;
}

.hero-dot.active{

    background:var(--color-acento);

    transform:scale(1.15);
}

/* =========================================================
   TABLET (Adaptación elegante)
========================================================= */

@media(max-width:992px){

     .hero-slider{
        /* Le damos una altura ideal para pantallas medianas */
        height: 70vh;
        min-height: 500px;
        max-height: 700px;
    }

     .hero-content{
        max-width:450px;
    }

     .hero-content h1{
        font-size:2.7rem;
    }
    .hero-content p {
        font-size: 0.75rem; /* Bajó de 0.8rem -> Letra más fina */
        margin-bottom: 8px; /* Menos espacio antes del botón */
        border: none !important;
        padding-left: 0 !important;
    }
}
/* =========================================================
   A JUSTES EXCLUSIVOS PARA TELÉFONOS (Móvil)
========================================================= */
@media(max-width: 768px){

    .hero-slider {
        /* 1. ANCHO/LARGO HORIZONTAL EN CELULAR: 
           Normalmente es 100% para que use toda la pantalla táctil, 
           pero si quieres que tenga márgenes puedes bajarlo (ej: 90%) */
        width: 100%; 

        /* 2. ALTO VERTICAL EN CELULAR:
           Aquí modificas qué tan alto se ve el carrusel en el teléfono.
           Puedes usar píxeles fijos (ej: 400px, 450px, 500px) hasta que veas 
           que tus motos lucen perfectas en tu pantalla. */
        height: 450px; 
        
        /* Quitamos los límites heredados de la laptop para que te haga caso arriba */
        min-height: unset;
        max-height: unset; 
    }

    .hero-slide img {
        /* IMPORTANTE: Mantenemos el bloqueador para que al cambiar 
           los tamaños de arriba la foto NUNCA se deforme ni se estire */
        width: 100%;
        height: 100%;
        object-fit: cover; 
        object-position: center center;
    }

    /* Ajustes del texto para que no tape las motos en pantallas chicas */
    .hero-content {
        left: 50%;
        bottom: 30px;
        transform: translateX(-50%);
        width: 85%;
        text-align: center;
    }
   
/* Cambia la línea 25 (Título) */
    .hero-content h1 {
        font-size: 1.0rem; /* Bajó de 1.3rem -> Más chico y compacto */
        margin-bottom: 2px; /* Menos espacio abajo */
    }

    /* Cambia la línea 31 (Párrafo) */
    .hero-content p {
        font-size: 0.75rem; /* Bajó de 0.8rem -> Letra más fina */
        margin-bottom: 8px; /* Menos espacio antes del botón */
        border: none !important;
        padding-left: 0 !important;
    }
    .btn-slider {
        padding: 10px 20px;
        font-size: .75rem;
    }

    .hero-prev, .hero-next {
        width: 36px;
        height: 36px;
    }
}
/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */

@media(max-width:480px){

    .hero-slider{
        /* Se adapta perfectamente a pantallas ultra angostas sin verse gigante */
        height: 62vw;
        min-height: 320px;
    }

    .hero-content{
        bottom:220px;
    }

/* Cambia la línea 57 (Título ultra chico) */
    .hero-content h1 {
        font-size: 0.5rem; /* Bajó de 1.0rem -> Súper compacto */
        margin-bottom: 2px;
    }

    /* Cambia la línea 62 (Párrafo ultra chico) */
    .hero-content p {
        font-size: 0.50rem; /* Bajó de 0.7rem */
        margin-bottom: 6px;
        border: none !important;
        padding-left: 0 !important;
    }

    .btn-slider{
        width:100%;
        max-width:200px;
    }
}