
:root {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent: #0a84ff;
    --black: #111111;
    --glass-bg: rgba(255, 255, 255, 0.72);
    --glass-border: 1px solid rgba(0, 0, 0, 0.05);
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
    --radius-lg: 24px;
    --radius: 16px;
    
    --bg-alt: #ebebeb;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #000000;
        --bg-secondary: #1c1c1e;
        --bg-alt: #111111;
        --text-primary: #f5f5f7;
        --text-secondary: #86868b;
        --glass-bg: rgba(28, 28, 30, 0.72);
        --glass-border: 1px solid rgba(255, 255, 255, 0.1);
        --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
    background-color: var(--bg-primary); color: var(--text-primary);
    line-height: 1.5; font-size: 16px; font-weight: 400; letter-spacing: -0.02em;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.03em; color: var(--text-primary); }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.2; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--text-secondary); font-size: 1.1rem; }
.lead { font-size: 1.25rem; }
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
.text-link { font-weight: 500; font-size: 1rem; }

.section { padding: 100px 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.mb-4 { margin-bottom: 3rem; }
.max-w-md { max-width: 800px; margin: 0 auto; }
.mx-auto { margin-right: auto; margin-left: auto; }
.bg-alt { background-color: var(--bg-alt); }

/* Glass & Cards */
.glass {
    background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: var(--glass-border);
}
.glass-card {
    background: var(--bg-secondary); border-radius: var(--radius-lg); padding: 2rem;
    box-shadow: var(--shadow); border: var(--glass-border); transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.glass-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; padding: 1rem 0; transition: padding 0.3s; border-bottom: var(--glass-border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.logo { font-size: 1.2rem; font-weight: 700; letter-spacing: 0.05em; }
.main-nav { display: flex; gap: 2rem; }
.nav-link { color: var(--text-primary); font-size: 0.95rem; font-weight: 500; }
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: 980px; font-weight: 600; font-size: 1rem;
    cursor: pointer; border: none; transition: transform 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.96); }
.btn-primary { background: var(--text-primary); color: var(--bg-primary); }
.btn-secondary { background: rgba(134, 134, 139, 0.1); color: var(--text-primary); }
.btn-glass { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.3); backdrop-filter: blur(10px); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.full-width { width: 100%; }

/* Hero */
.hero { padding-top: 100px; padding-bottom: 60px; overflow: hidden; }
.eyebrow { text-transform: uppercase; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 1rem; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 2.5rem; flex-wrap: wrap; }
.hero-badges { display: flex; justify-content: center; gap: 1rem; margin-top: 3rem; flex-wrap: wrap; }
.badge { font-size: 0.85rem; padding: 6px 14px; border-radius: 99px; background: var(--bg-secondary); border: var(--glass-border); font-weight: 500; }

.hero-visual { position: relative; margin-top: 4rem; height: 400px; max-width: 900px; margin-inline: auto; }
.hero-image-placeholder { height: 100%; width: 100%; border-radius: 32px; overflow: hidden; }
.floating-cards { position: absolute; inset: 0; pointer-events: none; }
.float-card { 
    position: absolute; padding: 12px 24px; border-radius: 12px; font-weight: 600; font-size: 0.9rem;
    box-shadow: var(--shadow-hover);
}
.float-card:nth-child(1) { top: -20px; left: -20px; }
.float-card:nth-child(2) { bottom: 40px; right: -30px; }
.float-card:nth-child(3) { bottom: -20px; left: 10%; }

/* Gradients for Images */
.visual-bg-1 { background: radial-gradient(circle at top left, #dce3e7 0%, #aab7c4 100%); }
.visual-bg-2 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.visual-bg-3 { background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); }
.visual-bg-4 { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); }
.visual-bg-5 { background: linear-gradient(135deg, #e0eafc 0%, #cfdef3 100%); }
.visual-bg-6 { background: linear-gradient(120deg, #fdfbfb 0%, #ebedee 100%); }
.visual-bg-7 { background: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%); }

.lace-bg-1 { background: linear-gradient(to right, #434343 0%, black 100%); }
.lace-bg-2 { background: linear-gradient(to right, #243949 0%, #517fa4 100%); }
.lace-bg-3 { background: linear-gradient(to top, #09203f 0%, #537895 100%); }
.lace-bg-4 { background: linear-gradient(to right, #0f2027 0%, #203a43 50%, #2c5364 100%); }
.lace-bg-5 { background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); }
.lace-bg-6 { background: linear-gradient(to top, #30cfd0 0%, #330867 100%); }

@media (prefers-color-scheme: dark) {
    .visual-bg-1, .visual-bg-2, .visual-bg-3, .visual-bg-4, .visual-bg-5, .visual-bg-6, .visual-bg-7 { opacity: 0.7; }
}

/* Bento Grid */
.bento-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.bento-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.bento-img { height: 200px; width: 100%; border-bottom: var(--glass-border); }
.bento-content { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.bento-content h3 { margin-bottom: 0.5rem; }
.bento-content p { margin-bottom: 1.5rem; flex: 1; }
.bento-content .text-link { margin-top: auto; }

/* Telas Chips & Blocks */
.benefits-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.chip { padding: 8px 16px; border-radius: 99px; background: var(--bg-secondary); border: 1px solid var(--text-secondary); font-size: 0.9rem; font-weight: 500; }
.blocks-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.premium-block { border-top: 4px solid var(--text-primary); border-radius: 12px; }

/* Encajes Catalog */
.bg-dark { background-color: var(--black); color: #fff; }
.text-light, .text-light h2, .text-light h3, .text-light h4, .text-light p { color: #f5f5f7; }
.text-light p { color: #a1a1a6; }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; text-align: left; }
.catalog-card { background: rgba(255,255,255,0.05); padding: 24px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.1); }
.catalog-img { height: 240px; border-radius: 12px; margin-bottom: 1.5rem; }
.text-link.accent { color: #fff; border-bottom: 1px solid #fff; padding-bottom: 2px; }

/* Timeline */
.timeline { position: relative; max-width: 800px; margin: 3rem auto 0; padding-left: 40px; border-left: 2px solid var(--text-secondary); }
.timeline-step { position: relative; margin-bottom: 40px; padding: 24px; }
.step-num { position: absolute; left: -80px; top: 24px; width: 40px; height: 40px; background: var(--text-primary); color: var(--bg-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; }
.step-content h3 { margin-bottom: 0.5rem; }
.step-content p { margin-bottom: 0; }

/* Split Layout */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.layout-chips { display: flex; flex-direction: column; gap: 16px; }
.v-chip { padding: 16px 24px; font-weight: 600; border-radius: 12px; }

/* Quotes */
.premium-quote { font-size: 1.5rem; font-weight: 500; font-style: italic; line-height: 1.4; color: var(--text-primary); }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: start; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.apple-form input, .apple-form textarea { width: 100%; padding: 16px; border-radius: 12px; border: 1px solid rgba(134, 134, 139, 0.4); background: var(--bg-primary); color: var(--text-primary); font-family: inherit; font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s; }
.apple-form input:focus, .apple-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.2); }

/* Footer */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 1.5rem; font-size: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.8rem; }
.footer-col ul li a { color: #a1a1a6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; color: #86868b; text-align: center; }

/* Reveal Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); will-change: transform, opacity; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* Responsive */
@media (max-width: 900px) {
    .split-layout, .contact-layout, .footer-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; } /* Simplified for Apple-like mobile via JS if needed */
    .hero-visual { height: 300px; }
    .float-card { display: none; }
}
@media (max-width: 600px) {
    .timeline { padding-left: 20px; }
    .step-num { left: -50px; width: 30px; height: 30px; font-size: 0.8rem; }
    h1 { font-size: 2.2rem; }
}
