/* ===================================
    Home Page Styles
====================================== */

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 92vh;
    overflow: hidden;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Home page logo positioning */
.home-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 15; /* Higher than header to be visible initially */
    opacity: 0; /* Start hidden for animation */
    transform: translateY(-20px); /* Start slightly above for animation */
    transition: var(--transition-smooth);
}

.home-logo-link {
    display: block;
    transition: var(--transition-smooth);
}

.home-logo-image {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: var(--transition-smooth);
}

.home-logo-link:hover .home-logo-image {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

/* Hide home logo when scrolling (will be controlled by JS) */
.home-logo.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
}

/* Hide home logo on mobile/tablet screens (< 800px) */
@media (max-width: 799px) {
    .home-logo {
        display: none !important;
    }
}

/* Show home logo only on desktop screens (>= 800px) */
@media (min-width: 800px) {
    .home-logo {
        display: block;
    }
}

.hero-main-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
}



/* Scroll arrow */
.scroll-arrow {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-link {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    text-align: center;
    line-height: 46px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-link:hover,
.scroll-link:focus,
.scroll-link:active {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff !important;
    border-color: #fff;
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Bounce animation for scroll arrow */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom container with specific paddings */
/* container-page se ha movido a config.css */

/* About Section Styles */
.about-section {
    padding: 120px 0;
}

/* Desktop: ocultar título móvil y mostrar el de desktop */
.title-mobile-column {
    display: none;
}

.desktop-title {
    display: block;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: -0.03em;
    color: #5E6A39;
    margin-bottom: 30px;
}

.section-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.03em;
    color: #5E6A39;
    margin-bottom: 20px;
}



/* Rounded Image Styles */
.rounded-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin-left: 20px;
}

.rounded-image {
    width: 100%;
    height: auto;
    border-radius: 50px;
}

.content-column {
    padding-right: 30px;
}

/* Banner Section Styles */
.banner-section {
    padding: 120px 0;
    position: relative;
    margin-top: 80px;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    overflow: hidden;
    min-height: 500px;
}

/* Imagen de fondo base */
.banner-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Overlay con gradientes */
.banner-gradients-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(0deg, rgba(0, 0, 0, 0.39), rgba(0, 0, 0, 0.39)),
        linear-gradient(0deg, rgba(220, 218, 174, 0.2), rgba(220, 218, 174, 0.2));
    z-index: 2;
}

/* Overlay con color multiply */
.banner-multiply-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(220, 218, 174, 1);
    mix-blend-mode: multiply;
    z-index: 3;
}

.banner-section .container-page,
.banner-section .row,
.banner-section .col-lg-4,
.banner-title,
.banner-text,
.banner-section .secondary-btn {
    position: relative;
    z-index: 4; /* Por encima de todos los overlays */
}

.banner-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: -0.03em;
    color: #FAF2E5;
    margin-bottom: 30px;
    position: relative;
}

.banner-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 22px;
    letter-spacing: 0.03em;
    color: #FAF2E5;
    margin-bottom: 20px;
    position: relative;
}

.secondary-btn {
    display: inline-block;
    background-color: #FAF2E5;
    color: #5E6A39;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0.07em;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    background-color: #ffffff;
    color: #5E6A39;
    text-decoration: none;
}

/* Services Section Styles */
.services-section {
    padding: 120px 0;
    margin-top: 80px;
}

/* Online Banner Section Styles */
.banner-online-section {
    padding: 0;
    background-image: url('../../storage/uploads/banner_image_2.png');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 80px;
    text-align: center;
    border-top-left-radius: 50px;
    border-top-right-radius: 50px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.banner-online-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: 0.07em;
    color: #FAF2E5;
    position: relative;
    z-index: 2;
}

/* Contact Section Styles */
.contact-section {
    padding: 0;
    margin-top: 80px;
    min-height: 400px;
}

.contact-row {
    min-height: 400px;
}

.text-column {
    display: flex;
    align-items: flex-start;
    padding-top: 80px;
}

.button-column {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 80px;
}

.contact-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 200;
    font-style: ExtraLight;
    font-size: 36px;
    line-height: 100%;
    letter-spacing: 0.07em;
    color: #5E6A39;
}

/* Quote Section Styles */
.quote-section {
    padding: 0;
    margin-top: 80px;
    min-height: 400px;
    background-color: rgba(220, 218, 174, 0.25); /* #DCDAAE40 */
}

.quote-container {
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
    max-width: 500px;
    margin: 0 auto;
}

.quote-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 300;
    font-style: Light;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: 0.07em;
    color: #5E6A39;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-section, .services-section, .banner-online-section, .contact-section, .quote-section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .rounded-image-container {
        margin-left: 0;
        margin-top: 40px;
    }
    
    .content-column {
        padding-right: 15px;
    }
    
    .banner-section {
        padding: 80px 0;
    }
    
    .banner-title, .banner-online-title, .contact-title {
        font-size: 32px;
    }
    
    .services-section .col-lg-5 + .col-lg-5 {
        margin-top: 40px;
    }
    
    /* Contact section mobile adjustments */
    .contact-section {
        padding: 50px 0; /* Reducir padding top y bottom */
    }
    
    .contact-row {
        min-height: 200px; /* Reducir altura mínima */
    }
    
    .text-column {
        padding-top: 30px; /* Reducir padding top */
        align-items: flex-start; /* Mantener título a la izquierda */
    }
    
    .button-column {
        justify-content: flex-end; /* Alinear botón a la derecha */
        align-items: flex-end;
        padding-top: 0;
        padding-bottom: 30px; /* Reducir padding bottom */
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 65vh;
    }
    
    /* About section mobile reorganization */
    .about-section {
        padding: 60px 0;
    }
    
    /* Mostrar solo título móvil y ocultar el de desktop */
    .title-mobile-column {
        display: block;
        order: 1;
        margin-bottom: 15px; /* Reducido de 30px a 15px */
    }
    
    .desktop-title {
        display: none; /* Ocultar título duplicado en móvil */
    }
    
    /* Reorganizar con flexbox */
    .about-section .about-row {
        display: flex;
        flex-direction: column;
    }
    
    .about-section .image-column {
        order: 2;
        margin: 15px 0; /* Reducido de 30px a 15px arriba y abajo */
    }
    
    .about-section .content-column {
        order: 3;
    }
    
    .about-section .section-title {
        font-size: 28px;
        margin-bottom: 20px; /* Reducido de 30px a 20px */
    }
    
    /* Ocultar home-logo y scroll-arrow en móvil */
    .home-logo {
        display: none !important;
    }
    
    .scroll-arrow {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 65vh;
    }
    
    /* Ocultar home-logo y scroll-arrow en móvil pequeño */
    .home-logo {
        display: none !important;
    }
    
    .scroll-arrow {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Contact section mobile adjustments */
    .quote-section {
        margin-top: 0px !important;
    }
}