/* ========================================
   VitalNatural Solution - Estilos CSS
   ======================================== */

/* Reset y Variables */
:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --secondary-color: #8BC34A;
    --accent-color: #FF9800;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --success-color: #4CAF50;
    --error-color: #F44336;
    --warning-color: #FF9800;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 5px 20px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   HEADER & NAVEGACIÓN
   ======================================== */

.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.logo i {
    font-size: 32px;
    color: var(--primary-color);
}

.logo h1 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav a {
    font-weight: 500;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

.nav a:hover,
.nav a.active {
    color: var(--primary-color);
}

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding: 8px 40px 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    width: 250px;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--primary-color);
    width: 300px;
}

.search-box i {
    position: absolute;
    right: 15px;
    color: var(--text-light);
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

.icon-btn:hover,
.icon-btn.active {
    background: var(--primary-color);
    color: white;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--accent-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
}

/* Language Switcher Button */
.language-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--text-dark);
}

.language-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-1px);
}

.language-btn i {
    font-size: 14px;
}

.lang-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    padding: 100px 20px;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: var(--border-color);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ========================================
   CATEGORÍAS
   ======================================== */

.categories {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.category-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.category-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.category-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.category-card p {
    color: var(--text-light);
    font-size: 14px;
}

/* ========================================
   PRODUCTOS GRID
   ======================================== */

.featured-products {
    padding: 60px 0;
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Estilos para las imágenes del producto */
.product-img-main,
.product-img-hover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.4s ease;
}

.product-img-main {
    opacity: 1;
}

.product-img-hover {
    opacity: 0;
}

/* Efecto hover profesional para cambio de imagen */
.product-card:hover .product-img-main {
    opacity: 0;
}

.product-card:hover .product-img-hover {
    opacity: 1;
}

.product-image i {
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.3;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-badge.new {
    background: var(--success-color);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--primary-color);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-info h3 {
    font-size: 18px;
    margin: 10px 0;
    color: var(--text-dark);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.product-rating i {
    color: #FFC107;
    font-size: 14px;
}

.product-rating span {
    color: var(--text-light);
    font-size: 13px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.product-price .old-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 400;
}

.product-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--primary-color);
    color: white;
}

/* ========================================
   BENEFITS
   ======================================== */

.benefits {
    padding: 60px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: center;
    padding: 30px;
}

.benefit-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--text-light);
}

/* ========================================
   CERTIFICACIONES
   ======================================== */

.certifications {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    max-width: 600px;
    margin: -20px auto 50px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-badge {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cert-badge:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cert-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
}

.cert-icon.fda {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cert-icon.gmp {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.cert-icon.organic {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.cert-icon.lab {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.cert-badge h4 {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.cert-badge p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-certifications {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 30px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.cert-badge-mini {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    transition: var(--transition);
    cursor: pointer;
}

.cert-badge-mini:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.cert-badge-mini i {
    font-size: 18px;
    color: var(--primary-color);
}

.cert-badge-mini span {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
}

/* ========================================
   PAGE HEADER
   ======================================== */

.page-header {
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    padding: 60px 20px;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 42px;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.95;
}

/* ========================================
   PRODUCTOS PAGE
   ======================================== */

.productos-section {
    padding: 60px 0;
}

.productos-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

.filters-sidebar {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-sidebar h3 {
    font-size: 22px;
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-group h4 {
    margin-bottom: 15px;
    font-size: 16px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.filter-option input {
    cursor: pointer;
}

.productos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.productos-header select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    cursor: pointer;
}

/* ========================================
   PRODUCTO DETALLE
   ======================================== */

.producto-detalle {
    padding: 60px 0;
}

.breadcrumb {
    margin-bottom: 30px;
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--primary-color);
}

.producto-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.producto-imagen {
    background: var(--bg-light);
    border-radius: 15px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.producto-imagen i {
    font-size: 150px;
    color: var(--primary-color);
    opacity: 0.3;
}

.producto-details h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.producto-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.producto-precio {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 20px 0;
}

.producto-description {
    margin: 30px 0;
    line-height: 1.8;
    color: var(--text-light);
}

.beneficios-list {
    background: var(--bg-light);
    padding: 20px;
    border-radius: 10px;
    margin: 30px 0;
}

.beneficios-list h3 {
    margin-bottom: 15px;
}

.beneficios-list ul {
    list-style: none;
}

.beneficios-list li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.beneficios-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.cantidad-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.cantidad-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.cantidad-controls button {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-light);
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition);
}

.cantidad-controls button:hover {
    background: var(--primary-color);
    color: white;
}

.cantidad-controls input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-weight: 600;
}

.related-products {
    margin-top: 60px;
}

.related-products h2 {
    margin-bottom: 30px;
}

/* ========================================
   CARRITO
   ======================================== */

.carrito-section {
    padding: 60px 0;
    min-height: 60vh;
}

.carrito-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.carrito-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.carrito-item-image {
    width: 120px;
    height: 120px;
    background: var(--bg-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}

.carrito-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.carrito-item-image i {
    font-size: 50px;
    color: var(--primary-color);
    opacity: 0.3;
}

.carrito-item-info {
    flex: 1;
}

.carrito-item-info h3 {
    margin-bottom: 5px;
}

.carrito-item-info p {
    color: var(--text-light);
    font-size: 14px;
}

.carrito-item-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

.carrito-item-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.item-remove {
    color: var(--error-color);
    cursor: pointer;
    transition: var(--transition);
}

.item-remove:hover {
    opacity: 0.7;
}

.carrito-resumen {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.carrito-resumen h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.resumen-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 16px;
}

.resumen-item.total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.resumen-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}

.coupon-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.coupon-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
}

.continue-shopping {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: var(--primary-color);
    transition: var(--transition);
}

.continue-shopping:hover {
    gap: 12px;
}

.carrito-vacio {
    text-align: center;
    padding: 60px 20px;
}

.carrito-vacio i {
    font-size: 80px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.carrito-vacio h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

/* ========================================
   CHECKOUT
   ======================================== */

.checkout-section {
    padding: 60px 0;
}

.checkout-steps {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
}

.step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
}

.checkout-form {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-section h3 {
    margin-bottom: 25px;
    font-size: 22px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.shipping-options,
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.shipping-option,
.payment-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.shipping-option:hover,
.payment-option:hover {
    border-color: var(--primary-color);
}

.shipping-option input:checked + .option-info,
.payment-option input:checked ~ * {
    color: var(--primary-color);
}

.option-info {
    flex: 1;
}

.option-info strong {
    display: block;
    margin-bottom: 5px;
}

.option-info span {
    font-size: 14px;
    color: var(--text-light);
}

.option-price {
    font-weight: 700;
    color: var(--primary-color);
}

.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.form-buttons .btn {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    cursor: pointer;
}

.checkout-resumen {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.resumen-productos {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.resumen-producto {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.resumen-producto-img {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.resumen-producto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.resumen-producto-img i {
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0.3;
}

.resumen-producto-info {
    flex: 1;
}

.resumen-producto-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.resumen-producto-info p {
    font-size: 12px;
    color: var(--text-light);
}

.resumen-totales {
    margin-top: 20px;
}

/* ========================================
   AUTENTICACIÓN (LOGIN/REGISTRO)
   ======================================== */

.auth-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    background: var(--bg-light);
}

.auth-container {
    width: 100%;
    max-width: 500px;
}

.auth-box {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.auth-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-light);
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    color: var(--text-light);
}

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    transition: var(--transition);
}

.input-with-icon input:focus {
    border-color: var(--primary-color);
}

.toggle-password {
    right: 15px;
    left: auto;
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 14px;
}

.auth-divider {
    text-align: center;
    margin: 30px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: var(--bg-white);
    padding: 0 15px;
    position: relative;
    color: var(--text-light);
    font-size: 14px;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-social {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.btn-social:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.btn-social.google {
    color: #DB4437;
}

.btn-social.facebook {
    color: #1877F2;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

.password-strength {
    height: 4px;
    background: var(--bg-light);
    border-radius: 2px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: var(--transition);
}

/* ========================================
   MI CUENTA
   ======================================== */

.cuenta-section {
    padding: 60px 0;
}

.cuenta-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.cuenta-sidebar {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.user-info {
    text-align: center;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.user-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 32px;
}

.user-info h3 {
    margin-bottom: 5px;
}

.user-info p {
    color: var(--text-light);
    font-size: 14px;
}

.cuenta-nav {
    display: flex;
    flex-direction: column;
}

.cuenta-nav a {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.cuenta-nav a:hover,
.cuenta-nav a.active {
    background: var(--bg-light);
    color: var(--primary-color);
}

.cuenta-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.cuenta-form {
    max-width: 600px;
}

.pedido-item {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.pedido-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.pedido-status {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pedido-status.entregado {
    background: #E8F5E9;
    color: var(--success-color);
}

.pedido-status.proceso {
    background: #FFF3E0;
    color: var(--warning-color);
}

.pedido-productos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.pedido-total {
    text-align: right;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* ========================================
   NOSOTROS & CONTACTO
   ======================================== */

.nosotros-section,
.contacto-section {
    padding: 60px 0;
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: center;
}

.content-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

.content-text p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-image .img-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-image i {
    font-size: 100px;
    color: var(--primary-color);
    opacity: 0.3;
}

.mision-vision {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.mv-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.mv-card i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mv-card h3 {
    margin-bottom: 15px;
}

.mv-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.certificaciones {
    background: var(--bg-light);
    padding: 60px;
    border-radius: 20px;
    margin-bottom: 60px;
}

.certificaciones h2 {
    text-align: center;
    margin-bottom: 40px;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cert-item {
    text-align: center;
}

.cert-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.cert-item h4 {
    margin-bottom: 10px;
}

.cert-item p {
    color: var(--text-light);
}

.equipo {
    margin-bottom: 60px;
}

.equipo h2 {
    text-align: center;
    margin-bottom: 15px;
}

.text-center {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-member {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
}

.member-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.team-member h4 {
    margin-bottom: 5px;
}

.team-member p {
    color: var(--text-light);
    font-size: 14px;
}

.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
    padding: 60px;
    border-radius: 20px;
    color: white;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-item h3 {
    font-size: 36px;
    margin-bottom: 10px;
}

.stat-item p {
    opacity: 0.9;
}

/* Contacto */
.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.contacto-info h2 {
    margin-bottom: 15px;
}

.contacto-info > p {
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 24px;
    flex-shrink: 0;
}

.info-content h4 {
    margin-bottom: 5px;
}

.info-content p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.social-contact h4 {
    margin-bottom: 15px;
}

.contacto-form-container {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.contacto-form-container h2 {
    margin-bottom: 25px;
}

.faq-section {
    background: var(--bg-light);
    padding: 60px;
    border-radius: 20px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.faq-item {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 12px;
}

.faq-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   MODAL
   ======================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content i {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.modal-content h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* ========================================
   ALERT
   ======================================== */

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert.success {
    background: #E8F5E9;
    color: var(--success-color);
    border: 1px solid var(--success-color);
}

.alert.error {
    background: #FFEBEE;
    color: var(--error-color);
    border: 1px solid var(--error-color);
}

.alert.warning {
    background: #FFF3E0;
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    
    .productos-layout,
    .carrito-layout,
    .checkout-layout,
    .cuenta-layout,
    .nosotros-content,
    .contacto-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar,
    .carrito-resumen,
    .checkout-resumen,
    .cuenta-sidebar {
        position: static;
    }
    
    .producto-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 32px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .search-box input:focus {
        width: 200px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .logo h1 {
        font-size: 16px;
    }
    
    .nav {
        gap: 15px;
        font-size: 14px;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero-content h2 {
        font-size: 28px;
    }
    
    .checkout-steps {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CHECKOUT GUEST/LOGIN OPTIONS
======================================== */

.guest-login-options {
    width: 100%;
    margin-bottom: 30px;
}

.checkout-user-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.user-option-card {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.user-option-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(76, 175, 80, 0.15);
    transform: translateY(-4px);
}

.user-option-card i {
    font-size: 48px;
    margin-bottom: 15px;
}

.user-option-card h3 {
    margin-bottom: 10px;
    color: var(--text-dark);
}

.user-option-card p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 15px;
}

.producto-cantidad-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.resumen-producto {
    position: relative;
}

.resumen-producto-img {
    position: relative;
}

/* Mejoras para carrito item */
.carrito-item-price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .checkout-user-options {
        grid-template-columns: 1fr;
    }
    
    .user-option-card {
        padding: 20px;
    }
}
