/* --- VARIABLES Y BASES --- */
:root {
    --brand-primary: #1a1a1a;
    --brand-accent: #b08d57; /* Dorado premium */
    --brand-success: #27ae60;
    --bg-light: #f4f7f6;
    --bg-editor: #e0e0e0;
    --white: #ffffff;
    --border-color: #ddd;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; } /* Para que el botón 'Beneficios' baje suavemente */

body { 
    font-family: 'Inter', sans-serif; 
    background-color: var(--white); 
    color: var(--brand-primary);
    overflow-x: hidden; 
}

.hidden { display: none !important; }

/* --- NAVEGACIÓN --- */
.main-nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 15px 8%; 
    background: var(--white); 
    border-bottom: 1px solid #eee;
    position: sticky; 
    top: 0; 
    z-index: 100;
}

.logo { 
    font-weight: 700; 
    letter-spacing: 2px; 
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
}

.nav-links { display: flex; align-items: center; gap: 20px; }

.btn-text {
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: var(--transition);
}
.btn-text:hover { color: var(--brand-accent); }

/* --- LANDING PAGE --- */
.hero { 
    text-align: center; 
    padding: 80px 5%; 
    background: var(--bg-light); 
}

.hero h1 { 
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem); 
    margin-bottom: 20px; 
    line-height: 1.2;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 30px;
    color: #555;
    font-size: 1.2rem;
    line-height: 1.6;
}

.accent { color: var(--brand-accent); }

.btn-primary, .btn-large {
    background: var(--brand-primary); 
    color: #fff; 
    border: none;
    padding: 12px 25px; 
    border-radius: 6px; 
    cursor: pointer; 
    font-weight: 600;
    transition: var(--transition);
}

.btn-large { padding: 18px 45px; font-size: 1.1rem; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-large:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

.hero-mockup img {
    max-width: 850px;
    width: 90%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12);
    margin-top: 50px;
}

/* Beneficios */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    padding: 100px 10%;
}

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 20px;
    background: var(--white);
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-10px); }

.feature-card .icon { font-size: 2.5rem; margin-bottom: 20px; display: block; }
.feature-card h3 { margin-bottom: 15px; font-family: 'Playfair Display', serif; }
.feature-card p { color: #666; line-height: 1.5; }

/* Cómo Funciona */
.how-it-works { padding: 100px 10%; background: #fff; text-align: center; }
.section-title { font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 60px; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.step { position: relative; padding: 20px; }
.step-number {
    display: inline-block;
    width: 50px;
    height: 50px;
    background: var(--brand-accent);
    color: white;
    border-radius: 50%;
    line-height: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 20px;
}
.step h4 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: #666; }

/* Footer */
.main-footer {
    padding: 50px 5%;
    background: var(--brand-primary);
    color: #999;
    text-align: center;
    font-size: 0.9rem;
}

/* --- EDITOR LAYOUT --- */
.editor-layout { display: flex; height: calc(100vh - 71px); background: var(--bg-editor); }

#editor-panel {
    width: 400px; 
    background: var(--white); 
    border-right: 1px solid var(--border-color);
    padding: 30px; 
    overflow-y: auto;
    box-shadow: 10px 0 30px rgba(0,0,0,0.05);
}

.panel-section { margin-bottom: 30px; }
.panel-section h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
}

#preview-area {
    flex-grow: 1; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 40px;
}

/* EL SIMULADOR */
.preview-device {
    width: 340px; 
    height: 680px; 
    background: #1a1a1a; 
    border: 14px solid #1a1a1a; 
    border-radius: 55px; 
    box-shadow: 0 40px 80px rgba(0,0,0,0.3);
    position: relative; 
    overflow: hidden; 
}

/* Notch del iPhone */
.preview-device::after {
    content: "";
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 150px; height: 28px;
    background: #1a1a1a;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 20;
}

.device-content { 
    height: 100%;
    background: var(--white);
    overflow-y: auto; 
    padding: 25px 20px;
    border-radius: 40px;
}

.device-content::-webkit-scrollbar { width: 4px; }
.device-content::-webkit-scrollbar-thumb { background: #eee; border-radius: 10px; }

/* CONTENIDO VITRINA */
#store-header { text-align: center; padding: 40px 10px 25px; border-bottom: 1px solid #f5f5f5; }
#store-name { font-size: 1.6rem; margin-bottom: 8px; font-family: inherit; }
#store-bio { font-size: 0.9rem; color: #888; line-height: 1.4; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 25px 0; }
.product-card { 
    background: var(--white); 
    padding: 12px; 
    border-radius: 15px; 
    text-align: center; 
    border: 1px solid #f0f0f0;
}
.img-placeholder { background: #f7f7f7; height: 100px; border-radius: 10px; margin-bottom: 12px; }

.btn-add { 
    background: var(--brand-accent); 
    color: white; 
    border: none; 
    padding: 10px; 
    border-radius: 8px; 
    width: 100%; 
    font-size: 0.8rem;
    font-weight: 600;
}

/* UI EDITOR */
.control-group { margin-bottom: 20px; }
.control-group label { display: block; font-size: 0.85rem; margin-bottom: 8px; font-weight: 600; color: #444; }
.control-group input, .control-group textarea, .control-group select { 
    width: 100%; padding: 12px; border: 1px solid #eee; border-radius: 10px; background: #fafafa;
}

.btn-save { 
    background: var(--brand-success); color: white; width: 100%; padding: 18px; 
    border: none; border-radius: 12px; font-size: 1rem; font-weight: 700;
    box-shadow: 0 10px 20px rgba(39, 174, 96, 0.2); cursor: pointer;
}

.admin-item { 
    background: #f9f9f9; padding: 12px; margin-bottom: 10px; border-radius: 10px; 
    display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem;
}
