/* Split from style.css — home.css */


/*------------------------------------*\
  #7. HERO Y CARRUSEL
\*------------------------------------*/
.hero {
    position: relative;
    height: 95.5vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -27px;
    text-align: center;
    overflow: hidden;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 4;
}

/* Efecto de partículas sutiles para el hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: 50px 50px;
    z-index: 1;
    pointer-events: none;
    opacity: 0.2;
}

.hero .container {
    position: relative;
    z-index: 5;
    width: 100%;
    background: transparent;
    padding: 0 var(--spacing-xl);
}


.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-xl) var(--spacing-xl);
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(3px);
    animation: fadeIn 1s ease-out;
    background-color: rgb(255, 255, 255, 0.3);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.hero-content:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.hero-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);

    border-radius: var(--radius-lg);
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.8);
    transition: all 0.4s ease;
}

.hero-content:hover::before {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border-radius: var(--radius-lg);
    z-index: -1;
    opacity: 0.7;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.hero-content:hover::after {
    opacity: 0.9;
}


.hero-content>* {
    position: relative;
    z-index: 1;
}

.hero-background-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
    pointer-events: none;
}

.hero-background-logo img {
    width: 90%;
    height: auto;
    object-fit: contain;
    /* filter: brightness(1.0); */
}

.hero .hero-content .brand-name {
    font-family: var(--font-secondary);
    font-size: 4rem;
    font-weight: 600;
    color: var(--color-gray-900);
    letter-spacing: 8px;
    display: block;
    margin-bottom: -5px;
    text-shadow: none;
    animation: fadeInDown 1s ease-out;
    position: relative;
    overflow: hidden;
    z-index: 5;
    transition: color 0.3s ease, letter-spacing 0.5s ease;
}

.brand-logo-container-index:hover .brand-name {

    letter-spacing: 10px;
}

.hero .hero-content .brand-subtitle {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--color-gray-700);
    letter-spacing: 10px;
    display: block;
    text-transform: uppercase;
    margin-top: -5px;
    margin-bottom: var(--spacing-lg);
    transition: letter-spacing 0.5s ease, color 0.3s ease;
}

.brand-logo-container-index:hover .brand-subtitle {
    letter-spacing: 12px;

}

.hero .hero-content p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
    animation: fadeIn 1s ease-out 0.6s backwards;
    color: var(--color-gray-700);
    /* Cambiado para contraste */
    text-shadow: none;
    /* Quitado text-shadow */
    position: relative;
    z-index: 5;
    transition: transform 0.3s ease, color 0.3s ease;
}

.hero .hero-content p:hover {
    transform: translateY(-3px);
    color: var(--color-gray-900);
}

.hero .hero-content .btn {
    /* Botón específico dentro del hero */
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    letter-spacing: 1px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        background-color 0.3s ease,
        box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero .hero-content .btn:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: var(--color-accent-dark);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

@keyframes pulseButton {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(var(--color-accent-rgb), 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(var(--color-accent-rgb), 0);
    }
}

.hero .hero-content .btn:hover::before {
    animation: pulseButton 1.5s infinite;
}

/* Efecto de hover para el botón */
.hero .hero-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    /* Fondo más oscuro para contraste */
    transition: width 0.3s ease;
    z-index: -1;
}

.hero .hero-content .btn:hover::before {
    width: 100%;
}

/* Carrusel */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Detrás del contenido */
    overflow: hidden;
    /* Evitar desbordamiento durante las transiciones */
}

.carousel-slides {
    width: 100%;
    height: 100%;
    position: relative;
    will-change: transform;
    /* Optimizar para animaciones */
    -webkit-backface-visibility: hidden;
    /* Reducir parpadeo */
    backface-visibility: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.7s ease-in-out;
    z-index: 1;
    transform: translateZ(0);
    /* Forzar aceleración por hardware */
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
    /* Oscurecer para mejor contraste con el texto */
    -webkit-transform: translateZ(0);
    /* Forzar aceleración por hardware en Safari */
    transform: translateZ(0);
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 var(--spacing-lg);
    z-index: 10;
}

.carousel-control {
    background: rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    /* Eliminar el resaltado al tocar en móviles */
}

.carousel-control:hover {
    background: var(--color-accent);
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: var(--spacing-xl);
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    /* Eliminar el resaltado al tocar en móviles */
}

.dot.active {
    background: var(--color-white);
    transform: scale(1.2);
}

.dot:hover {
    background: var(--color-accent);
}

