/* ===========================================================
   Perez Digital — Desarrollo web, aplicaciones, páginas, tiendas e invitaciones
   =========================================================== */

:root {
    --primary: #6c3ea6;
    --primary-dark: #4f2c7d;
    --accent: #ffd166;
    --pink: #ff6b9d;
    --whatsapp: #25d366;
    --whatsapp-dark: #1ebe5a;
    --bg: #fffdf9;
    --bg-alt: #f7f1fb;
    --text: #2b2138;
    --text-muted: #6b6178;
    --border: #ece4f5;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(76, 34, 122, 0.08);
    --shadow-hover: 0 16px 40px rgba(76, 34, 122, 0.14);
    --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Poppins', -apple-system, Segoe UI, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--primary-dark);
    margin: 0 0 0.5em;
    line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--text-muted); }

a { color: inherit; }

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-whatsapp {
    background: var(--whatsapp);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-ghost {
    background: transparent;
    color: var(--primary-dark) !important;
    border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); background: var(--bg-alt); }

.btn-small { padding: 9px 18px; font-size: 0.85rem; }

.ico-wsp {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M16.02 3C9.4 3 4 8.38 4 15c0 2.36.68 4.56 1.86 6.42L4 29l7.78-1.82A11.93 11.93 0 0 0 16.02 27C22.65 27 28 21.62 28 15S22.65 3 16.02 3zm0 21.6c-1.98 0-3.85-.55-5.45-1.5l-.39-.23-4.6 1.08 1.1-4.48-.25-.4A9.55 9.55 0 0 1 6.4 15c0-5.3 4.31-9.6 9.62-9.6S25.6 9.7 25.6 15s-4.3 9.6-9.58 9.6zm5.3-7.18c-.29-.15-1.72-.85-1.99-.95-.27-.1-.46-.15-.66.15-.2.29-.76.95-.93 1.14-.17.2-.34.22-.63.07-.29-.15-1.22-.45-2.33-1.44-.86-.77-1.44-1.72-1.61-2.01-.17-.29-.02-.45.13-.6.13-.13.29-.34.44-.51.15-.17.2-.29.29-.49.1-.2.05-.37-.02-.51-.07-.15-.66-1.59-.9-2.18-.24-.57-.48-.49-.66-.5h-.56c-.2 0-.51.07-.78.37-.27.29-1.02 1-1.02 2.43s1.05 2.82 1.2 3.01c.15.2 2.06 3.15 5 4.41.7.3 1.24.48 1.67.62.7.22 1.34.19 1.84.12.56-.08 1.72-.7 1.96-1.38.24-.68.24-1.26.17-1.38-.07-.12-.27-.2-.56-.35z'/></svg>") center / contain no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path d='M16.02 3C9.4 3 4 8.38 4 15c0 2.36.68 4.56 1.86 6.42L4 29l7.78-1.82A11.93 11.93 0 0 0 16.02 27C22.65 27 28 21.62 28 15S22.65 3 16.02 3zm0 21.6c-1.98 0-3.85-.55-5.45-1.5l-.39-.23-4.6 1.08 1.1-4.48-.25-.4A9.55 9.55 0 0 1 6.4 15c0-5.3 4.31-9.6 9.62-9.6S25.6 9.7 25.6 15s-4.3 9.6-9.58 9.6zm5.3-7.18c-.29-.15-1.72-.85-1.99-.95-.27-.1-.46-.15-.66.15-.2.29-.76.95-.93 1.14-.17.2-.34.22-.63.07-.29-.15-1.22-.45-2.33-1.44-.86-.77-1.44-1.72-1.61-2.01-.17-.29-.02-.45.13-.6.13-.13.29-.34.44-.51.15-.17.2-.29.29-.49.1-.2.05-.37-.02-.51-.07-.15-.66-1.59-.9-2.18-.24-.57-.48-.49-.66-.5h-.56c-.2 0-.51.07-.78.37-.27.29-1.02 1-1.02 2.43s1.05 2.82 1.2 3.01c.15.2 2.06 3.15 5 4.41.7.3 1.24.48 1.67.62.7.22 1.34.19 1.84.12.56-.08 1.72-.7 1.96-1.38.24-.68.24-1.26.17-1.38-.07-.12-.27-.2-.56-.35z'/></svg>") center / contain no-repeat;
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 253, 249, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--primary-dark);
    white-space: nowrap;
}
.logo-mark {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--pink) 100%);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.logo-text strong { color: var(--pink); }

.main-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}
.main-nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    position: relative;
    padding: 4px 0;
}
.main-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--primary-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pink);
    margin: 0 0 12px;
}

.hero h1 { font-size: clamp(2rem, 4vw, 2.9rem); }

.hero-sub { font-size: 1.05rem; max-width: 46ch; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0 18px; }

.hero-trust { font-size: 0.88rem; color: var(--text-muted); }

.hero-visual { position: relative; display: flex; justify-content: center; }

.phone-mock {
    width: 250px;
    height: 500px;
    background: var(--primary-dark);
    border-radius: 38px;
    padding: 14px;
    box-shadow: var(--shadow-hover);
    position: relative;
}
.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 18px;
    background: var(--primary-dark);
    border-radius: 0 0 14px 14px;
    z-index: 2;
}
.phone-screen {
    height: 100%;
    background: linear-gradient(160deg, #fff 0%, var(--bg-alt) 100%);
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
}

.invite-card { text-align: center; }
.invite-kicker { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pink); margin-bottom: 4px; }
.invite-names { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--primary-dark); margin: 0; }
.invite-names span { color: var(--accent); }
.invite-date { font-weight: 600; letter-spacing: 0.05em; margin: 6px 0 14px; }
.invite-divider { width: 46px; height: 2px; background: var(--accent); margin: 0 auto 14px; }
.invite-line { font-size: 0.85rem; margin-bottom: 8px; color: var(--text); }
.invite-btn {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 999px;
    background: var(--whatsapp);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
}

.floating-chip {
    position: absolute;
    background: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    animation: float 4s ease-in-out infinite;
}
.chip-1 { top: 12%; left: -6%; animation-delay: 0s; }
.chip-2 { bottom: 22%; right: -8%; animation-delay: 1.2s; }
.chip-3 { top: 48%; right: -10%; animation-delay: 2.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ---------- Secciones genéricas ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-sub { font-size: 1rem; }

/* ---------- Eventos ---------- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.event-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.event-ico { font-size: 2rem; display: block; margin-bottom: 10px; }
.event-card h3 { font-size: 1rem; margin: 0; color: var(--text); font-family: 'Poppins', sans-serif; font-weight: 600; }

/* ---------- Funcionalidades ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.feature-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px 22px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--bg-alt);
    font-size: 1.4rem;
    margin-bottom: 14px;
}
.feature-card h3 { font-size: 1.05rem; font-family: 'Poppins', sans-serif; color: var(--text); }
.feature-card p { font-size: 0.9rem; margin: 0; }

/* ---------- Pasos ---------- */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    counter-reset: step;
}
.step { text-align: center; padding: 0 8px; }
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; font-family: 'Poppins', sans-serif; color: var(--text); }
.step p { font-size: 0.9rem; }

.steps-cta { text-align: center; margin-top: 40px; }

/* ---------- Beneficios ---------- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.benefit {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: #fff;
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
}
.benefit > span { font-size: 1.6rem; line-height: 1; }
.benefit h3 { font-size: 1.02rem; font-family: 'Poppins', sans-serif; color: var(--text); margin-bottom: 4px; }
.benefit p { font-size: 0.9rem; margin: 0; }

/* ---------- Cotizar / formulario ---------- */
.quote-panel {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 24px;
    padding: 48px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: center;
    color: #fff;
}
.quote-copy .eyebrow { color: var(--accent); }
.quote-copy h2 { color: #fff; }
.quote-copy p { color: rgba(255,255,255,0.85); }

.quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.field input, .field select, .field textarea {
    padding: 12px 14px;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 0.92rem;
    background: rgba(255,255,255,0.95);
    color: var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 3px solid var(--accent);
}
.quote-form .btn { justify-self: start; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: #fff;
    border-radius: 12px;
    padding: 6px 22px;
    box-shadow: var(--shadow);
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 16px 0;
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--pink);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 16px; margin: 0; font-size: 0.92rem; }

/* ---------- Contacto ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.contact-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.contact-card-static { cursor: default; }
.contact-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-alt);
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--primary);
}
.contact-card h3 { font-size: 1rem; font-family: 'Poppins', sans-serif; color: var(--text); margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: 0.92rem; }
.contact-note { text-align: center; margin-top: 28px; font-size: 0.88rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 40px 0 20px; }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}
.logo-footer { color: #fff; }
.logo-footer .logo-mark { background: rgba(255, 255, 255, 0.16); }
.logo-footer .logo-text strong { color: var(--accent); }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.footer-nav a:hover { color: #fff; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none;
    color: #fff;
}
.footer-social .ico-wsp { background-color: #fff; }
.footer-copy { text-align: center; font-size: 0.8rem; margin: 20px 0 0; color: rgba(255,255,255,0.6); }

/* ---------- WhatsApp flotante ---------- */
.whatsapp-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.45);
    z-index: 90;
    text-decoration: none;
}
.whatsapp-fab .ico-wsp { width: 26px; height: 26px; background-color: #fff; }
.whatsapp-fab:hover { transform: scale(1.06); }

/* =========================================================
   Desarrollo web: visual de la portada, servicios, paneles
   ========================================================= */

/* ---------- Portada: ventana de navegador con un panel de ejemplo ---------- */
.browser-mock {
    width: 100%;
    max-width: 520px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-hover);
    overflow: hidden;
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}
.browser-bar > span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d9cdea;
}
.browser-url {
    flex: 1;
    margin-left: 10px;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.72rem;
    color: var(--text-muted);
}
.browser-body { display: grid; grid-template-columns: 52px 1fr; min-height: 280px; }
.app-side {
    background: var(--primary-dark);
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.app-side i { width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, 0.2); }
.app-side i.on { background: var(--accent); }
.app-main { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.app-top { display: flex; justify-content: space-between; align-items: center; }
.app-top b { font-size: 0.82rem; color: var(--primary-dark); }
.app-pill {
    font-size: 0.66rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--bg-alt);
    color: var(--primary);
}
.app-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-kpis > div { background: var(--bg-alt); border-radius: 10px; padding: 9px 10px; }
.app-kpis small { display: block; font-size: 0.64rem; color: var(--text-muted); }
.app-kpis strong { font-size: 1.05rem; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.app-chart {
    height: 86px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 0 4px;
    border-bottom: 1px solid var(--border);
}
.app-chart span {
    flex: 1;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(180deg, var(--pink) 0%, var(--primary) 100%);
}
.app-rows { display: flex; flex-direction: column; gap: 8px; }
.app-rows > div { display: flex; align-items: center; gap: 10px; }
.app-rows i { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--border); }
.app-rows b { flex: 1; height: 8px; border-radius: 4px; background: var(--border); }
.app-rows em {
    font-style: normal;
    font-size: 0.64rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    background: #e7f8ee;
    color: #1d7a45;
}
.app-rows > div:nth-child(2) em { background: #fff3d6; color: #8a6200; }

.hero-chip-1 { top: -30px; left: 4%; animation-delay: 0s; }
.hero-chip-2 { top: 46%; right: -10px; animation-delay: 1.2s; }
.hero-chip-3 { bottom: -14px; left: 14%; animation-delay: 2.4s; }

/* ---------- Servicios ---------- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.service-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-main { border-color: var(--primary); box-shadow: var(--shadow); }
.service-ico {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--bg-alt);
    color: var(--primary);
    margin-bottom: 16px;
}
.service-main .service-ico { background: var(--primary); color: #fff; }
.service-ico svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; }
.service-card p { font-size: 0.92rem; }
.service-link {
    margin-top: auto;
    padding-top: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--primary);
}
.service-link::after { content: ' \2192'; }
.service-link:hover { color: var(--primary-dark); }

.checklist { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li {
    position: relative;
    padding-left: 26px;
    font-size: 0.9rem;
    color: var(--text);
}
.checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--primary);
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 5.8l-4.4 5a.8.8 0 01-1.2 0L4.3 8.9a.8.8 0 111.2-1l1.2 1.4 3.8-4.3a.8.8 0 011.2 1z'/></svg>") center / contain no-repeat;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M8 0a8 8 0 100 16A8 8 0 008 0zm3.7 5.8l-4.4 5a.8.8 0 01-1.2 0L4.3 8.9a.8.8 0 111.2-1l1.2 1.4 3.8-4.3a.8.8 0 011.2 1z'/></svg>") center / contain no-repeat;
}

/* ---------- Páginas y tiendas ---------- */
.dual { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow);
}
.panel h3 { font-size: 1.3rem; }
.panel .checklist { margin: 18px 0 24px; }

/* ---------- Invitaciones ---------- */
.invite-split {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 56px;
    align-items: center;
}
.invite-visual { position: relative; display: flex; justify-content: center; }
.invite-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.pill-list { list-style: none; margin: 18px 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li {
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
}
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 22px; margin-bottom: 28px; }
.mini { display: flex; gap: 12px; align-items: flex-start; }
.mini > span {
    flex: none;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #fff;
    font-size: 1.1rem;
}
.mini h3 { font-family: 'Poppins', sans-serif; font-size: 0.92rem; color: var(--text); margin: 0 0 2px; }
.mini p { font-size: 0.82rem; margin: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .dual { grid-template-columns: 1fr; }
    .invite-split { grid-template-columns: 1fr; gap: 36px; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 8px; }
    .phone-mock { width: 210px; height: 420px; }
    .events-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .benefits-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .quote-panel { grid-template-columns: 1fr; padding: 32px; }
}

@media (max-width: 720px) {
    .services-grid { grid-template-columns: 1fr; }
    .mini-grid { grid-template-columns: 1fr; }
    .panel { padding: 24px; }
    .hero-chip-1 { left: 0; }
    .hero-chip-2 { right: 0; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 16px;
        display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: flex; }
    .events-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr; }
    .quote-form { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; align-items: stretch; }
    .hero-ctas .btn { width: 100%; }
}

@media (max-width: 480px) {
    /* El botón de WhatsApp del encabezado no entra junto al logo y al menú: en el celular queda el botón flotante. */
    .header-actions .btn { display: none; }
    .events-grid { grid-template-columns: 1fr 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .hero { padding: 40px 0 24px; }
}


/* =========================================================
   Páginas de servicio, proyectos y bloque de contacto
   ========================================================= */

.service-link-inline { display: inline-block; margin-top: 14px; padding-top: 0; }
.service-link[target="_blank"]::after { content: ' \2197'; }

/* ---------- Proyectos ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.project-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.project-img { display: block; background: var(--bg-alt); }
.project-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.project-body { display: flex; flex-direction: column; gap: 4px; padding: 24px 26px 26px; flex: 1; }
.project-kind {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pink);
}
.project-body h3 { font-size: 1.25rem; margin: 2px 0 4px; }
.project-body p { font-size: 0.92rem; }
.project-tags { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.project-tags li {
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--bg-alt);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--primary-dark);
}

/* ---------- Páginas de servicio ---------- */
.page-hero { padding: 48px 0 40px; background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); max-width: 22ch; }
.page-hero .hero-sub { max-width: 62ch; }

.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.prose p { font-size: 1rem; color: var(--text); }
.prose .checklist { margin: 14px 0 22px; }

.cta-band {
    display: grid;
    grid-template-columns: 1.2fr auto;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border-radius: 24px;
    padding: 40px 44px;
}
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.88); margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost { color: #fff !important; border-color: rgba(255, 255, 255, 0.45); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.related-card h3 { font-size: 1.05rem; font-family: 'Poppins', sans-serif; color: var(--primary-dark); margin-bottom: 4px; }
.related-card p { font-size: 0.88rem; margin: 0; }

/* El menú con siete enlaces se colapsa antes (en pantallas medianas ya no entra en una línea) */
@media (max-width: 1180px) {
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        gap: 0;
        padding: 8px 24px 16px;
        display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
    .nav-toggle { display: flex; }
}

@media (max-width: 980px) {
    .projects-grid { grid-template-columns: 1fr; }
    .cta-band { grid-template-columns: 1fr; padding: 32px; }
    .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .page-hero { padding: 32px 0 28px; }
    .cta-band { padding: 26px 22px; }
    .project-body { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .project-card, .related-card { transition: none; }
}

/* Evita desborde horizontal en pantallas angostas (chips flotantes de la portada) */
@media (max-width: 980px) {
    .chip-1 { left: 0; }
    .chip-2, .chip-3 { right: 0; }
    .hero-grid > * { min-width: 0; }
}
@media (max-width: 480px) {
    .quote-panel { padding: 26px 20px; }
    .quote-panel > *, .quote-form > * { min-width: 0; }
    .quote-form input, .quote-form select, .quote-form textarea { max-width: 100%; }
}

/* Formulario de cotización: que nunca sea más ancho que la pantalla del celular */
.quote-form, .quote-panel { min-width: 0; }
.field { min-width: 0; }
.field input, .field select, .field textarea { width: 100%; max-width: 100%; min-width: 0; -webkit-appearance: none; appearance: none; }
.field input[type="date"] { min-height: 46px; }
.field select { background-image: linear-gradient(45deg, transparent 50%, #6c3ea6 50%), linear-gradient(135deg, #6c3ea6 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
@media (max-width: 980px) {
    .quote-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .quote-form { grid-template-columns: minmax(0, 1fr); }
    .quote-panel { padding: 22px 16px; border-radius: 18px; gap: 24px; }
}
