/* ==========================================================================
   ESTILOS GENERALES Y VARIABLES DE COLOR
   ========================================================================== */
* { 
    font-family: 'Inter', sans-serif; 
    box-sizing: border-box;
}

.bg-verde-marca { background-color: #54B45C; }
.text-verde-marca { color: #54B45C; }
.border-verde-marca { border-color: #54B45C; }

.bg-gris-oscuro { background-color: #1F2937; }
.text-gris-oscuro { color: #1F2937; }

.bg-gris-medio { background-color: #4B5563; }
.text-gris-medio { color: #4B5563; }

.bg-gris-claro { background-color: #F3F4F6; }
.text-gris-claro { color: #F3F4F6; }

/* ==========================================================================
   ANIMACIONES MODERNAS
   ========================================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideAnimation {
    0% { opacity: 0; transform: scale(1.05); }
    5% { opacity: 1; transform: scale(1); }
    30% { opacity: 1; transform: scale(1); }
    35% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 0; transform: scale(1.05); }
}

/* ==========================================================================
   COMPONENTES (SLIDER, GLASS, CARDS)
   ========================================================================== */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: slideAnimation 15s infinite;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 5s; }
.slide:nth-child(3) { animation-delay: 10s; }

.glass-effect {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.service-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.menu-dark {
    background: rgba(0, 0, 0, 0.65) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(84, 180, 92, 0.3);
}

/* ==========================================================================
   BOTONES CTA PERSONALIZADOS
   ========================================================================== */
.btn-cta-custom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 1rem 2.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 300px;
}

.icon-circle-custom {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

/* WhatsApp - Verde */
.btn-ws-verde {
    background-color: #54B45C;
    color: white;
}
.btn-ws-verde .icon-circle-custom {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}
.btn-ws-verde:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(84, 180, 92, 0.3);
}
.btn-ws-verde:hover .icon-circle-custom {
    background-color: white;
    color: #54B45C;
}

/* Llamar - Oscuro Outline */
.btn-tel-outline {
    border: 2px solid #1F2937;
    color: #1F2937;
    background-color: transparent;
}
.btn-tel-outline .icon-circle-custom {
    background-color: #F3F4F6;
    color: #1F2937;
}
.btn-tel-outline:hover {
    background-color: #1F2937;
    color: white;
}
.btn-tel-outline:hover .icon-circle-custom {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ==========================================================================
   SISTEMA DE MODALES
   ========================================================================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 2.5rem;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: modalIn 0.4s ease-out;
}

/* ==========================================================================
   AJUSTES PARA MÓVILES
   ========================================================================== */
@media (max-width: 768px) {
    .modal-content {
        border-radius: 1.5rem;
        max-height: 95vh;
    }
    .modal-padding {
        padding: 2rem 1.5rem !important;
    }
    .modal-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .modal-img {
        height: 200px !important;
    }
    .modal-title {
        font-size: 1.875rem !important; /* text-3xl */
    }
    .btn-cta-custom {
        min-width: 100%;
    }
}