/* Estilos compartidos de Fotomatón Vintage.
   Tailwind (CDN) pone las utilidades; aquí va lo que no cabe en clases sueltas. */

:root {
    --walnut-dark: #2D1B17;
    --walnut-medium: #4A322C;
    --walnut-light: #6D4C41;
    --cream: #FAF9F6;
    --honey: #B45309;
    --whatsapp: #25D366;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background-color: var(--cream);
    color: #292524;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { text-wrap: balance; }
.title-font { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; }
.bg-walnut { background-color: var(--walnut-dark); }
.text-walnut { color: var(--walnut-dark); }
.tabular { font-variant-numeric: tabular-nums; }

:focus-visible {
    outline: 3px solid #D97706;
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 200;
    background: var(--walnut-dark);
    color: #fff;
    padding: .75rem 1rem;
    border-radius: .5rem;
    transition: top .15s;
}
.skip-link:focus { top: 1rem; }

/* Botones */
.btn-primary, .btn-secondary, .btn-amber, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .9rem 1.6rem;
    border-radius: .75rem;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
    text-align: center;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--walnut-dark); color: #fff; }
.btn-primary:hover { background: #44302a; }
.btn-secondary { background: #fff; color: var(--walnut-dark); border: 2px solid var(--walnut-dark); }
.btn-secondary:hover { background: #f5f5f4; }
.btn-amber { background: #D97706; color: #fff; }
.btn-amber:hover { background: #F59E0B; }
.btn-outline { color: var(--walnut-dark); border: 2px solid var(--walnut-dark); }
.btn-outline:hover { background: #f5f5f4; }

/* Marco de madera para las capturas del software.
   Imita el marco de la pantalla real del fotomatón. */
.bezel {
    padding: clamp(7px, 1.4vw, 14px);
    border-radius: 16px;
    background:
        repeating-linear-gradient(92deg, rgba(0,0,0,0) 0 7px, rgba(0,0,0,.05) 7px 8px, rgba(255,255,255,.03) 8px 15px),
        linear-gradient(150deg, #9a6a3f 0%, #7a4b27 48%, #8b5a33 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.28),
        inset 0 -2px 0 rgba(0,0,0,.25),
        0 22px 40px -18px rgba(45, 27, 23, .55);
}
.bezel-screen {
    border-radius: 7px;
    overflow: hidden;
    background: #111;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.6);
}

.icon-badge {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: #fef3c7;
    color: #92400e;
}

.chip {
    display: inline-block;
    padding: .3rem .8rem;
    border: 1px solid #d6d3d1;
    border-radius: 9999px;
    font-size: .875rem;
    color: #44403c;
    background: #fff;
}

/* FAQ */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* WhatsApp flotante */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--whatsapp);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
    z-index: 100;
}
.pulse { animation: pulse-animation 2.4s infinite; }
@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
    100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pulse { animation: none; }
}
