/* Flow Para Ti - Production Stylesheet */
:root {
  --primary: #50B589;
  --primary-gradient: linear-gradient(135deg, #64C49B 0%, #50B589 100%);
  --primary-hover: #3ca073;
  --primary-light: #eaf7f1;
  --primary-glow: rgba(80, 181, 137, 0.25);
  --dark: #1a1a1a;
  --dark-surface: #111111;
  --text-dark: #2c3e50;
  --text-muted: #64748b;
  --bg-light: #f7faf8;
  --bg-white: #ffffff;
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  --hover-shadow: 0 20px 40px rgba(80, 181, 137, 0.18);
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1eb956;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* Top Bar */
.top-bar {
  background: var(--dark);
  color: #fff;
  padding: 8px 0;
  font-size: 0.85rem;
  border-bottom: 2px solid var(--primary);
}
.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-info { display: flex; gap: 20px; flex-wrap: wrap; }
.top-info a { color: #cbd5e1; display: flex; align-items: center; gap: 6px; }
.top-info a:hover { color: var(--primary); }

/* Main Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo-brand img { height: 44px; }
.main-nav ul { display: flex; list-style: none; gap: 28px; }
.main-nav a { font-weight: 600; color: var(--dark); font-size: 0.95rem; padding: 6px 0; position: relative; }
.main-nav a:hover { color: var(--primary); }
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--primary); transition: var(--transition);
}
.main-nav a:hover::after { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm); font-weight: 700;
  font-size: 0.95rem; cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background: var(--primary-gradient); color: #fff; box-shadow: 0 4px 15px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(80, 181, 137, 0.35); }

.btn-whatsapp:hover { background-color: var(--whatsapp-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4); }
.btn-outline { background: transparent; border: 2px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* Hero */
.hero-section {
  position: relative; background: linear-gradient(135deg, #0f172a 0%, #1a2e26 100%);
  color: #fff; padding: 100px 20px; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(80, 181, 137, 0.35) 0%, rgba(0,0,0,0) 70%); pointer-events: none;
}
.hero-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-content h1 { font-size: 3.25rem; line-height: 1.15; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.5px; }
.hero-content h1 span { color: var(--primary); background: linear-gradient(120deg, #64C49B, #50B589); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-content p { font-size: 1.15rem; color: #cbd5e1; margin-bottom: 35px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-badge {
  display: inline-block; background: rgba(80, 181, 137, 0.2); color: #64C49B;
  border: 1px solid rgba(80, 181, 137, 0.4); padding: 6px 14px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px;
}
.hero-card-preview {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 35px; box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Sections */
.section { padding: 85px 20px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; max-width: 750px; margin: 0 auto 55px auto; }
.section-subtitle { color: var(--primary); font-weight: 700; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; display: block; }
.section-title { font-size: 2.35rem; color: var(--dark); font-weight: 800; line-height: 1.2; }

/* Filter Tabs */
.filter-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn {
  padding: 10px 20px; border-radius: 50px; background: #ffffff; border: 1px solid #e2e8f0;
  font-weight: 600; color: var(--text-muted); cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #ffffff; border-color: var(--primary); box-shadow: 0 4px 15px var(--primary-glow); }

/* Grids */
.category-grid, .product-grid, .benefits-grid, .services-grid, .process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 30px;
}

.category-card, .product-card, .benefit-card, .service-card, .process-step {
  background: var(--bg-white); border-radius: var(--radius-md); padding: 30px;
  box-shadow: var(--card-shadow); border: 1px solid rgba(0, 0, 0, 0.04); transition: var(--transition);
}
.category-card:hover, .product-card:hover, .service-card:hover { transform: translateY(-8px); box-shadow: var(--hover-shadow); }

.category-icon {
  width: 60px; height: 60px; border-radius: 12px; background: var(--primary-light);
  color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.75rem; margin-bottom: 20px;
}

.product-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.product-image-wrap { height: 230px; background: #f8fafc; display: flex; align-items: center; justify-content: center; position: relative; }
.product-category-tag { position: absolute; top: 15px; left: 15px; background: var(--dark); color: #fff; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 4px; text-transform: uppercase; }
.product-details { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }
.product-title { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.product-desc { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 20px; flex-grow: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 10px; }

.benefit-card { position: relative; overflow: hidden; }
.benefit-number { font-size: 3.5rem; font-weight: 900; color: var(--primary-light); position: absolute; top: 10px; right: 20px; line-height: 1; }

.services-section { background: var(--dark); color: #fff; }
.services-section .section-title { color: #fff; }
.service-card { background: #222; border: 1px solid rgba(255,255,255,0.08); }
.service-card h3 { color: var(--primary); margin-bottom: 10px; }
.service-card p { color: #94a3b8; }

.process-step { text-align: center; }
.process-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--primary-gradient); color: #fff; font-size: 1.5rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; box-shadow: 0 10px 20px var(--primary-glow); }

/* Footer */
.main-footer { background: #0d1117; color: #94a3b8; padding: 75px 20px 30px 20px; border-top: 3px solid var(--primary); }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-title { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; flex-wrap: wrap; gap: 15px; }

@media (max-width: 992px) {
  .hero-container, .footer-container { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.3rem; }
  .main-nav ul { display: none; }
}


/* Personalizer Interactive Tool Styles */
.custom-prod-btn {
    padding: 12px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 10px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-prod-btn:hover {
    border-color: #50B589;
    background: #f0fdf4;
}

.custom-prod-btn.active {
    border-color: #50B589;
    background: #e6f7ef;
    color: #50B589;
    box-shadow: 0 2px 6px rgba(80, 181, 137, 0.2);
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.color-swatch:hover {
    transform: scale(1.15);
}

.color-swatch.active {
    outline: 3px solid #50B589;
    outline-offset: 2px;
}

.logo-img { height: 52px !important; max-height: 60px !important; }
.footer-logo-img { height: 56px !important; }

/* Outline WhatsApp Button Style */
.btn-whatsapp {
    background: transparent !important;
    border: 2px solid #25D366 !important;
    color: #25D366 !important;
    font-weight: 700 !important;
    padding: 8px 16px !important;
    border-radius: 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: none !important;
}
.btn-whatsapp:hover {
    background: rgba(37, 211, 102, 0.12) !important;
    color: #25D366 !important;
    border-color: #25D366 !important;
    transform: translateY(-1px) !important;
}


/* Hamburger Mobile Menu Overlay */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 110;
}
.hamburger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block !important;
    }
    .nav-links-menu {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 22px !important;
        z-index: 105;
        padding: 40px 20px;
    }
    .nav-links-menu.mobile-open {
        display: flex !important;
    }
    .nav-links-menu a {
        font-size: 1.25rem !important;
        font-weight: 800 !important;
    }
    .header-container {
        padding: 10px 16px !important;
    }
}


/* Visibility Control for PC vs Mobile Home */
@media (max-width: 768px) {
    .desktop-only-hero { display: none !important; }
    .mobile-only-home { display: block !important; }
}
@media (min-width: 769px) {
    .desktop-only-hero { display: block !important; }
    .mobile-only-home { display: none !important; }
}



    .personalizer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .preview-column {
        position: sticky !important;
        top: 65px !important;
        z-index: 90 !important;
        background: #ffffff !important;
        padding: 12px !important;
        border-radius: 20px !important;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08) !important;
        border: 1px solid #e2e8f0 !important;
    }
    #garmentSvgCanvas {
        width: 100% !important;
        height: auto !important;
        max-height: 320px !important;
        touch-action: none !important; /* Prevents page scrolling while dragging logos with finger */
        user-select: none !important;
        -webkit-user-select: none !important;
    }
    .control-card {
        padding: 20px 16px !important;
        border-radius: 18px !important;
    }
    .color-swatches {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 12px !important;
        justify-content: center !important;
    }
    .color-swatch {
        width: 42px !important;
        height: 42px !important;
        border-radius: 50% !important;
    }
    .preset-btn, .view-btn, .product-btn {
        min-height: 48px !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        padding: 12px 14px !important;
        border-radius: 12px !important;
    }
    input[type="range"] {
        height: 40px !important;
        touch-action: manipulation !important;
    }
}



    .personalizer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }
    .preview-column {
        position: relative !important;
        top: 0 !important;
        background: #ffffff !important;
        border-radius: 24px !important;
        padding: 24px 16px !important;
        border: 1.5px solid #e2e8f0 !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.06) !important;
        margin-bottom: 10px !important;
    }
    #svgGarmentWrapper {
        position: relative !important;
        width: 100% !important;
        height: 350px !important;
        margin: 0 auto !important;
        touch-action: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .control-card {
        padding: 24px 18px !important;
        border-radius: 20px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.03) !important;
    }
    .color-swatches {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 14px !important;
        justify-content: center !important;
        margin: 15px 0 !important;
    }
    .color-swatch {
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        cursor: pointer !important;
    }
    .preset-btn, .view-btn, .product-btn {
        min-height: 48px !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        padding: 12px 16px !important;
        border-radius: 14px !important;
    }
    .mobile-dpad-controls {
        display: none !important; /* Removed ugly d-pad block */
    }
}



    .personalizer-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
    }
    .preview-column {
        width: 100% !important;
        max-width: 100% !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        padding: 15px 10px !important;
        border: 1.5px solid #e2e8f0 !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important;
        box-sizing: border-box !important;
    }
    #svgGarmentWrapper {
        width: 100% !important;
        max-width: 360px !important;
        height: 380px !important;
        margin: 0 auto !important;
        position: relative !important;
        touch-action: none !important;
    }
    .control-card {
        padding: 20px 15px !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-sizing: border-box !important;
    }
    .color-swatches {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
    }
    .color-swatch {
        width: 40px !important;
        height: 40px !important;
        border-radius: 50% !important;
    }
    .preset-btn, .view-btn, .product-btn {
        min-height: 44px !important;
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }
}


/* 100% Clean Responsive Mobile Layout for Personalizador 360° */
@media (max-width: 768px) {
    .personalizer-container {
        padding: 12px 8px !important;
    }
    .personalizer-grid {
        display: flex !important;
        flex-direction: column-reverse !important; /* PRENDA ARRIBA EN MÓVIL */
        gap: 16px !important;
    }
    .preview-column, #garmentCanvasContainer {
        width: 100% !important;
        height: 380px !important;
        min-height: 380px !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        padding: 10px !important;
        border: 1.5px solid #e2e8f0 !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
        box-sizing: border-box !important;
        position: relative !important;
    }
    #svgGarmentWrapper {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        touch-action: none !important;
    }
    .control-card {
        padding: 18px 14px !important;
        border-radius: 18px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-sizing: border-box !important;
    }
    .color-swatches {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        justify-content: center !important;
    }
    .color-swatch {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
    }
    .preset-btn, .view-btn, .product-btn {
        min-height: 44px !important;
        font-size: 0.9rem !important;
        padding: 10px 12px !important;
        border-radius: 12px !important;
    }
}

/* Personalizer 360 Mobile Responsive */
@media (max-width: 768px) {
    #personalizer-main-grid {
        grid-template-columns: 1fr !important;
        padding: 14px !important;
        gap: 20px !important;
    }
    #garmentCanvasContainer {
        height: 360px !important;
        min-height: 360px !important;
    }
    #svgGarmentWrapper svg {
        width: 100% !important;
        height: auto !important;
        max-height: 340px !important;
    }
}
