/* ============================================
   TAGUENS PRINTS - ESTILOS PRINCIPALES
   Tema: Oscuro con acentos naranjas
   ============================================ */

/* Variables CSS */
:root {
    /* Colores principales */
    --color-bg-dark: #121416;
    --color-bg-medium: #1a1c1e;
    --color-bg-light: #242628;
    --color-bg-card: #2a2c2e;

    /* Acentos */
    --color-primary: #e8a052;
    --color-primary-light: #f0b870;
    --color-primary-dark: #c4843c;
    --color-secondary: #5a9fd4;
    --color-secondary-light: #7ab4e0;
    --color-accent: #d4a052;
    --color-beige: #c4baa8;

    /* Textos */
    --color-text: #f5f0eb;
    --color-text-muted: #a89f97;
    --color-text-light: #c4bab2;

    /* Estados */
    --color-success: #7ec8a3;
    --color-warning: #e8c87c;
    --color-error: #e88a7c;

    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 20px rgba(232, 168, 124, 0.2);

    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

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

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

/* Reset y Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Overlay semi-transparente para legibilidad del texto sobre el fondo espacial */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 20, 22, 0.75);
    z-index: -1;
    pointer-events: none;
}


h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ============================================
   HEADER & NAVEGACIÓN
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 22, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(232, 168, 124, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-family: 'Quicksand', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
}

.logo-icon {
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: var(--spacing-lg);
}

.nav-link {
    font-weight: 500;
    color: var(--color-text-muted);
    padding: var(--spacing-xs) 0;
    position: relative;
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-fast);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px;
    background: transparent;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(232, 168, 124, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(244, 194, 194, 0.06) 0%, transparent 40%);
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    background: rgba(232, 168, 124, 0.15);
    color: var(--color-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(232, 168, 124, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-icon:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {

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

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

.btn-secondary:hover {
    background: rgba(232, 168, 124, 0.1);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-small {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.9rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: var(--spacing-xxl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-badge {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

.section-footer {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* ============================================
   PRODUCTOS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.product-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-bg-light);
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-badge {
    position: absolute;
    top: var(--spacing-sm);
    left: var(--spacing-sm);
    background: var(--color-secondary);
    color: var(--color-bg-dark);
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
}

.product-info {
    padding: var(--spacing-md);
}

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

.product-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: 'Quicksand', sans-serif;
}

.product-stock {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: var(--spacing-xs);
}

.product-stock.available {
    color: var(--color-success);
}

.product-stock.order {
    color: var(--color-warning);
}

/* No Image Placeholder */
.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    color: var(--color-text-muted);
    font-size: 3rem;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    background: var(--color-bg-medium);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
    background: linear-gradient(135deg, rgba(232, 168, 124, 0.1), rgba(244, 194, 194, 0.05));
}

.cta-content {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(232, 168, 124, 0.2);
}

.cta-content h2 {
    font-size: 1.8rem;
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   COLORS SECTION
   ============================================ */
.colors-section {
    background: rgba(26, 28, 30, 0.15);
    backdrop-filter: blur(8px);
}

.colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.color-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.color-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.color-preview {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.color-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-swatch {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.color-name {
    padding: var(--spacing-sm);
    font-weight: 500;
    font-size: 0.95rem;
}

/* Colors link in product page */
.colors-link {
    color: var(--color-primary);
    text-decoration: underline;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.colors-link:hover {
    color: var(--color-primary-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-bg-medium);
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(232, 160, 82, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-size: 1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

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

.footer-contact p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ============================================
   CATÁLOGO PAGE
   ============================================ */
.catalog-header {
    padding-top: calc(70px + var(--spacing-xl));
    padding-bottom: var(--spacing-lg);
    background: rgba(26, 28, 30, 0.2);
    backdrop-filter: blur(10px);
}

.catalog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    padding-left: 45px;
    background: var(--color-bg-card);
    border: 1px solid rgba(232, 168, 124, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

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

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
}

.filter-group {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--color-bg-card);
    border: 1px solid rgba(232, 168, 124, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(232, 168, 124, 0.15);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.sort-select {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-card);
    border: 1px solid rgba(232, 168, 124, 0.2);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.sort-select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.catalog-content {
    padding: var(--spacing-xl) 0;
}

.no-results {
    text-align: center;
    padding: var(--spacing-xxl);
    color: var(--color-text-muted);
}

.no-results span {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-md);
}

/* ============================================
   PRODUCTO DETALLE PAGE
   ============================================ */
.product-detail {
    padding-top: calc(70px + var(--spacing-md));
    min-height: 100vh;
}

.product-detail-container {
    display: grid;
    grid-template-columns: auto auto;
    gap: 1rem;
    align-items: start;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.product-gallery {
    position: sticky;
    top: calc(70px + var(--spacing-md));
}

.main-image {
    aspect-ratio: 1;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    max-height: 450px;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.2rem;
    max-width: 350px;
}

.thumbnail {
    aspect-ratio: 1;
    background: var(--color-bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color var(--transition-fast);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--color-primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info-detail {
    padding: var(--spacing-lg);
}

.product-category {
    color: var(--color-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--spacing-xs);
}

.product-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-family: 'Quicksand', sans-serif;
}

.product-description {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.product-details-list {
    margin-bottom: var(--spacing-lg);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-label {
    color: var(--color-text-muted);
}

.detail-value {
    font-weight: 500;
}

.customizable-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    background: rgba(232, 168, 124, 0.15);
    color: var(--color-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
}

.customization-form {
    background: var(--color-bg-card);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
}

.customization-form h4 {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--color-bg-light);
    border: 1px solid rgba(232, 168, 124, 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-text);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
}

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

.contact-product-btn {
    width: 100%;
    padding: var(--spacing-md);
    font-size: 1.1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.back-link:hover {
    color: var(--color-primary);
}

/* ============================================
   SOBRE MÍ PAGE
   ============================================ */
.about-page {
    padding-top: calc(70px + var(--spacing-xl));
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* .about-image removed */

.about-text h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.about-text h1 span {
    color: var(--color-primary);
}

.about-text p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

/* ============================================
   CONTACTO PAGE
   ============================================ */
.contact-page {
    padding-top: calc(70px + var(--spacing-xl));
    min-height: 100vh;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-content h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.contact-content>p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.contact-card {
    background: var(--color-bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: transform var(--transition-normal);
}

.contact-card:hover {
    transform: translateX(5px);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: rgba(232, 168, 124, 0.15);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info {
    text-align: left;
}

.contact-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.contact-info p {
    color: var(--color-text-muted);
}

.contact-info a {
    color: var(--color-primary);
}

/* ============================================
   ADMIN PANEL
   ============================================ */
.admin-page {
    min-height: 100vh;
    background: var(--color-bg-dark);
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: var(--spacing-md);
}

.login-card {
    background: var(--color-bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-card h1 {
    margin-bottom: var(--spacing-xs);
}

.login-card>p {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-lg);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.login-form .form-group {
    text-align: left;
}

.login-error {
    color: var(--color-error);
    font-size: 0.9rem;
    display: none;
}

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

/* Admin Dashboard */
.admin-header {
    background: var(--color-bg-medium);
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid rgba(232, 168, 124, 0.1);
}

.admin-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-tabs {
    display: flex;
    gap: var(--spacing-xs);
}

.admin-tab {
    padding: var(--spacing-xs) var(--spacing-md);
    background: transparent;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.admin-tab:hover,
.admin-tab.active {
    background: rgba(232, 168, 124, 0.15);
    color: var(--color-primary);
}

.admin-content {
    padding: var(--spacing-xl) 0;
}

.admin-section {
    display: none;
}

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

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

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

/* Admin Products Table */
.admin-products-grid {
    display: grid;
    gap: var(--spacing-md);
}

.admin-product-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: var(--spacing-md);
    align-items: center;
}

.admin-product-image {
    width: 80px;
    height: 80px;
    background: var(--color-bg-light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.admin-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.admin-product-info h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.admin-product-info p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.admin-product-price {
    color: var(--color-primary);
    font-weight: 600;
}

.admin-product-actions {
    display: flex;
    gap: var(--spacing-xs);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

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

.btn-icon.delete:hover {
    background: var(--color-error);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: var(--spacing-md);
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
}

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

.modal-body {
    padding: var(--spacing-md);
}

.modal-footer {
    padding: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-sm);
}

/* Image Upload */
.image-upload-area {
    border: 2px dashed rgba(232, 168, 124, 0.3);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: var(--spacing-md);
}

.image-upload-area:hover {
    border-color: var(--color-primary);
    background: rgba(232, 168, 124, 0.05);
}

.image-upload-area input {
    display: none;
}

.image-upload-area span {
    font-size: 2rem;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.uploaded-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-sm);
}

.uploaded-image {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.uploaded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: var(--color-error);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Checkbox Custom */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--color-primary);
}

/* Categories Admin */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-bg-light);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
}

.add-category-form {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.add-category-form input {
    flex: 1;
}

/* Colors Admin Grid */
.colors-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.color-admin-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.color-admin-preview {
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.color-admin-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-admin-swatch {
    width: 100%;
    height: 100%;
}

.color-admin-info {
    padding: var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.color-admin-name {
    font-weight: 500;
}

.color-admin-hex {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.color-admin-actions {
    display: flex;
    gap: var(--spacing-xs);
}

/* ============================================
   WHATSAPP INTEGRATION
   ============================================ */
.whatsapp-card {
    position: relative;
    overflow: hidden;
}

.whatsapp-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(0, 0, 0, 0));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.whatsapp-card:hover::before {
    opacity: 1;
}

.whatsapp-card:hover {
    transform: translateX(5px);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.2);
}

.whatsapp-card .contact-icon {
    background: rgba(37, 211, 102, 0.15);
}

.whatsapp-card:hover .contact-icon {
    background: rgba(37, 211, 102, 0.25);
}

/* Footer WhatsApp Link */
.footer-contact p {
    transition: color var(--transition-fast);
}

.footer-contact:hover p {
    color: var(--color-primary);
}

/* WhatsApp Chat Widget */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

/* Floating Button */
.whatsapp-float {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float .whatsapp-icon {
    width: 32px;
    height: 32px;
    color: white;
    transition: all var(--transition-fast);
}

.whatsapp-float .close-icon {
    width: 28px;
    height: 28px;
    color: white;
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0);
    transition: all var(--transition-normal);
}

.whatsapp-float.active .whatsapp-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

.whatsapp-float.active .close-icon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.whatsapp-float.active {
    animation: none;
}

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

    50% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4), 0 0 0 8px rgba(37, 211, 102, 0.1);
    }

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

/* Chat Window */
.whatsapp-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 40px);
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.8) translateY(20px);
    transform-origin: bottom right;
    pointer-events: none;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.whatsapp-chat-window.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: all;
}

/* Chat Header */
.whatsapp-chat-header {
    background: linear-gradient(135deg, #25d366, #128c7e);
    padding: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.whatsapp-chat-avatar {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.whatsapp-chat-info h4 {
    color: white;
    font-size: 1rem;
    margin: 0;
}

.whatsapp-chat-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    margin: 0;
}

/* Chat Body */
.whatsapp-chat-body {
    padding: var(--spacing-md);
    height: 300px;
    overflow-y: auto;
    background: var(--color-bg-dark);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.whatsapp-chat-body::-webkit-scrollbar {
    width: 6px;
}

.whatsapp-chat-body::-webkit-scrollbar-track {
    background: var(--color-bg-medium);
}

.whatsapp-chat-body::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: 3px;
}

.whatsapp-message {
    max-width: 80%;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    position: relative;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

.whatsapp-message-received {
    align-self: flex-start;
    background: var(--color-bg-card);
    border-bottom-left-radius: 4px;
}

.whatsapp-message-sent {
    align-self: flex-end;
    background: #dcf8c6;
    color: #000;
    border-bottom-right-radius: 4px;
}

.whatsapp-message p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.whatsapp-message-time {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    display: block;
    margin-top: 4px;
    text-align: right;
}

.whatsapp-message-sent .whatsapp-message-time {
    color: rgba(0, 0, 0, 0.5);
}

/* Chat Footer */
.whatsapp-chat-footer {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-medium);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.whatsapp-chat-footer form {
    display: flex;
    gap: var(--spacing-xs);
}

#whatsapp-input {
    flex: 1;
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

#whatsapp-input:focus {
    border-color: #25d366;
}

.whatsapp-send-btn {
    width: 40px;
    height: 40px;
    background: #25d366;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.whatsapp-send-btn:hover {
    background: #128c7e;
    transform: scale(1.05);
}

.whatsapp-send-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .product-detail {
        padding-top: calc(70px + var(--spacing-xs));
    }

    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-gallery {
        position: relative;
        top: 0;
        margin-bottom: 0;
    }

    .main-image {
        margin-bottom: 0.3rem;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(25, 1fr);
        max-width: 200px;
        gap: 0.08rem;
        margin-bottom: 0.3rem;
    }

    .product-info-detail {
        padding: var(--spacing-sm);
    }

    .product-category {
        margin-bottom: 0.2rem;
    }

    .product-title {
        margin-bottom: var(--spacing-xs);
    }

    .product-price-large {
        margin-bottom: var(--spacing-sm);
    }

    .product-description {
        margin-bottom: var(--spacing-sm);
    }

    .product-details-list {
        margin-bottom: var(--spacing-sm);
    }

    .detail-item {
        padding: 0.4rem 0;
    }

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

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-bg-dark);
        flex-direction: column;
        padding: var(--spacing-md);
        gap: var(--spacing-sm);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        align-items: flex-start;
        padding-top: calc(70px + var(--spacing-lg));
        padding-bottom: var(--spacing-xl);
    }

    .hero-content {
        padding-top: var(--spacing-md);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .catalog-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }

    .filter-group {
        justify-content: center;
    }

    .admin-product-card {
        grid-template-columns: 60px 1fr;
    }

    .admin-product-actions {
        grid-column: span 2;
        justify-content: flex-end;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .colors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    .product-card {
        border-radius: var(--radius-md);
    }

    .product-info {
        padding: var(--spacing-sm);
    }

    .product-name {
        font-size: 0.95rem;
    }

    .product-price {
        font-size: 1.1rem;
    }

    .color-card {
        border-radius: var(--radius-md);
    }

    .color-name {
        font-size: 0.85rem;
        padding: var(--spacing-xs);
    }

    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .uploaded-images {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   ANIMACIONES MEJORADAS Y EFECTOS PREMIUM
   ============================================ */

/* Animaciones de entrada */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

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

@keyframes slideLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

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

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }

    to {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

@keyframes bounce {

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

    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

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

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(232, 160, 82, 0.3),
            0 0 10px rgba(232, 160, 82, 0.2),
            0 0 15px rgba(232, 160, 82, 0.1);
    }

    50% {
        box-shadow: 0 0 10px rgba(232, 160, 82, 0.5),
            0 0 20px rgba(232, 160, 82, 0.3),
            0 0 30px rgba(232, 160, 82, 0.2);
    }
}

@keyframes floatSlow {

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

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Aplicar animaciones a elementos */
.header {
    animation: slideDown 0.6s ease-out;
}

.hero-content {
    animation: fadeIn 1s ease-out;
}

.hero-title {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    animation: slideUp 0.8s ease-out 0.4s both;
}

.hero-buttons {
    animation: slideUp 0.8s ease-out 0.6s both;
}

.section-header {
    animation: slideUp 0.6s ease-out;
}

.product-card {
    animation: scaleIn 0.5s ease-out both;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:nth-child(1) {
    animation-delay: 0.1s;
}

.product-card:nth-child(2) {
    animation-delay: 0.15s;
}

.product-card:nth-child(3) {
    animation-delay: 0.2s;
}

.product-card:nth-child(4) {
    animation-delay: 0.25s;
}

.product-card:nth-child(5) {
    animation-delay: 0.3s;
}

.product-card:nth-child(6) {
    animation-delay: 0.35s;
}

.product-card:nth-child(7) {
    animation-delay: 0.4s;
}

.product-card:nth-child(8) {
    animation-delay: 0.45s;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(232, 160, 82, 0.3);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(232, 160, 82, 0.1) 0%,
            transparent 50%,
            rgba(90, 159, 212, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    pointer-events: none;
    z-index: 1;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.1),
            transparent);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.product-card:hover::after {
    animation: shimmer 1.5s ease-in-out;
}

/* Efectos de glassmorphism mejorados */
.header {
    background: rgba(18, 20, 22, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(232, 160, 82, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    box-shadow: 0 4px 15px rgba(232, 160, 82, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(232, 160, 82, 0.5),
        0 0 30px rgba(232, 160, 82, 0.3);
    animation: glow 2s ease-in-out infinite;
}

.btn-primary:active {
    transform: translateY(-1px) scale(1.02);
}

/* Animaciones para colores */
.color-card {
    animation: scaleIn 0.5s ease-out both;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.color-card:nth-child(1) {
    animation-delay: 0.05s;
}

.color-card:nth-child(2) {
    animation-delay: 0.1s;
}

.color-card:nth-child(3) {
    animation-delay: 0.15s;
}

.color-card:nth-child(4) {
    animation-delay: 0.2s;
}

.color-card:nth-child(5) {
    animation-delay: 0.25s;
}

.color-card:nth-child(6) {
    animation-delay: 0.3s;
}

.color-card:nth-child(7) {
    animation-delay: 0.35s;
}

.color-card:nth-child(8) {
    animation-delay: 0.4s;
}

.color-card:hover {
    transform: translateY(-8px) scale(1.05) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(232, 160, 82, 0.2);
}

.color-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.2) 0%,
            transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.color-card:hover::before {
    opacity: 1;
}

/* Feature cards con animación */
.feature-card {
    animation: slideUp 0.6s ease-out both;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:nth-child(1) {
    animation-delay: 0.1s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(232, 160, 82, 0.1) 0%,
            transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 10px rgba(232, 160, 82, 0.5));
}

/* CTA Section con efecto especial */
.cta-content {
    animation: scaleIn 0.8s ease-out;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.cta-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle,
            rgba(232, 160, 82, 0.15) 0%,
            transparent 50%);
    animation: spin 20s linear infinite;
    opacity: 0.5;
}

.cta-content:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(232, 160, 82, 0.2);
}

/* Logo animado */
.logo {
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover .logo-icon {
    transform: rotate(360deg) scale(1.1);
    filter: drop-shadow(0 0 10px rgba(232, 160, 82, 0.6));
}

/* Nav links con efecto mejorado */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg,
            var(--color-primary),
            var(--color-secondary));
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-link:hover {
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(232, 160, 82, 0.5);
}

/* Footer con fade in */
.footer {
    animation: fadeIn 1s ease-out;
}

/* WhatsApp float mejorado */
.whatsapp-float {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7),
        0 0 40px rgba(37, 211, 102, 0.4);
}

.whatsapp-float:active {
    transform: scale(1.05) rotate(0deg);
}

/* Scroll reveal para secciones */
.section {
    animation: fadeIn 0.8s ease-out;
}

/* Efecto de carga para imágenes */
.product-image,
.main-image,
.color-preview {
    position: relative;
    background: linear-gradient(90deg,
            var(--color-bg-light) 0%,
            var(--color-bg-card) 50%,
            var(--color-bg-light) 100%);
    background-size: 200% 100%;
}

.product-image img,
.main-image img,
.color-preview img {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(2deg);
}

/* Efecto de partículas en hover para cards */
@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100px) translateX(20px);
        opacity: 0;
    }
}

/* Smooth scroll mejorado */
html {
    scroll-behavior: smooth;
}

/* Efecto de enfoque mejorado */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Animación de carga para el contenido */
@keyframes contentLoad {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

body {
    animation: fadeIn 0.5s ease-out;
}

/* Efecto de brillo en badges */
.product-badge,
.hero-badge,
.customizable-badge {
    position: relative;
    overflow: hidden;
    animation: slideDown 0.5s ease-out;
}

.product-badge::before,
.hero-badge::before,
.customizable-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: rotate(45deg);
    animation: shimmer 3s ease-in-out infinite;
}

/* Mejora de sombras en hover */
.product-card,
.color-card,
.feature-card,
.contact-card {
    will-change: transform, box-shadow;
}

/* Optimización de rendimiento */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}