/* Precision Dental Studio — estilos base.
   Los tokens de :root se ajustan con los colores y fuentes reales del sitio. */

:root {
    --color-bg: #ffffff;
    --color-text: #1d1d1f;
    --color-muted: #6b6b70;
    --color-accent: #1d1d1f;
    --color-accent-contrast: #ffffff;
    --color-border: #e3e3e6;
    --color-surface: #f6f6f7;

    --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-heading: var(--font-body);

    --container: 1200px;
    --gutter: 24px;
    --radius: 4px;
}

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

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

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font: 400 17px/1.6 var(--font-body);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 500; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--color-muted); }

.section { padding: clamp(48px, 8vw, 110px) 0; }
.section--alt { background: var(--color-surface); }

.btn {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-accent);
    color: var(--color-accent-contrast);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    transition: opacity .2s;
}
.btn:hover { opacity: .85; }
.btn--outline { background: transparent; color: var(--color-accent); }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.logo { font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.logo img { max-height: 48px; width: auto; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--color-text); transition: .2s; }

@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        display: none;
    }
    .site-nav.is-open { display: block; }
    .site-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px; }
    .site-nav li a { display: block; padding: 12px 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero {
    padding: clamp(80px, 14vw, 180px) 0;
    background: var(--color-surface) center / cover no-repeat;
}

/* Grillas */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Formulario */
.contact-form .field { margin-bottom: 18px; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .contact-form .field-row { grid-template-columns: 1fr; } }
.contact-form label { display: block; margin-bottom: 6px; font-size: .95rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 14px;
    font: inherit; color: inherit;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--color-accent); outline-offset: 1px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-notice { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 20px; }
.form-notice ul { margin: 0; padding-left: 18px; }
.form-notice--ok { background: #e8f5ec; color: #1e5b32; }
.form-notice--error { background: #fdecec; color: #8a1c1c; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-border); padding: 56px 0 24px; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-social { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.footer-legal { margin-top: 40px; color: var(--color-muted); }
