/*			FIRMA DE CODIGO 
		==================================================
		* Project : Sitio Principal, Renta y Venta - Amali Ruiz.
		* Author : Dominic Er - Icodmin - Gemini 2.5
		* Author URL : https://www.facebook.com/icodmin/ https://icodmin.com.mx/
		* Date : 23/07/2025
		
		* update : 23/07/2025 07:05 PM CST
		================================================== */

/* --- Estilos del Canvas de Fondo --- */
#backgroundCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    background-color: #E6E7E8;
}

/* --- Contenedor Principal del Contenido --- */
#content-wrapper {
    position: relative;
    z-index: 1;
    background-color: transparent; /* Permite ver el canvas a través de los espacios vacíos */
}


/* --- Hero Section Styles --- */
#hero {
    /* No se necesita scroll-snap */
}

.hero-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: auto;
    opacity: 0.4;
    z-index: 2;
    pointer-events: none;
}

#scroll-down-arrow {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -20px);
    }
    60% {
        transform: translate(-50%, -10px);
    }
}

/* Animations for Hero Content */
.animate-fade-in-down {
    animation: fadeInDown 1s ease-out forwards;
    opacity: 0;
}
.animate-fade-in-up {
    animation: fadeInUp 1s ease-out 0.5s forwards;
    opacity: 0;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- General Styles --- */
html {
    scroll-behavior: smooth;
}

/* Opcional: Estilos para el efecto de hover en los botones de sección (si no están cubiertos por .c21-button-gold) */
.inline-block.bg-c21-gold:hover {
    transform: translateY(-2px); /* Un ligero levantamiento al pasar el mouse */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada */
}

/* Estilos para el iframe del mapa */
iframe {
    border-radius: 0.75rem; /* rounded-xl de Tailwind */
}

/* Ajustes responsivos para el texto del footer en pantallas pequeñas */
@media (max-width: 640px) { /* Tailwind's 'sm' breakpoint */
    footer p, footer nav a {
        font-size: 0.75rem; /* Texto más pequeño en móviles */
    }
    footer .flex-col.sm:flex-row {
        flex-direction: column;
        align-items: center;
    }
    footer nav {
        margin-top: 1rem;
    }
}

/* --- Estilos para el efecto de fade-in al cargar la página --- */
body {
    opacity: 1; /* Estado final por defecto */
    transition: opacity 1s ease-in-out; /* Transición suave de 1 segundo */
}

body.fade-in-on-load {
    opacity: 0; /* Estado inicial cuando la clase está presente */
}

/* --- Estilos para las secciones que aparecen al hacer scroll --- */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Estilos para el botón flotante de WhatsApp --- */
.whatsapp-float-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* Color de WhatsApp */
    color: white;
    border-radius: 50px; /* Más redondeado para parecer píldora */
    padding: 10px 20px 10px 10px; /* Ajuste para el ícono y el texto */
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease-in-out;
    z-index: 999; /* Asegura que esté por encima de todo */
    white-space: nowrap; /* Evita que el texto se rompa */
    overflow: hidden; /* Oculta el texto por defecto en móvil */
    max-width: 60px; /* Ancho inicial para el círculo */
}

.whatsapp-float-btn:hover {
    background-color: #1DA851; /* Tono más oscuro al pasar el mouse */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    max-width: 200px; /* Expande el ancho al pasar el mouse */
}

.whatsapp-icon-container {
    width: 40px; /* Tamaño del contenedor del ícono */
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.1); /* Fondo sutil para el ícono */
    border-radius: 50%;
    flex-shrink: 0; /* Evita que el ícono se encoja */
}

.whatsapp-float-btn img {
    width: 24px; /* Tamaño del SVG de WhatsApp */
    height: 24px;
    vertical-align: middle;
}

.whatsapp-text {
    margin-left: 10px;
    color: white; /* Asegura que el texto sea blanco */
    display: none; /* Oculto por defecto, visible en hover/desktop */
}

/* Mostrar texto en pantallas más grandes o al hacer hover */
@media (min-width: 768px) { /* Tailwind's 'md' breakpoint */
    .whatsapp-float-btn {
        max-width: 200px; /* Ancho completo en desktop */
        padding: 10px 20px;
    }
    .whatsapp-text {
        display: block; /* Siempre visible en desktop */
    }
    .whatsapp-float-btn:hover {
        max-width: 200px; /* No cambia el ancho en hover si ya está expandido */
    }
}

/* Ajustes para pantallas muy pequeñas, si el botón es demasiado grande */
@media (max-width: 480px) {
    .whatsapp-float-btn {
        bottom: 15px;
        right: 15px;
        padding: 8px 15px 8px 8px; /* Reducir padding */
        max-width: 50px; /* Más pequeño en móviles */
    }
    .whatsapp-icon-container {
        width: 35px;
        height: 35px;
    }
    .whatsapp-float-btn img {
        width: 20px;
        height: 20px;
    }
    .whatsapp-text {
        font-size: 0.8rem; /* Texto más pequeño */
    }
}


/* --- Swiper Carousel Styles --- */
.swiper-container {
    width: 100%;
    padding-bottom: 50px; /* Space for pagination */
}

.swiper-slide {
    height: auto; /* Ensure slides stretch to content height */
    display: flex;
    justify-content: center;
}

/* Customizing Swiper Navigation Arrows */
.swiper-button-next, .swiper-button-prev {
    color: #BEAF87; /* c21-gold */
    background-color: rgba(37, 37, 38, 0.7); /* c21-dark with transparency */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
    background-color: rgba(37, 37, 38, 1); /* Solid c21-dark */
    color: #A19276; /* c21-dark-gold */
}

.swiper-button-next::after, .swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
}

/* Customizing Swiper Pagination Dots */
.swiper-pagination-bullet {
    background-color: #A19276; /* c21-dark-gold */
    opacity: 0.6;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #BEAF87; /* c21-gold */
    opacity: 1;
    transform: scale(1.2);
}

.swiper-pagination-hero .swiper-pagination-bullet {
    background-color: white;
}
.swiper-pagination-hero .swiper-pagination-bullet-active {
    background-color: #BEAF87; /* c21-gold */
}

/* Nueva clase para los botones primarios (como el de cálculo) */
.c21-button-gold {
    background-color: #BEAF87; /* c21-gold */
    color: #252526; /* c21-dark */
    font-weight: bold;
    padding: 12px 32px; /* py-3 px-8 */
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); /* shadow-lg */
    transition: all 0.3s ease-in-out; /* transition-all duration-300 ease-in-out */
    transform: translateY(0); /* Estado inicial para el hover */
    display: inline-block;
    text-decoration: none;
}

.c21-button-gold:hover {
    background-color: #A19276; /* c21-dark-gold */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); /* hover:shadow-xl */
    transform: translateY(-4px); /* hover:-translate-y-1 */
}

.c21-button-gold:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(190, 175, 135, 0.5); /* focus:ring-2 focus:ring-c21-gold focus:ring-opacity-75 */
}

