/* ============================================================
   MyMobel Antequera — Hoja de estilos
   ============================================================ */

:root {
    /* Colores corporativos MyMobel: negro puro y blanco puro (monocromo) */
    --green:        #000000;   /* acento = negro */
    --green-dark:   #1a1a1a;
    --green-light:  #f2f2f2;   /* gris muy claro para fondos suaves */
    --ink:          #000000;
    --ink-soft:     #2a2a2a;
    --muted:        #666666;
    --line:         #e6e6e6;
    --bg:           #ffffff;
    --bg-alt:       #f5f5f5;
    --white:        #ffffff;
    --radius:       14px;
    --radius-lg:    22px;
    --shadow-sm:    0 2px 8px rgba(35,36,31,.06);
    --shadow:       0 12px 34px rgba(35,36,31,.10);
    --shadow-lg:    0 24px 60px rgba(35,36,31,.16);
    --max:          1180px;
    --font:         'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-head:    'Poppins', var(--font);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--ink); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: #000; text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.015em; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 22px; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 1000;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 4px; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .5em; justify-content: center;
    font-family: var(--font-head); font-weight: 600; font-size: 1rem;
    padding: .8em 1.5em; border-radius: 999px; cursor: pointer;
    border: 2px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: #000; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.22); }
.btn-primary:hover { background: #262626; color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--ink); border-color: #000; }
.btn-outline:hover { background: #000; color: #fff; text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: #fff; color: #000; text-decoration: none; }
.btn-pay { background: #fff; color: #000; padding: .6em 1.2em; }
.btn-pay:hover { background: #d9d9d9; color: #000; text-decoration: none; }

/* ---------- Cabecera ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: #000;
    border-bottom: 1px solid #1c1c1c;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 1rem; }

.logo { display: inline-flex; align-items: center; gap: 10px; position: relative; }
.logo:hover { text-decoration: none; }
.logo-img { height: 38px; width: auto; display: block; }
.logo-city {
    font-family: var(--font); font-size: .62rem; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: rgba(255,255,255,.6); align-self: center;
    padding-left: 10px; border-left: 1px solid rgba(255,255,255,.25);
}
.logo--footer .logo-img { height: 44px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    font-family: var(--font-head); font-weight: 500; color: rgba(255,255,255,.82);
    padding: .55em .9em; border-radius: 8px; font-size: .98rem;
}
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,.12); text-decoration: none; }
.nav-cta { margin-left: 4px; }
.nav-cta a { color: #000; }
.nav-cta a:hover { background: #d9d9d9; color: #000; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: 0;
    cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: #fff; border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(135deg, #000 0%, #141414 60%, #000 100%);
    color: #fff;
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.08), transparent 45%);
    pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
    padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero .eyebrow {
    display: inline-flex; align-items: center; gap: .5em;
    background: rgba(255,255,255,.1); color: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.25);
    padding: .4em 1em; border-radius: 999px; font-size: .85rem; font-weight: 600;
    font-family: var(--font-head); margin-bottom: 1.2rem;
}
.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero h1 span { color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.hero-lead { font-size: 1.18rem; color: rgba(255,255,255,.85); max-width: 40ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stats .stat strong { font-family: var(--font-head); font-size: 1.7rem; color: #fff; display: block; }
.hero-stats .stat span { font-size: .88rem; color: rgba(255,255,255,.7); }

.hero-visual {
    aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); background: #444 var(--hero-img, none) center/cover no-repeat;
    position: relative;
}
.hero-visual .placeholder {
    position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
    background: linear-gradient(135deg, #1a1a1a, #333); color: rgba(255,255,255,.55);
    font-family: var(--font-head); font-size: .95rem; padding: 1rem;
}
.hero-visual .placeholder img,
.hero-visual > img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; padding: 0;
}

/* ---------- Secciones ---------- */
section { padding-block: clamp(3.2rem, 7vw, 5.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head .eyebrow {
    display: inline-block; color: var(--green-dark); font-weight: 700; font-family: var(--font-head);
    text-transform: uppercase; letter-spacing: 2px; font-size: .8rem; margin-bottom: .6rem;
}
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Tarjetas de categorías ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--green); }
.card .icon {
    width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
    background: var(--green-light); color: var(--green-dark); margin-bottom: 1.1rem;
}
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ---------- Franja de ventajas ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.6rem; }
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .fico {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: #000; color: #fff;
}
.feature .fico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.08rem; margin-bottom: .2rem; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Bloque partido (about) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-visual {
    position: relative;
    aspect-ratio: 5/4; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
    background: linear-gradient(135deg, #f2f2f2, #e2e2e2);
    display: grid; place-items: center; color: var(--green-dark);
    font-family: var(--font-head); text-align: center; padding: 1rem;
}
.split-visual img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.split ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .8rem; }
.split ul li { display: flex; gap: .7rem; align-items: flex-start; }
.split ul li::before {
    content: "✓"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
    background: var(--green); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}

/* ---------- CTA franja ---------- */
.cta-band {
    background: linear-gradient(135deg, #000, #262626); color: #fff; text-align: center;
    border-radius: var(--radius-lg); padding: clamp(2.5rem, 5vw, 3.8rem);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 48ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; margin-top: 1.6rem; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.3rem; }
.info-list li { display: flex; gap: 1rem; align-items: flex-start; }
.info-list .ico {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
    background: var(--green-light); color: var(--green-dark);
}
.info-list .ico svg { width: 22px; height: 22px; }
.info-list h3 { font-size: 1.05rem; margin: 0 0 .15rem; }
.info-list a, .info-list p { margin: 0; color: var(--ink-soft); }
.map-embed { border: 0; width: 100%; height: 100%; min-height: 420px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.hours-table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.hours-table td { padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.hours-table td:last-child { text-align: right; color: var(--muted); }
.hours-table tr.today td { color: var(--green-dark); font-weight: 600; }
.hours-table tr.today td:last-child { color: var(--green-dark); }

/* ---------- Páginas de texto (legal) ---------- */
.page-hero { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding-block: clamp(2.5rem, 6vw, 4rem); }
.page-hero .breadcrumb { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.page-hero h1 { margin: 0; }
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; }
.prose th { background: var(--bg-alt); font-family: var(--font-head); }
.prose .updated { color: var(--muted); font-size: .9rem; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr; gap: 2.5rem; padding-block: 3.5rem; }
.site-footer h3 { color: #fff; font-size: 1rem; letter-spacing: .5px; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.72); }
.site-footer a:hover { color: #fff; }
.footer-tagline { color: rgba(255,255,255,.85); font-weight: 500; }
.footer-ref { font-size: .9rem; color: rgba(255,255,255,.5); }
.site-footer address { font-style: normal; }
.site-footer address p { margin-bottom: .6rem; }
.footer-hours { list-style: none; padding: 0; margin: 0; }
.footer-hours li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; font-size: .9rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-links { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.footer-links li { margin-bottom: .5rem; }
.footer-pay { font-weight: 600; color: #fff; }
.footer-social { display: flex; gap: .8rem; flex-wrap: wrap; }
.footer-social a { border: 1px solid rgba(255,255,255,.2); padding: .35em .8em; border-radius: 999px; font-size: .82rem; }
.footer-social a:hover { border-color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.3rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .85rem; color: rgba(255,255,255,.55); }
.legal-nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.legal-nav a { font-size: .85rem; }

/* ---------- Banner cookies ---------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    max-width: 560px; margin-inline: auto; animation: slideUp .4s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-inner { padding: 1.3rem 1.5rem; }
.cookie-inner p { font-size: .92rem; color: var(--ink-soft); margin-bottom: 1rem; }
.cookie-actions { display: flex; gap: .8rem; justify-content: flex-end; }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
    position: fixed; right: 20px; bottom: 20px; z-index: 150;
    width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
    display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Utilidades ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
    .hero-visual { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed; inset: 74px 0 auto 0; background: #000; border-bottom: 1px solid #1c1c1c;
        transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow);
    }
    .main-nav.open { transform: none; }
    .main-nav ul { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem 1.5rem; gap: 2px; }
    .main-nav a { padding: .9em 1em; border-radius: 10px; }
    .nav-cta { margin-top: .5rem; }
    .nav-cta a { text-align: center; }
}
@media (max-width: 560px) {
    body { font-size: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .cookie-actions { justify-content: stretch; }
    .cookie-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
