/* AÃ±ade estos estilos del botÃ³n si quieres mantener la consistencia */
.hero-button {
    background-color: #222;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: inline-block; /* Para que funcione margin auto */
    margin: 0 auto; /* Centrar el botÃ³n */
    text-transform: uppercase;
}

.hero-button:hover {
    background-color: #ff0000;
    transform: translateY(-2px);
}

.imagen {
    width: 100%; /* Ocupa el 100% del ancho del contenedor */
    height: 100%; /* Ocupa el 100% de la altura del contenedor */
    object-fit: cover; /* Cubre todo el contenedor sin distorsionar la imagen */
    object-position: center; /* Centra la imagen dentro del contenedor */
    position: absolute; /* Posiciona la imagen detrÃ¡s del contenido */
    top: 0;
    left: 0;
    z-index: 1; /* Asegura que la imagen estÃ© detrÃ¡s del contenido */
}

/* SecciÃ³n General */
section {
    padding: 40px 10%;
}

/* === ESTILOS GENERALES MEJORADOS === */
:root {
    --color-rojo: #ff0000;
    --color-oscuro: #222;
    --color-gris-claro: #f5f5f5;
    --color-blanco: #fff;
    --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 6px 16px rgba(0, 0, 0, 0.15);
    --transicion: all 0.3s ease;
}


/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 635px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-top: calc(-1 * var(--header-height)); /* Compensa el espacio del header */
    padding-top: var(--header-height);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1150px;
    padding: 0 clamp(20px, 5%, 40px);
    color: var(--light-text);
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: clamp(15px, 3vh, 20px);
    text-shadow: var(--text-shadow);
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    text-shadow: var(--text-shadow);
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

.imagen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

@media (max-width: 768px) {
    .hero {
        height: clamp(350px, 70vh, 550px);
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    
    .hero-content p {
        font-size: clamp(1rem, 3vw, 1.3rem);
    }
}
@media (max-width: 480px) {
    :root {
        --header-height: 60px;
    }
    
    .hero-content h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 4vw, 1.1rem);
    }
}


@media print {

    
    .hero {
        height: auto;
        margin-top: 0;
        padding-top: 20px;
    }
    
    .hero-content {
        color: #000;
        text-shadow: none;
    }
    
    .hero-content h1 span {
        color: #000;
        font-weight: bold;
    }
}
    /* === SECCIÃ“N PRINCIPAL DE ALQUILER === */
.alquiler-section {
    padding: 60px 8%;
    background-color: var(--color-gris-claro);
    position: relative;
}

.alquiler-section:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, #ff0000, transparent);
    opacity: 0.8;
}

    /* TÃ­tulo principal con acento rojo */
.alquiler-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-oscuro);
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.alquiler-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-rojo);
}

    /* === INTRODUCCIÃ“N DE ALQUILER MEJORADA === */
.alquiler-introduccion {
    max-width: 900px;
    margin: 0 auto 40px;
    padding: 30px 40px;
    background-color: var(--color-blanco);
    border-radius: 8px;
    box-shadow: var(--sombra-suave);
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    position: relative;
    border-left: 4px solid var(--color-rojo);
}

.alquiler-introduccion p {
    margin: 0;
}

    /* === BUSCADOR MEJORADO === */
#alquiler-searchContainer {
    display: flex;
    justify-content: center;
    margin: 40px auto;
    max-width: 700px;
    position: relative;
}

#alquiler-searchInput {
    width: 100%;
    padding: 16px 50px 16px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 6px;
    background-color: var(--color-blanco);
    color: var(--color-oscuro);
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    outline: none;
    font-family: 'Segoe UI', sans-serif;
}

#alquiler-searchInput:focus {
    box-shadow: var(--sombra-media);
    border-bottom: 2px solid var(--color-rojo);
}

#alquiler-searchInput::placeholder {
    color: #999;
    letter-spacing: 0.5px;
}

    /* Ãcono de lupa con detalle rojo */
#alquiler-searchContainer::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff0000'%3E%3Cpath d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 0 0 1.48-5.34c-.47-2.78-2.79-5-5.59-5.34a6.505 6.505 0 0 0-7.27 7.27c.34 2.8 2.56 5.12 5.34 5.59a6.5 6.5 0 0 0 5.34-1.48l.27.28v.79l4.25 4.25c.41.41 1.08.41 1.49 0 .41-.41.41-1.08 0-1.49L15.5 14zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0.8;
    transition: var(--transicion);
}

#alquiler-searchInput:focus + #alquiler-searchContainer::after {
    opacity: 1;
}

    /* === LISTADO DE HERRAMIENTAS MEJORADO === */
#alquiler-itemList {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 25px;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.alquiler-item {
    background-color: var(--color-blanco);
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: var(--sombra-suave);
    transition: var(--transicion);
    position: relative;
    border-bottom: 3px solid transparent;
    cursor: pointer; /* Cambia el cursor cuando se pasa por encima */
}

.alquiler-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-media);
    border-bottom: 3px solid var(--color-rojo);
}

.alquiler-item-image-container {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f9f9f9;
    position: relative;
}

.alquiler-item img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: var(--transicion);
}

.alquiler-item:hover img {
    transform: scale(1.05);
}

.alquiler-item span {
    display: block;
    padding: 15px 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-oscuro);
    background-color: var(--color-blanco);
    position: relative;
}

    /* Indicador rojo en las tarjetas */
.alquiler-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 30px 30px 0;
    border-color: transparent var(--color-rojo) transparent transparent;
    opacity: 0;
    transition: var(--transicion);
}

.alquiler-item:hover::after {
    opacity: 1;
}

    /* === SECCIÃ“N DE PROMOCIÃ“N MEJORADA === */
.alquiler-promocion {
    background-color: var(--color-oscuro);
    color: var(--color-blanco);
    padding: 80px 20px;
    text-align: center;
    position: relative;
}

    /* Efecto decorativo con lÃ­neas rojas en esquinas */
.alquiler-promocion::before, 
.alquiler-promocion::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    border-color: var(--color-rojo);
    z-index: 1;
}

.alquiler-promocion::before {
    top: 40px;
    left: 40px;
    border-top: 3px solid;
    border-left: 3px solid;
}

.alquiler-promocion::after {
    bottom: 40px;
    right: 40px;
    border-bottom: 3px solid;
    border-right: 3px solid;
}

.alquiler-promocion-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.alquiler-promocion h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-blanco);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.alquiler-promocion h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-rojo);
}

.alquiler-promocion p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #ccc;
    margin: 0 auto 50px;
    max-width: 800px;
}

    /* === BENEFICIOS MEJORADOS === */
.alquiler-beneficios {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-bottom: 50px;
}

.alquiler-beneficio {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 35px 25px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transicion);
    flex: 1 1 300px;
    position: relative;
    border-bottom: 3px solid transparent;
}

.alquiler-beneficio:hover {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom: 3px solid var(--color-rojo);
}

.alquiler-beneficio i {
    color: #ddd;
    margin-bottom: 20px;
    transition: var(--transicion);
}

.alquiler-beneficio:hover i {
    color: var(--color-rojo);
    transform: scale(1.1);
}

.alquiler-beneficio h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--color-blanco);
}

.alquiler-beneficio p {
    font-size: 1rem;
    color: #bbb;
    margin: 0;
}

    /* === BOTÃ“N CTA MEJORADO === */
.alquiler-cta-button {
    background-color: var(--color-rojo);
    color: var(--color-blanco);
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transicion);
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.alquiler-cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--color-oscuro);
    transition: width 0.3s ease;
    z-index: -1;
}

.alquiler-cta-button:hover {
    color: var(--color-blanco);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.alquiler-cta-button:hover::before {
    width: 100%;
}

    /* === ANIMACIONES MEJORADAS === */
@keyframes fadeIn {
    from {
    opacity: 0;
    transform: translateY(20px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

    /* === RESPONSIVE === */
@media (max-width: 992px) {
    .alquiler-section h2,
    .alquiler-promocion h2 {
    font-size: 2.2rem;
    }
    
    .alquiler-introduccion {
    padding: 25px;
    }
    
    .alquiler-beneficio {
    flex: 1 1 calc(50% - 30px);
    }
    
    .alquiler-promocion::before,
    .alquiler-promocion::after {
    width: 60px;
    height: 60px;
    }
}

@media (max-width: 768px) {
    .alquiler-section {
    padding: 40px 5%;
    }
    
    #alquiler-searchInput {
    padding: 14px 45px 14px 15px;
    }
    
    #alquiler-itemList {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    }
    
    .alquiler-item-image-container {
    height: 150px;
    }
    
    .alquiler-beneficio {
    flex: 1 1 100%;
    }
    
    .alquiler-promocion {
    padding: 60px 15px;
    }
    
    .alquiler-promocion::before,
    .alquiler-promocion::after {
    width: 40px;
    height: 40px;
    }
    
    .alquiler-cta-button {
    padding: 14px 30px;
    }
}

/* === MEDIA QUERIES PARA DISPOSITIVOS MÃ“VILES === */

/* Hero Section - Responsive */
@media (max-width: 768px) {
    .hero {
        height: 60vh; /* Reducir altura en mÃ³viles */
        margin-top: 60px; /* Ajuste para header fijo */
    }

    .hero-content {
        padding-inline: 20px; /* Reducir padding lateral */
        margin-top: -50px; /* Ajustar posiciÃ³n vertical */
    }

    .hero-content h1 {
        font-size: 2rem; /* TamaÃ±o mÃ¡s pequeÃ±o para mÃ³viles */
    }

    .hero-content h1 span {
        font-size: 2rem; /* Mismo tamaÃ±o que el h1 */
    }

    .hero-content p {
        font-size: 1.1rem; /* Texto mÃ¡s pequeÃ±o */
        margin-bottom: 20px;
    }
}

/* SecciÃ³n de Alquiler - Responsive */
@media (max-width: 768px) {
    .alquiler-section {
        padding: 40px 5%;
    }

    .alquiler-section h2 {
        font-size: 1.8rem; /* TÃ­tulo mÃ¡s pequeÃ±o */
        margin-bottom: 20px;
    }

    .alquiler-introduccion {
        padding: 20px;
        font-size: 1rem; /* Texto mÃ¡s pequeÃ±o */
        margin-bottom: 30px;
    }

    #alquiler-searchInput {
        padding: 12px 40px 12px 15px; /* Padding mÃ¡s compacto */
        font-size: 1rem;
    }

    #alquiler-itemList {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); /* Columnas mÃ¡s estrechas */
        gap: 15px;
    }

    .alquiler-item-image-container {
        height: 120px; /* Altura reducida */
    }

    .alquiler-item span {
        font-size: 0.9rem; /* Texto mÃ¡s pequeÃ±o */
        padding: 10px 5px;
    }
}

/* SecciÃ³n de PromociÃ³n - Responsive */
@media (max-width: 768px) {
    .alquiler-promocion {
        padding: 50px 15px;
    }

    .alquiler-promocion h2 {
        font-size: 1.8rem; /* TÃ­tulo mÃ¡s pequeÃ±o */
    }

    .alquiler-promocion p {
        font-size: 1rem; /* Texto mÃ¡s pequeÃ±o */
        margin-bottom: 30px;
    }

    .alquiler-beneficios {
        gap: 20px;
    }

    .alquiler-beneficio {
        padding: 25px 15px;
        flex: 1 1 100%; /* Una columna en mÃ³viles */
    }

    .alquiler-beneficio i {
        font-size: 2rem; /* Iconos mÃ¡s pequeÃ±os */
        margin-bottom: 15px;
    }

    .alquiler-beneficio h3 {
        font-size: 1.1rem;
    }

    .alquiler-beneficio p {
        font-size: 0.9rem;
    }

    .alquiler-cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    /* Ocultar decoraciones en mÃ³viles para mÃ¡s espacio */
    .alquiler-promocion::before,
    .alquiler-promocion::after {
        display: none;
    }
}

/* Ajustes para pantallas muy pequeÃ±as (ej. iPhone 5/SE) */
@media (max-width: 375px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content h1 span {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    #alquiler-itemList {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); /* Columnas aÃºn mÃ¡s estrechas */
    }

    .alquiler-item-image-container {
        height: 100px;
    }
}