/* css/estilo.css - Estilos principales para la tienda VTuber */

/* ===== RESET Y ESTILOS BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fondo principal con mejor contraste */
body {
    font-family: 'Comic Sans MS', 'Nunito', system-ui, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 50%, #fce7f3 100%);
    min-height: 100vh;
    color: #831843; /* Color de texto por defecto más oscuro */
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* ===== MEJORES COLORES PARA TEXTO ===== */
/* Textos más oscuros para mejor visibilidad */
.text-kitty-pink-600 {
    color: #be185d !important; /* Más oscuro que el original */
}

.text-kitty-pink-700 {
    color: #9d174d !important;
}

.text-kitty-pink-800 {
    color: #831843 !important; /* El más oscuro */
}

/* Colores para textos sobre fondos claros */
.text-on-light {
    color: #831843;
}

.text-on-dark {
    color: #fce7f3;
}

/* ===== EFECTOS VISUALES ===== */
/* Efecto de brillo */
.highlight {
    position: relative;
    overflow: hidden;
}

.highlight::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

/* Animaciones de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== MEJORAS DE CONTRASTE PARA SECCIONES ===== */
/* Fondo blanco para textos importantes */
.text-container {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.1);
}

/* Sombra de texto para mejor legibilidad */
.text-shadow {
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.text-shadow-lg {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15);
}

/* ===== ESTILOS PARA PRODUCTOS ===== */
.product-card {
    transition: all 0.3s ease;
    background: white;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(236, 72, 153, 0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

/* ===== MEJORAS PARA EL HEADER ===== */
#header {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #ec4899, #db2777);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== ESTILOS PARA FORMULARIOS ===== */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #fbcfe8;
}

.form-input:focus {
    border-color: #ec4899;
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
    outline: none;
}

/* ===== BOTONES MEJORADOS ===== */
.btn-kitty {
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    font-weight: bold;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-kitty:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(236, 72, 153, 0.3);
    background: linear-gradient(135deg, #db2777, #be185d);
}

.btn-kitty-secondary {
    background: white;
    color: #ec4899;
    border: 2px solid #fbcfe8;
}

.btn-kitty-secondary:hover {
    background: #fdf2f8;
    border-color: #ec4899;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .text-container {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .product-card {
        margin-bottom: 1.5rem;
    }
    
    #mobile-menu {
        animation: fadeInUp 0.3s ease-out;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 1.75rem !important;
    }
    
    h2 {
        font-size: 1.5rem !important;
    }
}

/* ===== UTILIDADES ===== */
.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #fdf2f8;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #f472b6, #ec4899);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ec4899, #db2777);
}
/*cambios *//* Botón flotante de nube - Versión Mejorada */
.cloud-contact-btn {
    position: fixed;
    top: 100px; /* Bajada de 30px a 100px */
    right: 30px;
    z-index: 1000;
    animation: floatCloud 6s ease-in-out infinite;
    cursor: pointer;
    filter: drop-shadow(0 10px 20px rgba(236, 72, 153, 0.5));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0.98;
}

.cloud-contact-btn:hover {
    animation: floatCloudHover 3s ease-in-out infinite;
    transform: scale(1.15); /* Aumentado de 1.1 a 1.15 */
    filter: drop-shadow(0 15px 25px rgba(236, 72, 153, 0.6));
    opacity: 1;
}

.cloud-contact-btn:active {
    transform: scale(0.95);
}

.cloud-btn-container {
    position: relative;
    width: 130px; /* Aumentado de 110px */
    height: 90px; /* Aumentado de 75px */
    background: linear-gradient(145deg, #ffffff, #fdf2f8);
    border-radius: 50px;
    box-shadow: 
        0 10px 30px rgba(236, 72, 153, 0.3),
        inset 0 5px 15px rgba(255, 255, 255, 0.9),
        inset 0 -5px 15px rgba(236, 72, 153, 0.15),
        0 0 0 3px rgba(251, 207, 232, 0.3);
    border: 4px solid #fbcfe8;
}

/* Partes de la nube - más grandes y visibles */
.cloud-shape {
    position: absolute;
    background: linear-gradient(145deg, #ffffff, #fce7f3);
    border-radius: 50%;
    box-shadow: 
        0 3px 10px rgba(236, 72, 153, 0.2),
        inset 0 3px 6px rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(251, 207, 232, 0.5);
}

.cloud-top {
    top: -15px;
    left: 25px;
    width: 70px; /* Aumentado */
    height: 70px;
    background: linear-gradient(145deg, #ffffff, #fdf2f8);
}

.cloud-middle {
    top: 5px;
    left: 15px;
    width: 90px; /* Aumentado */
    height: 65px;
    background: linear-gradient(145deg, #ffffff, #fce7f3);
}

.cloud-bottom {
    top: 20px;
    left: 25px;
    width: 80px; /* Aumentado */
    height: 55px;
    background: linear-gradient(145deg, #ffffff, #fdf2f8);
}

.cloud-right {
    top: 10px;
    left: 65px;
    width: 65px; /* Aumentado */
    height: 65px;
    background: linear-gradient(145deg, #ffffff, #fce7f3);
}

/* Cara feliz en la nube - más grande */
.cloud-face {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    width: 45px; /* Aumentado */
    height: 35px;
}

.cloud-eyes {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.cloud-eye {
    width: 9px; /* Aumentado */
    height: 9px;
    background: #4B5563;
    border-radius: 50%;
    animation: blink 3s infinite;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.15);
}

.cloud-smile {
    width: 35px; /* Aumentado */
    height: 14px;
    margin: 0 auto;
    border-bottom: 3px solid #4B5563;
    border-radius: 0 0 15px 15px;
}

/* MENSAJE ABAJO de la nube (nueva posición) */
.cloud-message {
    position: absolute;
    top: 100%; /* Cambiado de bottom: 100% a top: 100% */
    right: 0;
    background: linear-gradient(145deg, #ffffff, #fdf2f8);
    backdrop-filter: blur(10px);
    padding: 14px 20px;
    border-radius: 20px 20px 20px 0; /* Cambiado el border-radius */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 3px solid #fbcfe8;
    margin-top: 15px; /* Cambiado de margin-bottom */
    opacity: 0;
    transform: translateY(-10px) scale(0.9); /* Cambiado de translateY(10px) a -10px */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    white-space: nowrap;
    z-index: 999;
    text-align: center;
    min-width: 140px;
}

.cloud-message::after {
    content: '';
    position: absolute;
    top: -8px; /* Cambiado de bottom: -8px a top: -8px */
    right: 18px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 255, 255, 0.98); /* Cambiado border-top a border-bottom */
}

.cloud-message::before {
    content: '';
    position: absolute;
    top: -10px; /* Cambiado de bottom: -10px a top: -10px */
    right: 17px;
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #fbcfe8; /* Cambiado border-top a border-bottom */
    z-index: -1;
}

.cloud-contact-btn:hover .cloud-message {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cloud-message-text {
    color: #831843;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

/* Corazones flotantes - más grandes */
.cloud-hearts {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.cloud-heart {
    position: absolute;
    color: #ec4899;
    font-size: 14px; /* Aumentado */
    opacity: 0;
    text-shadow: 0 3px 6px rgba(236, 72, 153, 0.3);
    filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.2));
}

.cloud-contact-btn:hover .cloud-heart {
    animation: floatHeart 2s ease-out forwards;
}

.cloud-heart:nth-child(1) { top: 10px; left: 20px; animation-delay: 0s; }
.cloud-heart:nth-child(2) { top: 5px; right: 25px; animation-delay: 0.2s; }
.cloud-heart:nth-child(3) { bottom: 15px; left: 15px; animation-delay: 0.4s; }
.cloud-heart:nth-child(4) { bottom: 20px; right: 20px; animation-delay: 0.6s; }

/* Animaciones actualizadas */
@keyframes floatCloud {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(2deg);
    }
    66% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

@keyframes floatCloudHover {
    0%, 100% {
        transform: translateY(0) scale(1.15) rotate(0deg);
    }
    33% {
        transform: translateY(-12px) scale(1.15) rotate(3deg);
    }
    66% {
        transform: translateY(-7px) scale(1.15) rotate(-2deg);
    }
}

@keyframes blink {
    0%, 90%, 100% {
        transform: scaleY(1);
    }
    95% {
        transform: scaleY(0.1);
    }
}

@keyframes floatHeart {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(-10px) scale(1.1);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.5);
    }
}

/* Efecto de pulso para llamar la atención */
@keyframes attentionPulse {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(236, 72, 153, 0.4),
            inset 0 5px 15px rgba(255, 255, 255, 0.9),
            inset 0 -5px 15px rgba(236, 72, 153, 0.2),
            0 0 0 3px rgba(251, 207, 232, 0.3);
    }
    50% {
        box-shadow: 
            0 10px 30px rgba(236, 72, 153, 0.6),
            inset 0 5px 15px rgba(255, 255, 255, 0.9),
            inset 0 -5px 15px rgba(236, 72, 153, 0.3),
            0 0 0 3px rgba(251, 207, 232, 0.5),
            0 0 20px rgba(236, 72, 153, 0.4);
    }
}

.cloud-contact-btn.attention {
    animation: floatCloud 6s ease-in-out infinite, attentionPulse 1.5s ease-in-out infinite;
}

/* Efecto de brillo */
@keyframes gentleGlow {
    0%, 100% {
        filter: drop-shadow(0 10px 20px rgba(236, 72, 153, 0.5));
    }
    50% {
        filter: drop-shadow(0 10px 20px rgba(236, 72, 153, 0.7)) brightness(1.05);
    }
}

.cloud-contact-btn {
    animation: floatCloud 6s ease-in-out infinite, gentleGlow 3s ease-in-out infinite;
}

/* Responsive para nueva posición */
@media (max-width: 768px) {
    .cloud-contact-btn {
        top: 80px; /* Ajustado */
        right: 20px;
        transform: scale(0.9);
        opacity: 0.95;
    }
    
    .cloud-contact-btn:hover {
        transform: scale(1.05);
    }
    
    .cloud-btn-container {
        width: 110px;
        height: 80px;
    }
    
    .cloud-message {
        font-size: 13px;
        padding: 12px 16px;
        min-width: 120px;
        backdrop-filter: blur(8px);
    }
}

@media (max-width: 480px) {
    .cloud-contact-btn {
        top: 70px;
        right: 15px;
        transform: scale(0.85);
    }
    
    .cloud-btn-container {
        width: 100px;
        height: 70px;
    }
    
    .cloud-message {
        min-width: 110px;
        font-size: 12px;
        padding: 10px 14px;
    }
}

/* Para evitar que se superponga con otros elementos */
@media (max-width: 1024px) {
    .cloud-contact-btn {
        top: 90px;
        right: 25px;
    }
}

/* Asegurar que no interfiera con el header */
header {
    z-index: 1001; /* Un nivel más alto que la nube */
}