/* Variables de colores basados en el logo */
:root {
    --primary-color: #4FC3F7;
    --primary-dark: #0288D1;
    --primary-light: #B3E5FC;
    --secondary-color: #29B6F6;
    --accent-color: #00ACC1;
    --background-gradient: linear-gradient(135deg, #E3F2FD 0%, #B3E5FC 50%, #81D4FA 100%);
    --dark-bg: #0D47A1;
    --text-dark: #1A237E;
    --text-light: #FFFFFF;
    --text-gray: #546E7A;
    --card-bg: #FFFFFF;
    --shadow: 0 4px 20px rgba(79, 195, 247, 0.3);
    --shadow-hover: 0 8px 30px rgba(79, 195, 247, 0.4);
    --border-radius: 16px;
    --transition: all 0.3s ease;
    --danger: #E91E63;
    --success: #4CAF50;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background-gradient);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo img {
    height: 50px;
    width: auto;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Login Button */
.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    color: var(--primary-dark);
    font-weight: 500;
    transition: var(--transition);
    font-size: 0.9rem;
}

.login-btn:hover {
    background: var(--primary-color);
    color: white;
}

.login-btn svg {
    width: 18px;
    height: 18px;
}

/* User Menu (cuando está logueado) */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    cursor: pointer;
    color: white;
    font-weight: 500;
    transition: var(--transition);
}

.user-btn:hover {
    background: var(--primary-dark);
}

.user-avatar {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.8rem;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    min-width: 200px;
    display: none;
    overflow: hidden;
    z-index: 1001;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.user-dropdown-header h4 {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.user-dropdown-header p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 15px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--primary-light);
}

.user-dropdown .logout-btn {
    color: var(--danger);
    border-top: 1px solid #eee;
}

.cart-btn {
    background: var(--primary-color);
    border: none;
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    color: white;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E91E63;
    color: white;
    font-size: 12px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 50%, #0288D1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(0,172,193,0.2) 0%, transparent 30%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-80px); }
    100% { opacity: 1; transform: translateX(0); }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); }
    100% { text-shadow: 2px 2px 20px rgba(255, 255, 255, 0.4), 0 0 40px rgba(79, 195, 247, 0.3); }
}

.hero-content h1 span {
    color: #E3F2FD;
    display: inline-block;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-content .btn {
    animation: fadeInUp 1s ease-out 0.5s both, pulse 2s ease-in-out infinite 1.5s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); }
    50% { transform: scale(1.05); box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4); }
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    animation: slideInRight 1s ease-out 0.2s both;
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(80px); }
    100% { opacity: 1; transform: translateX(0); }
}

.hero-image::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseRing 4s ease-in-out infinite;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(0.8); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.hero-image img {
    max-width: 400px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite, rotate3d 20s linear infinite;
    position: relative;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotateY(0deg); }
    50% { transform: translateY(-20px) rotateY(5deg); }
}

@keyframes rotate3d {
    0% { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)) hue-rotate(0deg); }
    50% { filter: drop-shadow(0 25px 50px rgba(79, 195, 247, 0.5)) hue-rotate(10deg); }
    100% { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)) hue-rotate(0deg); }
}

/* Floating ice particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.ice-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: floatParticle linear infinite;
}

.ice-particle:nth-child(1) { left: 5%; animation-duration: 15s; animation-delay: 0s; width: 6px; height: 6px; }
.ice-particle:nth-child(2) { left: 15%; animation-duration: 18s; animation-delay: 2s; width: 10px; height: 10px; }
.ice-particle:nth-child(3) { left: 25%; animation-duration: 12s; animation-delay: 1s; }
.ice-particle:nth-child(4) { left: 35%; animation-duration: 20s; animation-delay: 3s; width: 12px; height: 12px; }
.ice-particle:nth-child(5) { left: 45%; animation-duration: 14s; animation-delay: 0.5s; width: 5px; height: 5px; }
.ice-particle:nth-child(6) { left: 55%; animation-duration: 16s; animation-delay: 4s; }
.ice-particle:nth-child(7) { left: 65%; animation-duration: 13s; animation-delay: 1.5s; width: 9px; height: 9px; }
.ice-particle:nth-child(8) { left: 75%; animation-duration: 17s; animation-delay: 2.5s; }
.ice-particle:nth-child(9) { left: 85%; animation-duration: 19s; animation-delay: 3.5s; width: 7px; height: 7px; }
.ice-particle:nth-child(10) { left: 95%; animation-duration: 11s; animation-delay: 1s; width: 11px; height: 11px; }

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-50px) scale(0.5);
        opacity: 0;
    }
}

/* Snowflakes animation - Enhanced */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -50px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    animation: fall linear infinite, sway 3s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 10s, 3s; animation-delay: 0s; font-size: 1.2rem; }
.snowflake:nth-child(2) { left: 20%; animation-duration: 12s, 4s; animation-delay: 2s; font-size: 1.8rem; }
.snowflake:nth-child(3) { left: 30%; animation-duration: 8s, 2.5s; animation-delay: 4s; font-size: 1.4rem; }
.snowflake:nth-child(4) { left: 40%; animation-duration: 14s, 3.5s; animation-delay: 1s; font-size: 2rem; }
.snowflake:nth-child(5) { left: 50%; animation-duration: 11s, 3s; animation-delay: 3s; font-size: 1.3rem; }
.snowflake:nth-child(6) { left: 60%; animation-duration: 9s, 2.8s; animation-delay: 5s; font-size: 1.6rem; }
.snowflake:nth-child(7) { left: 70%; animation-duration: 13s, 3.2s; animation-delay: 2s; font-size: 1.9rem; }
.snowflake:nth-child(8) { left: 80%; animation-duration: 10s, 2.6s; animation-delay: 4s; font-size: 1.5rem; }

@keyframes fall {
    0% { transform: translateY(-50px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 0.8; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes sway {
    0%, 100% { margin-left: 0; }
    25% { margin-left: 30px; }
    75% { margin-left: -30px; }
}

/* Animated waves at bottom */
.hero-waves {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 300%;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C300,120 600,0 900,60 C1200,120 1200,60 1200,60 L1200,120 L0,120 Z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: waveMove 8s linear infinite;
    opacity: 0.3;
}

.wave:nth-child(2) {
    bottom: 10px;
    animation: waveMove 10s linear infinite reverse;
    opacity: 0.2;
    height: 80px;
}

.wave:nth-child(3) {
    bottom: 20px;
    animation: waveMove 12s linear infinite;
    opacity: 0.1;
    height: 60px;
}

@keyframes waveMove {
    0% { transform: translateX(0); }
    100% { transform: translateX(33.33%); }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--primary-dark);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #C2185B;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #388E3C;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Categories - MEJORADO con scroll */
.categories {
    padding: 60px 0 40px;
    background: white;
    position: sticky;
    top: 80px;
    z-index: 100;
}

.categories-wrapper {
    position: relative;
}

.categories-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    color: var(--primary-dark);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.categories-scroll-btn:hover {
    background: var(--primary-color);
    color: white;
}

.categories-scroll-btn.left {
    left: -10px;
}

.categories-scroll-btn.right {
    right: -10px;
}

.categories-scroll-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.categories-grid {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--primary-light);
    -webkit-overflow-scrolling: touch;
}

.categories-grid::-webkit-scrollbar {
    height: 6px;
}

.categories-grid::-webkit-scrollbar-track {
    background: var(--primary-light);
    border-radius: 3px;
}

.categories-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 30px;
    background: var(--primary-light);
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    min-width: 120px;
    flex-shrink: 0;
}

.category-card:hover,
.category-card.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Products */
.products {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Search Bar */
.search-bar {
    max-width: 500px;
    margin: 0 auto 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 18px;
    color: var(--text-gray);
    pointer-events: none;
}

.search-bar input {
    width: 100%;
    padding: 15px 45px 15px 50px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    font-size: 1rem;
    transition: var(--transition);
    background: white;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 195, 247, 0.2);
}

.search-bar input::placeholder {
    color: #bbb;
}

.search-clear {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #bbb;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    display: none;
    transition: var(--transition);
}

.search-clear:hover {
    color: var(--text-dark);
}

.search-clear.visible {
    display: block;
}

.search-results {
    font-size: 0.9rem;
    color: var(--text-gray);
    min-height: 20px;
}

.search-results.has-results {
    color: var(--primary-dark);
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #E3F2FD 0%, #B3E5FC 100%);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-actions-admin {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}

.product-actions-admin button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.product-edit-btn {
    background: var(--primary-color);
    color: white;
}

.product-delete-btn {
    background: var(--danger);
    color: white;
}

.product-info {
    padding: 20px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.product-price input {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    border: 2px dashed transparent;
    background: transparent;
    width: 120px;
    padding: 5px;
    border-radius: 8px;
    transition: var(--transition);
}

.product-price input:hover {
    border-color: var(--primary-light);
}

.product-price input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.add-to-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.add-to-cart:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* Instagram Section */
.instagram-section {
    padding: 60px 0;
    background: white;
}

.instagram-feed {
    display: flex;
    justify-content: center;
}

.instagram-link {
    text-decoration: none;
}

.instagram-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 40px 60px;
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
    border-radius: var(--border-radius);
    color: white;
    transition: var(--transition);
}

.instagram-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(131, 58, 180, 0.4);
}

.instagram-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    background: var(--primary-light);
    padding: 15px;
    border-radius: var(--border-radius);
}

.feature h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.feature p {
    color: var(--text-gray);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    max-width: 350px;
    width: 100%;
    filter: drop-shadow(0 10px 30px rgba(79, 195, 247, 0.4));
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: white;
}

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: var(--primary-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.contact-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.contact-item a,
.contact-item p {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.95rem;
    word-break: break-word;
}

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

.contact-map {
    width: 100%;
    height: 350px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-links a,
.footer-social a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 10px;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-social a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ==================== MODALS ==================== */

/* Modal Base */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-hover);
    animation: modalSlideIn 0.3s ease;
}

.modal-content-lg {
    max-width: 700px;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-gray);
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-body {
    padding: 25px;
}

/* Login Modal */
.login-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.login-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.login-tab.active {
    color: var(--primary-dark);
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.login-form {
    display: none;
}

.login-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.form-error.show {
    display: block;
}

.form-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--primary-dark);
}

.form-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Form Layout */
.form-row {
    display: flex;
    gap: 25px;
}

.form-col {
    flex: 1;
}

.form-col-image {
    flex: 0 0 200px;
}

.form-row-inline {
    display: flex;
    gap: 15px;
}

.form-row-inline .form-group {
    flex: 1;
}

/* Image Upload */
.image-upload-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.image-preview {
    width: 100%;
    height: 180px;
    border: 2px dashed #e0e0e0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f9f9f9;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: none;
}

.image-preview.has-image img {
    display: block;
}

.image-preview.has-image .no-image {
    display: none;
}

.image-preview .no-image {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.image-upload-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.image-upload-actions input[type="text"] {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.85rem;
}

.image-upload-actions input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 10px 15px;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }

    .form-col-image {
        flex: none;
        width: 100%;
    }

    .image-preview {
        height: 150px;
    }
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
}

.cart-modal.active {
    display: block;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-modal.active .cart-content {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.cart-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-gray);
    transition: var(--transition);
}

.cart-close:hover {
    color: var(--text-dark);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-dark);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary-light);
    border-color: var(--primary-color);
}

.cart-item-remove {
    background: none;
    border: none;
    color: #E91E63;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

/* ==================== ADMIN PANEL FULLSCREEN ==================== */

.admin-panel-full {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    background: var(--background-gradient);
    overflow: hidden;
}

.admin-panel-full.active {
    display: flex;
}

.admin-sidebar {
    width: 250px;
    min-width: 250px;
    height: 100vh;
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    color: white;
    padding: 20px 0;
    overflow-y: auto;
    box-sizing: border-box;
}

.admin-sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.admin-sidebar-header h2 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.admin-sidebar-header p {
    font-size: 0.8rem;
    opacity: 0.7;
}

.admin-nav {
    list-style: none;
}

.admin-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.admin-nav li a:hover,
.admin-nav li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left: 3px solid white;
}

.admin-nav li a span {
    font-size: 1.2rem;
}

.admin-main {
    flex: 1;
    padding: 30px;
    height: 100vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.admin-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.admin-header-bar h1 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-stat-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.admin-stat-card h3 {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 10px;
}

.admin-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Admin Sections */
.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.admin-section h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* Admin Categories Grid */
.admin-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.admin-category-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.admin-category-card:hover {
    box-shadow: var(--shadow-hover);
}

.category-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}

.category-card-header h3 {
    font-size: 1rem;
    margin: 0;
    flex: 1;
}

.category-card-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: var(--transition);
}

.admin-category-card:hover .category-card-actions {
    opacity: 1;
}

.edit-btn-sm,
.delete-btn-sm {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.edit-btn-sm {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.delete-btn-sm {
    background: #FFEBEE;
    color: var(--danger);
}

.edit-btn-sm:hover,
.delete-btn-sm:hover {
    transform: scale(1.1);
}

.admin-category-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.admin-category-card .count {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Admin Products Table */
.admin-products-section {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
}

.admin-products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.admin-products-header h2 {
    font-size: 1.3rem;
    color: var(--text-dark);
}

.admin-search {
    display: flex;
    gap: 10px;
}

.admin-search input {
    padding: 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    width: 250px;
    font-size: 0.9rem;
}

.admin-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: var(--primary-light);
    font-weight: 600;
    color: var(--text-dark);
}

.admin-table tr:hover {
    background: #f9f9f9;
}

.admin-table img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-table .actions {
    display: flex;
    gap: 8px;
}

.admin-table .actions button {
    width: 35px;
    height: 35px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.admin-table .actions .edit-btn {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.admin-table .actions .delete-btn {
    background: #FFEBEE;
    color: var(--danger);
}

.admin-table .actions button:hover {
    transform: scale(1.1);
}

/* Role badges */
.role-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.role-badge.admin {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%);
    color: white;
}

.role-badge.user {
    background: #E3F2FD;
    color: var(--primary-dark);
}

/* Stock badges */
.stock-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.stock-badge.in-stock {
    background: #E8F5E9;
    color: #2E7D32;
}

.stock-badge.out-stock {
    background: #FFEBEE;
    color: #C62828;
}

/* Admin floating button (para usuarios normales que sean admin) */
.admin-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.admin-toggle.visible {
    display: flex;
}

.admin-toggle:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-image img {
        max-width: 300px;
    }

    .about-content {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .admin-sidebar {
        width: 200px;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .login-btn span {
        display: none;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-map {
        height: 280px;
    }

    .categories {
        top: 70px;
    }

    .admin-panel-full.active {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
        min-width: 100%;
        height: auto;
        max-height: 200px;
    }

    .admin-main {
        height: calc(100vh - 200px);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 25px;
    }

    .category-card {
        padding: 15px 20px;
        min-width: 100px;
    }

    .product-card {
        margin: 0 10px;
    }

    .header-actions {
        gap: 8px;
    }

    .login-btn {
        padding: 8px 12px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.5s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* Hide elements based on auth state */
.auth-only {
    display: none !important;
}

.logged-in .auth-only {
    display: flex !important;
}

.logged-in .guest-only {
    display: none !important;
}

.admin-only {
    display: none !important;
}

.is-admin .admin-only {
    display: flex !important;
}
