/* Este archivo debe ser guardado como 'assets/css/styles.css' */

/* Estilos generales */
:root {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Estilos de navegación */
.nav-link {
    position: relative;
    color: #2A2A2A;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.dark .nav-link {
    color: #F8F9FA;
}

.nav-link:hover {
    color: #FF6B00;
}

.nav-link.active {
    color: #FF6B00;
    font-weight: 600;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #FF6B00;
}

/* Estilos de navegación móvil */
.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    color: #2A2A2A;
    font-weight: 500;
    border-bottom: 1px solid #e5e7eb;
    transition: color 0.3s;
}

.dark .mobile-nav-link {
    color: #F8F9FA;
    border-bottom-color: #4B5563;
}

.mobile-nav-link:hover {
    color: #FF6B00;
}

.mobile-nav-link.active {
    color: #FF6B00;
    font-weight: 600;
}

/* Botones */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #FF6B00;
    color: white;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #E55D00;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #2A2A2A;
    color: white;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.dark .btn-secondary {
    background-color: #F8F9FA;
    color: #2A2A2A;
}

.btn-secondary:hover {
    background-color: #1A1A1A;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark .btn-secondary:hover {
    background-color: #FFFFFF;
}

.btn-primary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: #FF6B00;
    font-weight: 600;
    border: 2px solid #FF6B00;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.btn-primary-outline:hover {
    background-color: #FF6B00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: #FF6B00;
    font-weight: 600;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.btn-white:hover {
    background-color: #F8F9FA;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-white-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: white;
    font-weight: 600;
    border: 2px solid white;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.btn-white-outline:hover {
    background-color: white;
    color: #FF6B00;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Botón de WhatsApp flotante */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    z-index: 50;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Estilos para el botón de tema - forma circular perfecta */
#theme-toggle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: rotate(15deg);
}

/* Estilos para los acordeones de servicios */
.service-content {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    overflow: hidden;
    padding-bottom: 0;
}

.service-content:not(.max-h-0) {
    max-height: 1000px;
    padding-bottom: 1.5rem;
}

.service-icon {
    transition: transform 0.3s ease;
}

.service-toggle:hover .service-icon {
    transform: translateX(3px);
}

.service-content:not(.max-h-0) .service-icon {
    transform: rotate(90deg);
}

/* Asegurar que los contenedores de servicio no tengan espacio extra */
.bg-white.rounded-lg.shadow-md, 
.dark .bg-secondary.rounded-lg.shadow-md {
    overflow: hidden;
}


/* Slider de marcas */
.brands-slider-container {
    position: relative;
    margin: 2rem 0;
    padding: 1rem 0;
    overflow: hidden;
    width: 100%;
}

.brands-slider-track {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 0;
    will-change: transform;
}

.brand-slide {
    flex: 0 0 auto;
    width: calc(160px * 1.15);
    height: calc(100px * 1.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.7);
}

.dark .brand-slide {
    background-color: rgba(30, 41, 59, 0.3);
}

.brand-slide img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
}

.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    background-color: #e5e7eb;
    color: #2A2A2A;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dark .slider-control {
    background-color: white;
    color: #2A2A2A;
}

.slider-control:hover {
    transform: translateY(-50%) scale(1.1);
}

.slider-control.prev {
    left: 0;
}

.slider-control.next {
    right: 0;
}

.slider-control svg {
    width: 20px;
    height: 20px;
}

/* Estilos para el modal del calendario */
#calendar-modal {
    transition: opacity 0.3s ease;
}

/* Asegurar que el input de fecha se vea bien en modo oscuro */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.5);
}

.dark input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

/* Estilo para cuando el modal está visible */
#calendar-modal:not(.hidden) {
    display: flex;
    opacity: 1;
}

/* Estilo para el mensaje de éxito */
#success-alert {
    transition: opacity 0.5s ease;
}

/* Estilo para el botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    z-index: 50;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}