/* estilos.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f8fafc;
}

/* Animaciones personalizadas */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes glow {
    from { box-shadow: 0 0 20px rgba(255, 107, 53, 0.5); }
    to { box-shadow: 0 0 30px rgba(255, 107, 53, 0.8); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Gradientes modernos */
.gradient-primary {
    background: linear-gradient(135deg, #640000 0%, #8b0000 50%, #ff6b35 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Carrusel mejorado */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-slide {
    display: none;
    animation: fadeInUp 0.8s ease-out;
}

.carousel-slide.active {
    display: block;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #ff6b35;
    transform: scale(1.3);
}

/* Tarjetas mejoradas */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-15px) rotate(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Botón WhatsApp mejorado */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    animation: float 3s ease-in-out infinite;
}

.whatsapp-button:hover {
    animation: glow 1s ease-in-out infinite alternate;
}

/* Navegación sticky mejorada */
.navbar-scroll {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(100, 0, 0, 0.1);
}

/* Iconos de redes sociales mejorados */
.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.social-icon:hover:before {
    left: 100%;
}

/* Efectos de texto */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.page {
    display: none;
}

.page.active {
    display: block;
}

/* Responsive mejoras */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .carousel-slide h1 {
        font-size: 2.5rem;
    }
}

/* Estilos para el navbar fijo */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Ajuste para que el contenido no quede oculto detrás del navbar fijo */
body {
    padding-top: 80px;
}

/* Ajustes responsivos para el navbar fijo */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
}


/* Solución simple para eliminar el espacio en blanco */
.gradient-primary {
    margin-top: -80px; /* Compensa el padding-top del body */
    padding-top: 5px;  /* Mantiene el espacio para el navbar */
}