/* RESET Y TIPOGRAFÍA */
.gr-hero-rosano-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.gr-hero-rosano-container {
    font-family: 'Montserrat', 'Arial', sans-serif;
    line-height: 1.6;
}

/* CONTENEDOR PRINCIPAL */
.gr-hero-rosano-container {
    width: 100%;
    height: 60vh;
    min-height: 460px;
    max-height: 900px;
    position: relative;
    overflow: hidden;
    background-color: #000;
}

/* SWIPER PRINCIPAL */
.gr-hero-rosano-swiper {
    width: 100%;
    height: 100%;
}

/* ESTILOS DE CADA SLIDE */
.gr-hero-rosano-slide {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* OVERLAY PARA MEJOR LEGIBILIDAD */
.gr-hero-rosano-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* CONTENIDO CENTRADO */
.gr-hero-rosano-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    width: 90%;
}

/* TÍTULO PRINCIPAL */
.gr-hero-rosano-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* TEXTO DESCRIPTIVO */
.gr-hero-rosano-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    font-weight: 500;
}

/* BOTÓN LLAMADO A LA ACCIÓN */
.gr-hero-rosano-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background-color: #77519A;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
}

.gr-hero-rosano-cta:hover {
    background-color: #5d3d7c;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* ICONO WHATSAPP */
.gr-hero-rosano-whatsapp-icon {
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

/* PIE DE HERO (INFO LOCAL) */
.gr-hero-rosano-local-info {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
    color: #fff;
    font-size: 0.9rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.gr-hero-rosano-local-info span {
    display: inline-block;
    margin: 0 0.5rem;
}

/* NAVEGACIÓN SWIPER */
.gr-hero-rosano-swiper .swiper-button-next,
.gr-hero-rosano-swiper .swiper-button-prev {
    color: white;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gr-hero-rosano-swiper .swiper-button-next:hover,
.gr-hero-rosano-swiper .swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.gr-hero-rosano-swiper .swiper-button-next::after,
.gr-hero-rosano-swiper .swiper-button-prev::after {
    font-size: 1.5rem;
    font-weight: bold;
}

/* PAGINACIÓN SWIPER */
.gr-hero-rosano-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: white;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.gr-hero-rosano-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background-color: #77519A;
    transform: scale(1.2);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .gr-hero-rosano-container {
        height: 85vh;
        min-height: 500px;
    }
    
    .gr-hero-rosano-content {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .gr-hero-rosano-container {
        height: 80vh;
        min-height: 450px;
    }
    
    .gr-hero-rosano-cta {
        padding: 0.7rem 1.5rem;
    }
    
    .gr-hero-rosano-local-info {
        font-size: 0.8rem;
        bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .gr-hero-rosano-container {
        height: 75vh;
        min-height: 400px;
    }
    
    .gr-hero-rosano-title {
        margin-bottom: 1rem;
    }
    
    .gr-hero-rosano-text {
        margin-bottom: 2rem;
    }
    
    .gr-hero-rosano-swiper .swiper-button-next,
    .gr-hero-rosano-swiper .swiper-button-prev {
        width: 40px;
        height: 40px;
    }
    
    .gr-hero-rosano-swiper .swiper-button-next::after,
    .gr-hero-rosano-swiper .swiper-button-prev::after {
        font-size: 1.2rem;
    }
    
    .gr-hero-rosano-local-info {
        display: none; /* Ocultamos en móviles muy pequeños */
    }
}


/* Añade esto al CSS del hero */
.gr-hero-rosano-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.swiper-slide-active .gr-hero-rosano-content {
    opacity: 1;
    transform: translateY(0);
}

.gr-hero-rosano-title {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.gr-hero-rosano-text {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.gr-hero-rosano-cta {
    animation: fadeInUp 1s ease-out 0.9s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gr-hero-rosano-slide {
    position: relative;
    overflow: hidden;
}

.gr-hero-rosano-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(119, 81, 154, 0.3) 0%, transparent 100%);
    z-index: 1;
    transform: scale(1.5);
    transition: transform 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.swiper-slide-active .gr-hero-rosano-slide::before {
    transform: scale(1);
}

.gr-hero-rosano-slide {
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    transition: background-position 0.8s ease-out;
}

.swiper-slide-active .gr-hero-rosano-slide {
    background-position: center 20%;
}

.gr-hero-rosano-local-info {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out 1.2s;
}

.swiper-slide-active .gr-hero-rosano-local-info {
    opacity: 1;
    transform: translateY(0);
}

.gr-hero-rosano-local-info span {
    display: inline-block;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease-out;
}

.swiper-slide-active .gr-hero-rosano-local-info span {
    opacity: 1;
    transform: translateY(0);
}

.gr-hero-rosano-local-info span:nth-child(1) { transition-delay: 1.4s; }
.gr-hero-rosano-local-info span:nth-child(2) { transition-delay: 1.6s; }
.gr-hero-rosano-local-info span:nth-child(3) { transition-delay: 1.8s; }

.gr-hero-rosano-cta {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.gr-hero-rosano-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 60%
    );
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.gr-hero-rosano-cta:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.gr-hero-rosano-title {
    position: relative;
    display: inline-block;
}

.gr-hero-rosano-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #77519A, transparent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1) 1s;
}

.swiper-slide-active .gr-hero-rosano-title::after {
    transform: scaleX(1);
    transform-origin: left;
}

@media (max-width: 768px) {
    .gr-hero-rosano-content {
        transform: none !important;
        opacity: 1 !important;
    }
    
    .gr-hero-rosano-title,
    .gr-hero-rosano-text,
    .gr-hero-rosano-cta {
        animation: none !important;
    }
    
    .gr-hero-rosano-slide::before {
        transform: none !important;
        background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, transparent 100%);
    }
}

/* Añade al inicio del CSS */
@keyframes preloader {
    to { transform: translateX(100%); }
}

.gr-hero-rosano-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.2);
    z-index: 1000;
}

.gr-hero-rosano-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 4px;
    background: #77519A;
    z-index: 1001;
    animation: preloader 1.5s ease-in-out infinite;
}

body.loaded .gr-hero-rosano-container::before,
body.loaded .gr-hero-rosano-container::after {
    display: none;
}