:root {
    --primary-green: #f4ede7;
    --dark-green: #63673d;
    --primary-color: #64683d;
    --facebook-color: #a35118;
    --mail-color: #5c6143;
    --phone-color: #cb8b54;
    --text-white: #ffffff;
}

/*====================NAVBAR===================*/
/*=============================================*/

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.active-link::after {
    width: 100%;
    background-color: #333;
    /* Color oscuro para la línea activa según tu diseño */
}


/*================ANIMACIONES================*/
/*=============================================*/
@keyframes floating {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes floating-slow {
    0% {
        transform: translateY(0px) rotate(45deg);
    }

    50% {
        transform: translateY(-15px) rotate(40deg);
    }

    100% {
        transform: translateY(0px) rotate(45deg);
    }
}

.animate-floating {
    animation: floating 6s ease-in-out infinite;
}

.animate-floating-slow {
    animation: floating-slow 8s ease-in-out infinite;
}

/* Corrección para la sombra del contenedor del formulario si Tailwind base está cargado */
.shadow-xl {
    --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}


/*================ESTIMATE FORM================*/
/*=============================================*/
.day-btn {
    @apply p-3 text-sm font-semibold rounded-full transition-all duration-300;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Efecto Hover: Círculo verde claro */
.day-btn:not(.opacity-20):hover {
    background-color: #F1FCEF;
    color: #63673d;
    transform: scale(1.1);
}

/* Día Seleccionado */
.active-day {
    background-color: #63673d !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(35, 70, 28, 0.4);
}

/* Aplicando estilos de Tailwind via CSS para limpieza */
#calendar-grid button {
    cursor: pointer;
}


/*====================FOOTER===================*/
/*=============================================*/

@keyframes float-slow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 30px);
    }
}

.animate-float-slow {
    animation: float-slow 10s ease-in-out infinite;
}

/* Animación para el icono de hoja en la lista */
.group:hover i {
    transform: translateX(5px) rotate(45deg);
}


/* Animaciones para hojas flotantes */
@keyframes floating {
    0% {
        transform: translateY(0px) rotate(12deg);
    }

    50% {
        transform: translateY(-15px) rotate(15deg);
    }

    100% {
        transform: translateY(0px) rotate(12deg);
    }
}

@keyframes floating-slow {
    0% {
        transform: translateY(0px) rotate(45deg);
    }

    50% {
        transform: translateY(-20px) rotate(40deg);
    }

    100% {
        transform: translateY(0px) rotate(45deg);
    }
}

.animate-floating {
    animation: floating 7s ease-in-out infinite;
}

.animate-floating-slow {
    animation: floating-slow 9s ease-in-out infinite;
}

/* Ajustes para el mosaico responsive */
@media (max-width: 1024px) {
    .grid-cols-2.grid-rows-2 {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .col-span-2,
    .row-span-1 {
        grid-column: span 1 / span 1;
    }
}



/* Animación de flotación para la hoja */
@keyframes floating {

    0%,
    100% {
        transform: translateY(0) rotate(12deg);
    }

    50% {
        transform: translateY(-20px) rotate(20deg);
    }
}

.animate-floating {
    animation: floating 6s ease-in-out infinite;
}

.active-dot {
    background-color: #f2eae4 !important;
    transform: scale(1.3);
    border-color: white !important;
}


/*====================SLIDER===================*/
/*=============================================*/

.slide[style*="opacity: 1"] h1,
.slide[style*="opacity: 1"] h2 {
    animation: fadeInLeft 1s both;
}

.slide[style*="opacity: 1"] p {
    animation: fadeInUp 1s 0.3s both;
}

.slide[style*="opacity: 1"] div.animate__animated {
    animation: zoomIn 0.8s 0.6s both;
}


/*==================CTA BUTTON=================*/
/*=============================================*/
.ctc-container {
    position: fixed;
    bottom: 25px;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
}
.ctc-main-btn {
    width: 48px;
    height: 52px;
    border-radius: 0 12px 12px 0;
    /* Bordes redondeados solo a la derecha */
    background-color: #cb8b54;
    color: #f4ede7;
    border: none;
    cursor: pointer;
    box-shadow: 3px 2px 12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.ctc-main-btn:hover,
.ctc-main-btn.active {
    background-color: #64683d;
    color: #f4ede7;
}

.ctc-main-btn.active i {
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.ctc-sub-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
    margin-left: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(15px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ctc-sub-buttons.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.ctc-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #cb8b54;
    color: #f4ede7;
    text-decoration: none;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.ctc-btn:hover {
    background-color: #64683d;
    color: #f4ede7;
    transform: scale(1.1);
}
/*=============================================*/