/* ========================================
   BASE.CSS - DPI del Perú
   Estilos base y reseteo CSS
======================================== */

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Enlaces - Prevenir comportamiento de selección en dispositivos táctiles */
a {
    /* Prevenir el comportamiento de selección en dispositivos táctiles */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 1.6vh;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 1.6vh;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark-blue);
}

/* Botones */
.cta-button {
    background: var(--primary-blue);
    color: var(--primary-white);
    padding: 2vh 4vh;
    border: none;
    border-radius: 10vh;
    font-size: 2vh;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease !important;
}

.cta-button:hover {
    background: var(--secondary-blue);
    transform: scale(1.05) !important;
    transition: all 0.3s ease !important;
}

.conoce-mas-btn {
    display: inline-flex;
    align-items: center;
    gap: 1vh;
    color: var(--primary-white);
    border: 0.3vh solid;
    text-decoration: none;
    font-weight: 600;
    font-size: 2vh;
    padding: 2vh 3vh;
    border-radius: 10vh;
    transition: all 0.3s ease !important;
    text-transform: uppercase;
    letter-spacing: 0.2vh;
}

.conoce-mas-btn:hover {
    transform: scale(1.05) !important;
    transition: all 0.3s ease !important;
}

.conoce-mas-btn i {
    font-size: 3vh;
    transition: transform 0.3s ease;
}

.conoce-mas-btn:hover i {
    transform: translateX(0.8vh);
}

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 4vh;
    right: 4vh;
    width: 10vh;
    height: 10vh;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-white);
    font-size: 5vh;
    text-decoration: none;
    box-shadow: 0 0.8vh 4vh rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background: #20BA5A;
    color: var(--primary-white);
    transform: scale(1.1);
    box-shadow: 0 1.3vh 5.5vh rgba(37, 211, 102, 0.6);
}

/* Tooltip de WhatsApp */
.whatsapp-tooltip {
    position: absolute;
    right: 12vh;
    background: white;
    color: #333;
    padding: 1.5vh 2vh;
    border-radius: 5vh;
    font-size: 1.5vh;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -1.7vh;
    top: 50%;
    transform: translateY(-50%);
    border: 1vh solid transparent;
    border-left-color: white;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 12vh;
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
} 


.btn-siguiente, .btn-anterior, .btn-prev {
    width: 9.5vh;
    height: 9.5vh;
    border-radius: 50%;
    background: none;
    border: none;
    color: white;
    font-size: 4vh;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-siguiente:hover, .btn-anterior:hover, .btn-prev:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

@media (min-width: 1281px) {
    .cta-button {
        font-size: 2.5vh;
    }
}

@media (max-width: 870px) {
    .whatsapp-float {
        width: 8vh;
        height: 8vh;
        font-size: 4vh;
        bottom: 3.5vh;
        right: 3.5vh;
    }
    
    .whatsapp-tooltip {
        right: 10vh;
        padding: 0.8vh 1.5vh;
    }
    
    .whatsapp-float:hover .whatsapp-tooltip {
        right: 10vh;
    }
}

@media (max-width: 576px) {
    .conoce-mas-btn {
        padding: 1.6vh 4vh;
    }

    .cta-button {
        font-size: 1.8vh;
    }
}

@media (max-width: 480px) {
    .btn-siguiente, .btn-anterior, .btn-prev {
        width: 7.5vh;
        height: 7.5vh;
    }

    .cta-button {
        margin-bottom: 6vh;
    }
}