@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-navy: #0f172a;
    --primary-teal: #0d9488;
    --secondary-gold: #d97706;
    --bg-boutique: #faf8f5;
    --bg-white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --border-light: #e2e8f0;
    --shadow-soft: 0 4px 20px rgba(15, 23, 42, 0.05);
    --shadow-hover: 0 10px 30px rgba(15, 23, 42, 0.1);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--primary-navy);
}

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

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background-color: var(--primary-teal);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(13, 148, 136, 0.2);
}

.btn-primary:hover {
    background-color: #0f766e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 148, 136, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-gold);
    color: var(--text-light);
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.2);
}

.btn-secondary:hover {
    background-color: #b45309;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.3);
}

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

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

/* --- HEADER & NAVIGATION --- */
.promo-bar {
    background-color: var(--primary-navy);
    color: var(--text-light);
    text-align: center;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: sticky;
    top: 0;
    z-index: 1010;
}

header {
    background-color: rgba(250, 248, 245, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 36px;
    z-index: 1000;
    transition: var(--transition-smooth);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-navy);
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary-teal);
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    padding: 8px 12px;
    position: relative;
}

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

.nav-link.active {
    color: var(--primary-teal);
    font-weight: 600;
}

.nav-link.b2b-link {
    color: var(--secondary-gold);
    font-weight: 700;
    border: 1px solid var(--secondary-gold);
    border-radius: 6px;
    padding: 6px 12px;
}

.nav-link.b2b-link:hover {
    background-color: var(--secondary-gold);
    color: var(--text-light);
}

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

.cart-icon {
    position: relative;
    font-size: 1.25rem;
    color: var(--primary-navy);
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-teal);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: bold;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu Hamburguesa */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO SECTION --- */
.hero {
    padding: 80px 0;
    background: radial-gradient(circle at 80% 20%, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(217, 119, 6, 0.05) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    line-height: 1.15;
    margin-bottom: 20px;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.hero-slider {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    background-color: var(--bg-white);
    aspect-ratio: 4/3;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-teal);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    color: var(--text-light);
}

.slide-caption h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.slide-caption p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* --- LOGISTICS MODULE --- */
.logistics-bar {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 30px 0;
}

.logistics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.logistics-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logistics-item i {
    font-size: 2rem;
    color: var(--primary-teal);
    background-color: rgba(13, 148, 136, 0.08);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logistics-text h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-navy);
}

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

/* --- FEATURED COLLECTIONS --- */
.section-header {
    text-align: center;
    margin: 60px 0 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.collection-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-teal);
}

.collection-img {
    height: 220px;
    background-color: #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-teal);
}

.collection-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

.collection-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.collection-body h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.collection-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.collection-link {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--primary-teal);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

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

/* --- PRODUCTS GRID --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background-color: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

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

.product-img {
    height: 240px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--primary-teal);
    position: relative;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: bold;
    color: var(--primary-teal);
    margin-bottom: 5px;
}

.product-title {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.product-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-navy);
    margin-bottom: 15px;
}

/* --- PRODUCT DETAIL PAGE (PDP) --- */
.pdp-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    padding: 40px 0 80px;
}

/* Modulo de Previsualización */
.preview-container {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    top: 130px;
}

.preview-canvas-wrapper {
    width: 100%;
    aspect-ratio: 1;
    background-color: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.preview-mockup {
    width: 320px;
    height: 320px;
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 4px solid var(--border-light);
    background-size: cover;
    background-position: center;
}

.preview-overlay-text {
    position: absolute;
    color: var(--primary-navy);
    font-weight: 700;
    font-size: 1.4rem;
    text-align: center;
    font-family: 'Outfit', sans-serif;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px 20px;
    border-radius: 5px;
    border: 2px dashed var(--primary-teal);
    max-width: 80%;
    word-break: break-all;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.preview-overlay-title {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-navy);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Detalles de Producto */
.pdp-info h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.pdp-price {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-navy);
    margin-bottom: 25px;
}

.pdp-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.7;
}

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

.form-group-pdp label {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--primary-navy);
    margin-bottom: 8px;
    display: block;
}

.form-group-pdp input[type="text"],
.form-group-pdp select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: var(--bg-white);
    transition: var(--transition-smooth);
}

.form-group-pdp input[type="text"]:focus,
.form-group-pdp select:focus {
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
    outline: none;
}

/* Cross-Selling Bar */
.pdp-upsell-container {
    background-color: rgba(13, 148, 136, 0.04);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.upsell-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.upsell-progress-bg {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
}

.upsell-progress-fill {
    height: 100%;
    background-color: var(--primary-teal);
    width: 0%;
    transition: width 0.4s ease-out;
}

.upsell-offer {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.upsell-suggestion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(13, 148, 136, 0.1);
}

.upsell-item-info {
    font-weight: 600;
    font-size: 0.85rem;
}

.upsell-item-info span {
    color: var(--primary-teal);
    margin-left: 5px;
}

/* Accordion */
.accordion {
    margin-top: 40px;
    border-top: 1px solid var(--border-light);
}

.accordion-item {
    border-bottom: 1px solid var(--border-light);
}

.accordion-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--primary-navy);
    cursor: pointer;
    user-select: none;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.7;
    padding-bottom: 0;
}

.accordion-item.active .accordion-content {
    max-height: 300px;
    padding-bottom: 15px;
    transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* --- B2B LANDING PAGE & CALCULATOR --- */
.b2b-hero {
    padding: 70px 0;
    background-color: var(--primary-navy);
    color: var(--text-light);
    text-align: center;
}

.b2b-hero h1 {
    color: var(--text-light);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.b2b-hero p {
    color: #94a3b8;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

.b2b-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    padding: 60px 0 100px;
}

.calculator-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.calculator-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.calculator-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.calc-matrix-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.85rem;
    text-align: center;
    border: 1px solid var(--border-light);
}

.calc-matrix-table th, .calc-matrix-table td {
    padding: 10px;
    border: 1px solid var(--border-light);
}

.calc-matrix-table th {
    background-color: #f1f5f9;
    font-weight: bold;
}

.calculator-results {
    background-color: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.result-row:last-child {
    margin-bottom: 0;
    padding-top: 15px;
    border-top: 2px dashed var(--border-light);
}

.result-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.result-val {
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--primary-navy);
}

.result-val.total-val {
    font-size: 1.6rem;
    color: var(--primary-teal);
}

.result-val.discount-val {
    color: var(--secondary-gold);
}

.b2b-form-card {
    background-color: var(--bg-white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-light);
}

.b2b-form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* --- FOOTER --- */
footer {
    background-color: var(--primary-navy);
    color: #94a3b8;
    padding: 70px 0 30px;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1e293b;
    color: var(--text-light);
    border-radius: 50%;
    margin-right: 10px;
    font-size: 1.1rem;
}

.footer-socials a:hover {
    background-color: var(--primary-teal);
}

.footer-column h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--text-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    font-size: 0.8rem;
}

/* --- RESPONSIVIDAD GENERAL --- */
@media (max-width: 968px) {
    .hero-grid, .pdp-grid, .b2b-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-slider {
        max-width: 500px;
        margin: 0 auto;
    }
    .preview-container {
        position: relative;
        top: 0;
    }
    .logistics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Sería menu toggle interactivo en móvil */
    }
    .menu-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
}
