/* Estilos específicos para la página de inicio */

/* Espaciador entre secciones */
.spacer-section {
    height: 1rem;
}

/* Texto destacado "¡Te esperamos!" con efecto metálico */
.waiting-for-you {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    background-image: linear-gradient(
        90deg,
        var(--color-alternative) 0%,
        var(--color-alternative) 35%,
        var(--color-special) 50%,
        var(--color-alternative) 65%,
        var(--color-alternative) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: none;
    letter-spacing: 1px;
    margin: 0;
    padding: 0;
    font-weight: var(--font-weight-bold);
    line-height: 1.5;
    animation: metallicShine 3s linear infinite;
    will-change: background-position;
}

/* Animación para el efecto metálico con estela de brillo */
@keyframes metallicShine {
    0% {
        background-position: 200% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .waiting-for-you {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .waiting-for-you {
        font-size: 1.6rem;
    }
}

/* Sección Hero */
.hero {
    min-height: 100vh;
    color: var(--color-secondary);
    position: relative;
    padding-top: 80px; /* Espacio para el header */
    background-image: url('../assets/images/media/render-1.jpeg'); /* Imagen de fondo */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    contain: content;
}

/* Estilos para el logo en el hero section */
.hero-logo {
    margin-bottom: 0.5rem;
    animation: fadeIn 1.5s ease-in-out;
    margin-top: 3rem;
    width: 100%;
    text-align: center;
    will-change: opacity, transform;
}

.hero-logo-img {
    max-width: 50%;
    height: auto;
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.5));
    will-change: filter;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 17, 17, 0.6); /* Capa oscura para mejorar legibilidad del texto */
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

/* Animaciones */
.hero h1 {
    color: var(--color-special);
    font-weight: var(--font-weight-bold);
    margin-bottom: 1rem;
    font-size: 4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero .btn-special {
    font-size: 1.1rem;
    padding: 0.7rem 2rem;
    box-shadow: var(--box-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.hero .btn-special:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-md);
}

/* Animaciones básicas */
.fadeIn {
    animation: fadeIn 1s ease-out;
    will-change: opacity, transform;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos para el horario en el hero */
.schedule-hero {
    margin-top: 0;
    animation: fadeIn 1.5s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    will-change: opacity, transform;
}

.schedule-hero .schedule-img {
    max-width: 75%;
    width: 40%;
    height: auto;
    filter: drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.5));
    will-change: filter;
}

.schedule-hero p {
    color: var(--color-secondary);
    font-size: 1rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    line-height: 1.2;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Media queries para el horario */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
    }

    .hero-logo-img {
        max-width: 60%;
    }

    .schedule-hero {
        margin-top: 0;
        width: 90%;
    }
    
    .schedule-hero .schedule-img {
        width: 90%;
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .hero-logo-img {
        max-width: 70%;
    }

    .schedule-hero {
        margin-top: 0;
        width: 100%;
    }
    
    .schedule-hero .schedule-img {
        width: 90%;
        max-width: 90%;
    }
}

/* Sección Lugar */
.place-info {
    background-color: #f7f7f7;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow-lg);
    position: relative;
    overflow: hidden;
}

/* Estilos para el contenedor del mapa */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilos para las imágenes de render */
.render-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow-lg);
    height: 100%;
    contain: content;
}

.render-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.place-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-special), var(--color-alternative));
}

.info-item h4 {
    color: var(--color-alternative);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.info-item h4 i {
    background-color: var(--color-special);
    color: var(--color-primary);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

/* Sección Contacto */
.contact-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--box-shadow-lg);
    height: 100%;
    contain: content;
}

.contact-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.contact-form-card {
    background-color: #f7f7f7;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--box-shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--color-special), var(--color-alternative));
}

#contact .lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

#contact h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.form-control {
    padding: 0.6rem;
    font-size: 0.9rem;
}

textarea.form-control {
    resize: none;
}

.contact-info {
    padding-top: 1rem;
    margin-top: 1rem;
}

.social-container {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.social-text {
    font-size: 0.95rem;
    color: var(--color-primary);
    text-align: center;
}

.farewell-container {
    padding: 0.5rem;
}

.farewell-text {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.farewell-text::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 3px;
    background-color: var(--color-special);
    bottom: -10px;
    left: 30%;
}

.contact-info a {
    font-size: 0.9rem;
}

.contact-info i {
    color: var(--color-special);
    font-size: 1.2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-special);
    border-radius: 50%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Estilos para los iconos */
.icon-social {
    width: 30px;
    height: 30px;
    margin: 0 10px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease, transform 0.3s ease;
    will-change: filter, transform;
}

.social-links a:hover {
    background-color: var(--color-special);
    color: var(--color-primary);
}

.social-links a:hover .icon-social {
    filter: brightness(0) invert(0);
    transform: translateY(-2px);
}

.icon-arrow {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Estilos responsivos */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .render-image-container img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .place-info, .contact-info {
        padding: 1.5rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        margin-right: 0.7rem;
    }
    
    .render-image-container img {
        height: 200px;
    }
}

/* Sección Conócenos (About Us) */
.about-us-text {
    max-width: 800px;
    margin: 0 auto;
    color: var(--color-text);
    padding: 1rem;
    border-left: 5px solid var(--color-accent);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0 10px 10px 0;
}

.about-us-text .lead {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    font-weight: 500;
}

/* Contenedor de imágenes de comida */
.food-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: var(--box-shadow-lg);
    margin-bottom: 1rem;
    contain: content;
}

.food-image-container img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transform: scale(1.1);
    will-change: transform;
}

/* Animaciones para las imágenes de la sección Conócenos (solo en modo desktop) */
@media (min-width: 992px) {
    .food-image-container.horizontal img {
        animation: moveHorizontal 20s ease-in-out infinite;
        transform: scale(1.15);
    }

    .food-image-container.horizontal-reverse img {
        animation: moveHorizontalReverse 20s ease-in-out infinite;
        transform: scale(1.15);
    }

    .food-image-container.vertical img {
        animation: moveVertical 18s ease-in-out infinite;
        transform: scale(1.15);
    }
}

/* Overlay para las imágenes */
.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1.5rem;
    color: #fff;
}

.image-overlay h4 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Definición de las animaciones */
@keyframes moveHorizontal {
    0%, 100% {
        transform: scale(1.15) translateX(-4%);
    }
    50% {
        transform: scale(1.15) translateX(4%);
    }
}

@keyframes moveHorizontalReverse {
    0%, 100% {
        transform: scale(1.15) translateX(4%);
    }
    50% {
        transform: scale(1.15) translateX(-4%);
    }
}

@keyframes moveVertical {
    0%, 100% {
        transform: scale(1.15) translateY(-4%);
    }
    50% {
        transform: scale(1.15) translateY(4%);
    }
}

/* Media queries para la sección Conócenos */
@media (max-width: 768px) {
    .about-us-text {
        padding: 1rem;
    }
    
    .food-image-container img {
        height: 200px;
        transform: scale(1.12);
    }
    
    @keyframes moveHorizontal {
        0% {
            transform: scale(1.12) translateX(-3%);
        }
        50% {
            transform: scale(1.12) translateX(3%);
        }
        100% {
            transform: scale(1.12) translateX(-3%);
        }
    }

    @keyframes moveHorizontalReverse {
        0% {
            transform: scale(1.12) translateX(3%);
        }
        50% {
            transform: scale(1.12) translateX(-3%);
        }
        100% {
            transform: scale(1.12) translateX(3%);
        }
    }

    @keyframes moveVertical {
        0% {
            transform: scale(1.12) translateY(-3%);
        }
        50% {
            transform: scale(1.12) translateY(3%);
        }
        100% {
            transform: scale(1.12) translateY(-3%);
        }
    }
    
    .image-overlay {
        padding: 1rem;
    }
    
    .image-overlay h4 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .food-image-container img {
        transform: scale(1.1);
    }
    
    @keyframes moveHorizontal {
        0% {
            transform: scale(1.1) translateX(-2.5%);
        }
        50% {
            transform: scale(1.1) translateX(2.5%);
        }
        100% {
            transform: scale(1.1) translateX(-2.5%);
        }
    }

    @keyframes moveHorizontalReverse {
        0% {
            transform: scale(1.1) translateX(2.5%);
        }
        50% {
            transform: scale(1.1) translateX(-2.5%);
        }
        100% {
            transform: scale(1.1) translateX(2.5%);
        }
    }

    @keyframes moveVertical {
        0% {
            transform: scale(1.1) translateY(-2.5%);
        }
        50% {
            transform: scale(1.1) translateY(2.5%);
        }
        100% {
            transform: scale(1.1) translateY(-2.5%);
        }
    }
}

/* Ajuste de espaciado para la sección Conócenos */
#about-us {
    margin-top: 3rem;
    padding-top: 2rem;
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .place-info, .contact-info {
        padding: 1.5rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
        margin-right: 0.7rem;
    }
}

/* Ajustes responsivos */
@media (max-width: 768px) {
    .spacer-section {
        height: 3rem;
    }
    
    .about-us-text {
        padding: 1rem;
    }
    
    .food-image-container img {
        height: 200px;
    }
    
    .image-overlay {
        padding: 1rem;
    }
    
    .image-overlay h4 {
        font-size: 1rem;
    }
}

/* Media queries para la sección de contacto */
@media (max-width: 992px) {
    #contact .row {
        min-height: auto;
    }
    
    .contact-image-container {
        height: 300px;
        margin-bottom: 1.5rem;
    }
    
    .contact-image-container img {
        object-position: center 60%;
    }
}

@media (max-width: 768px) {
    .contact-form-card {
        padding: 1.25rem;
    }
    
    .contact-image-container {
        height: 230px;
    }
    
    .contact-image-container img {
        object-position: center 70%;
    }
}

@media (max-width: 576px) {
    .contact-form-card {
        padding: 1rem;
    }
    
    .contact-image-container {
        height: 180px;
    }
    
    .contact-image-container img {
        object-position: center 75%;
    }
    
    #contact .lead {
        font-size: 0.9rem;
    }
    
    #contact h2 {
        font-size: 1.75rem;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
}

#contact .row {
    min-height: 310px;
}

#contact .btn-special:hover {
    transform: none;
}

#contact .social-links a:hover {
    transform: none;
}

/* Media queries para la despedida */
@media (max-width: 768px) {
    .farewell-text {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .farewell-text {
        font-size: 1.3rem;
    }
}
