/* ========================================
   BASE.CSS - FUENTES, RESETS Y UTILIDADES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scrollbar-gutter: stable;
    height: 100%;
}

body {
    height: 100%;
    margin: 0;
    font-family: 'montserrat', Arial, sans-serif;
    background: white;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

body.loaded {
    opacity: 1;
}

body.is-leaving {
    opacity: 0;
}

/* RESET DE ENLACES (Quita azul y subrayado) */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Contenedores Genéricos */
.contenedor {
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

.titulo {
    color: #5e1c26;
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
    padding: 0 20px;
}

/* Botones y Utilidades Comunes */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #5e1c26;
    color: white;
}

.btn-primary:hover {
    background: #4a1620;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 28, 38, 0.3);
}

/* (Mantén aquí tus estilos de WhatsApp igual que antes...) */
.whatsapp-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.whatsapp-button {
    width: 60px;
    height: 60px;
    background-color: #5e1c26;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 14px rgba(94, 28, 38, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.whatsapp-button:hover {
    transform: scale(1.1) rotate(-5deg);
    background-color: #4a1620;
    box-shadow: 0 6px 20px rgba(94, 28, 38, 0.6);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
    fill: #fffac2;
    transition: fill 0.3s;
    position: relative;
    left: 1px;
    bottom: 1px;
}

.whatsapp-menu {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    padding: 10px 0;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.whatsapp-container:hover .whatsapp-menu,
.whatsapp-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    text-decoration: none;
    color: #5e1c26;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
}

.wa-option:hover {
    background-color: #fffac2;
}

@media (max-width: 800px) {
    .whatsapp-button {
        width: 55px;
        height: 55px;
    }

    .whatsapp-container {
        bottom: 20px;
        right: 20px;
    }
}

/* ========================================
   SKELETON LOADERS
   ======================================== */
.skeleton {
    background: #f1f5f9;
    background-image: linear-gradient(90deg,
            #f1f5f9 0px,
            #e2e8f0 40px,
            #f1f5f9 80px);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite linear;
    border-radius: 8px;
    display: block;
}

@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: 200px 0;
    }
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    width: 100%;
}

.skeleton-title {
    height: 24px;
    margin-bottom: 12px;
    width: 60%;
}

.skeleton-image {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 15px;
}