/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN BASE
   ========================================================================== */
   :root {
    --primary: #FF6B00; /* Naranja vibrante Brilla */
    --primary-hover: #E55A00;
    --secondary: #FFC107; /* Amarillo dorado */
    --dark: #0A0A0A;
    --dark-alt: #161616;
    --light: #F4F6F9;
    --white: #FFFFFF;
    --gray: #888888;
    --radius-sm: 12px;
    --radius-lg: 24px;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(255, 107, 0, 0.15);
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ==========================================================================
   HEADER GLASSMORPHISM
   ========================================================================== */
.glass-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--dark);
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    width: 45px;
    height: 45px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(255, 107, 0, 0.3);
}

.contact-btn {
    background: var(--dark);
    color: var(--white);
    text-decoration: none;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    text-align: center;
    padding-top: 80px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.9) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    display: inline-block;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.hero p {
    font-size: 1.15rem;
    color: #DDDDDD;
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cupos-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cupo-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius-sm);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    transition: transform 0.3s ease;
}

.cupo-box:hover {
    transform: translateY(-5px);
}

.cupo-box h3 {
    font-size: 1.8rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.cupo-box p {
    font-size: 0.95rem;
    margin: 0;
    color: var(--white);
}

.cupo-box.highlight-box {
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.2), rgba(255, 193, 7, 0.1));
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.cupo-box.highlight-box h3 {
    color: var(--primary);
    text-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-decoration: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.6);
}

/* ==========================================================================
   PASOS SECTION (CARDS FLOTANTES)
   ========================================================================== */
.steps {
    padding: 6rem 0;
    background: var(--light);
    position: relative;
    z-index: 10;
    margin-top: -60px; /* Sube la sección sobre el hero */
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 800;
}

.section-title span {
    color: var(--primary);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
}

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

.step-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: var(--light);
    width: 90px;
    height: 90px;
    line-height: 90px;
    border-radius: 50%;
    transition: var(--transition);
}

.step-card:hover .step-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 107, 0, 0.1);
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.step-card p {
    color: var(--gray);
    font-weight: 300;
}

/* ==========================================================================
   CATÁLOGO Y BUSCADOR (MODERNO Y RESPONSIVE)
   ========================================================================== */
.catalog {
    padding: 4rem 0 8rem;
}

.search-container {
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
}

#search-input {
    width: 100%;
    padding: 1.2rem 2rem;
    border-radius: 50px;
    border: 2px solid #EEEEEE;
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
    background: var(--white);
    box-shadow: var(--shadow-soft);
    font-family: inherit;
}

#search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.15);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    pointer-events: none;
}

.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    background: var(--white);
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--gray);
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.filter-btn.active {
    background: var(--primary);
    box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3);
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

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

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

.image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.product-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
    background: var(--white);
}

.product-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--dark);
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--dark);
    font-weight: 800;
}

.product-desc {
    color: var(--gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-weight: 300;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #25D366;
    color: white;
    text-decoration: none;
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.whatsapp-btn:hover {
    background: #20bd5a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: var(--dark-alt);
    color: var(--white);
    position: relative;
    padding: 4rem 5%;
    text-align: center;
    overflow: hidden;
}

.footer-glass {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

footer h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

footer .subtitle {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

footer .phone {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

footer .slogan {
    color: #666;
    font-size: 0.9rem;
}

/* ==========================================================================
   VISITOR BADGE (OFFLINE)
   ========================================================================== */
.visitor-badge {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.badge-title {
    background: #333333;
    color: #ffffff;
    padding: 0.3rem 0.6rem;
}

.badge-count {
    background: var(--primary);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
}

/* ==========================================================================
   ADMIN PANEL (MINIMALISTA Y LIMPIO)
   ========================================================================== */
.admin-panel {
    display: none;
    background: var(--white);
    padding: 4rem 5%;
    border-top: 2px dashed #eee;
}

.admin-panel.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

.admin-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--light);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.admin-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 800;
}

.admin-form input, .admin-form select, .admin-form textarea, #admin-pass {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s ease;
}

.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, #admin-pass:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.1);
}

.admin-btn {
    background: var(--dark);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-bottom: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.admin-btn.danger {
    background: transparent;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.admin-btn.danger:hover {
    background: #dc3545;
    color: white;
}

/* ==========================================================================
   RESPONSIVE (MOBILE FIRST EN MENTE)
   ========================================================================== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; }
    .hero { min-height: 600px; padding-top: 100px; }
    
    .steps { margin-top: 0; padding: 4rem 0; }
    .section-title { font-size: 2rem; margin-bottom: 3rem; }
    
    .products-grid { grid-template-columns: 1fr; }
    
    .logo-text { display: none; } /* En móvil solo deja el ícono para ahorrar espacio */
    .glass-header { padding: 1rem 5%; }
    
    .admin-container { padding: 2rem 1.5rem; }
}
