/**
 * kenkoCream - Estilos Principales
 * Diseño moderno, responsive y atractivo para la landing page
 */

/* ==================== VARIABLES GLOBALES ==================== */
:root {
    /* Colores principales */
    --primary-color: #FF6B6B;
    --primary-dark: #FF5252;
    --primary-light: #FF8E8E;
    --secondary-color: #FFB347;
    --dark-color: #2C3E50;
    --light-color: #F8F9FA;
    --success-color: #28A745;
    --warning-color: #FFC107;
    --danger-color: #DC3545;

    /* Colores neutros */
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;

    /* Espaciado */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Playfair Display', Georgia, serif;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);

    /* Bordes */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== RESET Y ESTILOS BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    background-color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Tipografía */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ==================== UTILIDADES ==================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.section-padding {
    padding: var(--spacing-3xl) 0;
}

/* Divisor decorativo */
.divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: var(--spacing-md) 0 var(--spacing-lg);
    border-radius: var(--radius-full);
}

.divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* ==================== COMPONENTES ==================== */

/* Botones */
.btn {
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-success {
    background: #25D366;
    border: none;
}

.btn-success:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.hover-card {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* ==================== NAVBAR ==================== */
.navbar {
    transition: all var(--transition-normal);
    padding: var(--spacing-md) 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-brand i {
    font-size: 1.75rem;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all var(--transition-normal);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Navbar transparente en scroll */
.navbar-scrolled {
    background: white !important;
    box-shadow: var(--shadow-md);
    padding: var(--spacing-sm) 0;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE4E1 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23FF6B6B" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,170.7C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    pointer-events: none;
}

/* ======================================================
   ESTILOS PARA IMAGEN PRINCIPAL DEL HERO
   ====================================================== */

.hero-main-image {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15));
    max-height: 500px;
    width: auto;
    margin: 0 auto;
}

/* Efecto sutil al pasar el mouse */
.hero-main-image:hover {
    transform: scale(1.02) translateY(-8px);
    filter: drop-shadow(0 30px 35px rgba(0, 0, 0, 0.2));
}

/* Animación de entrada suave */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-main-image {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Versión responsiva */
@media (max-width: 992px) {
    .hero-main-image {
        max-height: 400px;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-main-image {
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .hero-main-image {
        max-height: 250px;
    }
}

/* Efecto de brillo al cargar */
.hero-main-image {
    position: relative;
}

@keyframes softGlow {
    0% {
        filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15)) brightness(1);
    }

    50% {
        filter: drop-shadow(0 20px 30px rgba(255, 107, 107, 0.3)) brightness(1.02);
    }

    100% {
        filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.15)) brightness(1);
    }
}

.hero-main-image {
    animation: fadeInUp 0.8s ease-out forwards, softGlow 3s ease-in-out 0.8s;
}


.promo-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E8E);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    animation: pulse 2s infinite;
    transform: rotate(5deg);
}

@keyframes pulse {

    0%,
    100% {
        transform: rotate(5deg) scale(1);
    }

    50% {
        transform: rotate(5deg) scale(1.05);
    }
}

/* ======================================================
   CANVAS ANIMADO - PREPARACIÓN DE FRESAS CON CREMA
   ====================================================== */

.preparation-canvas-container {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.preparation-canvas-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.15);
}

#preparationCanvas {
    display: block;
    width: 100%;
    height: auto;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE4E1 100%);
    cursor: pointer;
}

.canvas-caption {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    margin: 0 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #FF6B6B;
    font-weight: 500;
    pointer-events: none;
}

/* Animación de pulso para el botón de play */
@keyframes pulsePlay {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.canvas-caption i {
    animation: pulsePlay 1.5s ease-in-out infinite;
    display: inline-block;
}

/* ======================================================
   MODAL TRANSPARENTE CON DEGRADADO PERSONALIZADO
   ====================================================== */

/* Fondo del modal - semitransparente para ver el contenido detrás */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(3px);
}

/* Contenedor del modal */
.modal-content {
    background: transparent;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Header del modal con degradado sólido */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #FF6B6B 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: none;
    position: relative;
    overflow: hidden;
}

/* Decoración de fresas en el header del modal */
.modal-header::before {
    content: '🍓';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    opacity: 0.15;
    pointer-events: none;
}

.modal-header::after {
    content: '🍓';
    position: absolute;
    left: 20px;
    bottom: -15px;
    font-size: 2.5rem;
    opacity: 0.1;
    pointer-events: none;
}

/* Título del modal */
.modal-header .modal-title {
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botón cerrar del modal */
.modal-header .btn-close {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    padding: 0.5rem;
    opacity: 1;
    transition: all 0.3s ease;
}

.modal-header .btn-close:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: rotate(90deg);
}

/* ======================================================
   CUERPO DEL MODAL CON DEGRADADO PERSONALIZADO
   background: #667EEA;
   background: linear-gradient(133deg, rgba(102, 126, 234, 1) 0%, rgba(255, 107, 107, 0.4) 50%);
   ====================================================== */
.modal-body {
    background: #667EEA;
    background: linear-gradient(133deg, rgba(102, 126, 234, 1) 0%, rgba(255, 107, 107, 0.4) 50%);
    padding: 1.75rem;
    position: relative;
}

/* Efecto de vidrio esmerilado sobre el degradado para mejor legibilidad */
.modal-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 0;
}

/* Todo el contenido del body debe estar por encima del overlay */
.modal-body>* {
    position: relative;
    z-index: 1;
}

/* Footer del modal - semi-transparente para continuar con el degradado */
.modal-footer {
    background: rgba(102, 126, 234, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.75rem;
}

/* Estilos para los campos del formulario dentro del modal - fondo blanco para contraste */
.modal-body .form-control,
.modal-body .form-select {
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    transition: all 0.3s ease;
    color: #2d3748;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: #FF6B6B;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
    background-color: white;
    transform: translateY(-1px);
}

/* Etiquetas del formulario - color blanco para contraste sobre el degradado */
.modal-body .form-label {
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Texto de ayuda (form-text) */
.modal-body .form-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
}

/* Total display dentro del modal */
.modal-body .alert-info {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 16px;
    color: #4a5568;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Botones del modal */
.modal-footer .btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #4a5568;
    transition: all 0.3s ease;
}

.modal-footer .btn-secondary:hover {
    background: white;
    transform: translateY(-2px);
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #667eea, #FF6B6B);
    border: none;
    transition: all 0.3s ease;
    color: white;
}

.modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Estilo para el campo de comprobante */
#comprobanteContainer {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    padding: 1rem;
    border-radius: 16px;
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Previsualización del comprobante */
#comprobantePreview img {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 2px solid white;
}

/* Mensajes dentro del modal */
.modal-body .alert {
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.95);
}

.modal-body .alert-success {
    background: rgba(40, 167, 69, 0.95);
    color: white;
}

.modal-body .alert-danger {
    background: rgba(220, 53, 69, 0.95);
    color: white;
}

/* Scrollbar personalizada dentro del modal */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: white;
}

/* Select múltiple dentro del modal */
.modal-body select[multiple] {
    background-color: rgba(255, 255, 255, 0.95);
}

.modal-body select[multiple] option {
    padding: 0.5rem;
    border-radius: 8px;
}

.modal-body select[multiple] option:checked {
    background: linear-gradient(135deg, #667eea, #FF6B6B);
    color: white;
}

/* Animación de entrada del modal */
.modal.fade .modal-dialog {
    transform: scale(0.95) translateY(-20px);
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
}

/* Animación de glow al abrir */
@keyframes modalGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(102, 126, 234, 0);
    }
}

.modal.show .modal-content {
    animation: modalGlow 0.5s ease-out;
}

/* Responsive: ajustes en móviles */
@media (max-width: 768px) {
    .modal-content {
        margin: 0 1rem;
        border-radius: 20px;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-header::before {
        font-size: 2rem;
        right: 15px;
    }

    .modal-header::after {
        font-size: 1.8rem;
        left: 15px;
        bottom: -10px;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-footer {
        padding: 0.75rem 1.25rem;
    }

    .modal-body .form-label {
        font-size: 0.9rem;
    }
}

/* Mejora en el placeholder de los inputs */
.modal-body .form-control::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-size: 0.85rem;
}

/* Efecto hover en los campos del formulario */
.modal-body .form-control:hover,
.modal-body .form-select:hover {
    background-color: white;
    transform: translateY(-1px);
}


/* Versión ultra transparente - efecto vidrio total */
.transparent-modal {
    background: transparent;
}

.transparent-modal .modal-content {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.transparent-modal .modal-body {
    background: transparent;
}

.transparent-modal .modal-footer {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
}

/* ==================== PRODUCTOS ==================== */
.product-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: white;
    transition: all var(--transition-normal);
}

.product-card img {
    transition: transform var(--transition-slow);
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-price {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--primary-color);
    color: white;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    z-index: 1;
}

/* ==================== BENEFICIOS ==================== */
.benefit-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-lg);
    transition: transform var(--transition-normal);
}

.benefit-icon i {
    font-size: 2rem;
    color: white;
}

.benefit-item:hover .benefit-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ==================== TESTIMONIOS ==================== */
.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    position: relative;
    transition: all var(--transition-normal);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 4rem;
    color: var(--primary-light);
    font-family: var(--font-secondary);
    opacity: 0.5;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.testimonial-stars {
    color: #FFC107;
    margin-bottom: var(--spacing-md);
}

/* ==================== FORMULARIO ==================== */
.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--gray-700);
}

/* ==================== FOOTER ==================== */
footer {
    background: var(--gray-900);
    color: var(--gray-400);
}

footer h5 {
    color: white;
    margin-bottom: var(--spacing-lg);
}

footer a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--primary-color);
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    text-align: center;
    line-height: 40px;
    transition: all var(--transition-fast);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* ==================== BOTÓN WHATSAPP FLOTANTE ==================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: all var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==================== BOTÓN BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ==================== ANIMACIONES ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.slide-up {
    animation: fadeIn 0.6s ease forwards;
}

/* ==================== MEDIA QUERIES ==================== */

/* Tablets */
@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: var(--spacing-2xl) 0;
    }
}

/* Móviles */
@media (max-width: 768px) {
    :root {
        --spacing-3xl: 2rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }

    .back-to-top {
        bottom: 80px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .hero-section {
        text-align: center;
    }

    .divider {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    .testimonial-card {
        padding: var(--spacing-lg);
    }
}

/* ==================== UTILIDADES ADICIONALES ==================== */

/* Texto gradiente */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Sombras personalizadas */
.shadow-hover {
    transition: box-shadow var(--transition-normal);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-lg);
}

/* Bordes redondeados */
.rounded-custom {
    border-radius: var(--radius-lg);
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Prevenir selección en elementos interactivos */
.btn,
.nav-link,
[role="button"] {
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Loading spinner personalizado */
.spinner-custom {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ======================================================
   ANIMACIONES DE FRESAS REBOTANDO
   ====================================================== */

/* Contenedor de las fresas animadas */
.hero-strawberries {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    /* Para que no interfieran con los clics */
    z-index: 1;
}

/* Estilo base para cada fresa */
.strawberry {
    position: absolute;
    font-size: 2rem;
    user-select: none;
    animation: bounce 2s ease-in-out infinite;
    opacity: 0.6;
    transition: transform 0.3s ease;
    filter: drop-shadow(2px 4px 8px rgba(0, 0, 0, 0.1));
}

/* Variaciones de tamaño */
.strawberry-small {
    font-size: 1.5rem;
}

.strawberry-medium {
    font-size: 2rem;
}

.strawberry-large {
    font-size: 3rem;
}

/* Posiciones iniciales aleatorias - se asignarán con JS */
.strawberry-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.strawberry-2 {
    top: 20%;
    right: 8%;
    animation-delay: 0.2s;
}

.strawberry-3 {
    bottom: 15%;
    left: 10%;
    animation-delay: 0.5s;
}

.strawberry-4 {
    bottom: 25%;
    right: 12%;
    animation-delay: 0.7s;
}

.strawberry-5 {
    top: 50%;
    left: 2%;
    animation-delay: 0.3s;
}

.strawberry-6 {
    top: 60%;
    right: 3%;
    animation-delay: 0.9s;
}

.strawberry-7 {
    bottom: 5%;
    left: 20%;
    animation-delay: 0.1s;
}

.strawberry-8 {
    top: 15%;
    right: 20%;
    animation-delay: 0.6s;
}

.strawberry-9 {
    bottom: 40%;
    left: 85%;
    animation-delay: 0.4s;
}

.strawberry-10 {
    top: 75%;
    left: 45%;
    animation-delay: 0.8s;
}

/* Animación de rebote */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(15deg);
    }
}

/* Animación de rebote con movimiento horizontal */
@keyframes bounceHorizontal {

    0%,
    100% {
        transform: translateX(0) translateY(0) rotate(0deg);
    }

    25% {
        transform: translateX(15px) translateY(-20px) rotate(5deg);
    }

    75% {
        transform: translateX(-10px) translateY(-25px) rotate(-5deg);
    }
}

/* Animación flotante suave */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-15px) rotate(5deg);
    }
}

/* Variantes de animación */
.strawberry-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.strawberry-float {
    animation: float 3s ease-in-out infinite;
}

.strawberry-horizontal {
    animation: bounceHorizontal 2.5s ease-in-out infinite;
}

/* Efecto hover en las fresas */
.strawberry:hover {
    opacity: 1;
    transform: scale(1.2);
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Versión responsive - ocultar algunas fresas en móviles */
@media (max-width: 768px) {

    .strawberry-3,
    .strawberry-6,
    .strawberry-8,
    .strawberry-9 {
        display: none;
    }

    .strawberry {
        font-size: 1.2rem;
    }

    .strawberry-large {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {

    .strawberry-2,
    .strawberry-4,
    .strawberry-7 {
        display: none;
    }

    .strawberry {
        font-size: 1rem;
    }
}

/* Asegurar que el contenido de hero esté por encima de las animaciones */
.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section {
    position: relative;
    overflow: hidden;
}