/*
Theme Name: Draphor México
Theme URI: https://draphor.com
Author: Draphor
Description: Sitio oficial de Draphor para atención en español en México.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: draphor
*/

:root {
  --ink: #123136;
  --ink-soft: #526b70;
  --teal-950: #073e43;
  --teal-800: #0e6268;
  --teal-600: #278b8d;
  --teal-100: #dff1f0;
  --teal-50: #f1f9f8;
  --silver: #d9e1e2;
  --silver-soft: #f4f7f7;
  --white: #ffffff;
  --line: #dce5e5;
  --shadow: 0 24px 64px rgba(10, 62, 67, .12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: var(--white);
  background: var(--teal-950);
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.site-shell { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.announcement {
  padding: 8px 20px;
  color: #e8fbfa;
  background: var(--teal-950);
  font-size: .82rem;
  letter-spacing: .025em;
  text-align: center;
}
.announcement a { color: var(--white); font-weight: 750; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(220, 229, 229, .86);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
}
.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 12px; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { color: var(--teal-950); font-size: 1.18rem; letter-spacing: .19em; font-weight: 660; }
.brand-copy small { margin-top: 7px; color: var(--ink-soft); font-size: .66rem; letter-spacing: .11em; text-transform: uppercase; }
.primary-nav { display: flex; justify-content: center; align-items: center; gap: 28px; }
.primary-nav a { position: relative; color: #334f54; font-size: .9rem; font-weight: 650; }
.primary-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--teal-600);
  transform: scaleX(0);
  transition: transform .18s ease;
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 760;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button--primary { color: var(--white); background: var(--teal-800); box-shadow: 0 12px 26px rgba(14, 98, 104, .24); }
.button--primary:hover, .button--primary:focus-visible { background: var(--teal-950); }
.button--ghost { color: var(--teal-950); border-color: #b9cccd; background: var(--white); }
.button--light { color: var(--teal-950); background: var(--white); }
.button--small { min-height: 42px; padding-inline: 18px; font-size: .84rem; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 78px;
  background:
    radial-gradient(circle at 86% 14%, rgba(39, 139, 141, .16), transparent 30%),
    linear-gradient(135deg, #f4fbfa 0%, #ffffff 47%, #edf5f5 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -160px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(39, 139, 141, .18);
  border-radius: 50%;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.13fr .87fr; align-items: center; gap: 72px; }
.eyebrow { margin: 0 0 16px; color: var(--teal-800); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0; color: var(--teal-950); font-size: clamp(3rem, 5.7vw, 5.35rem); line-height: .98; letter-spacing: -.06em; }
.hero h1 em { color: var(--teal-600); font-style: normal; }
.hero-lead { max-width: 650px; margin: 26px 0 0; color: var(--ink-soft); font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }
.hero-note { margin-top: 20px; color: #62787c; font-size: .84rem; }
.brand-panel {
  position: relative;
  min-height: 470px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 48px;
  overflow: hidden;
  border: 1px solid rgba(176, 196, 198, .7);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .84);
  box-shadow: var(--shadow);
}
.brand-panel::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(39, 139, 141, .14);
  border-radius: 24px;
}
.brand-panel img { position: relative; width: min(310px, 82%); mix-blend-mode: multiply; }
.panel-meta { position: relative; width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 34px; border-top: 1px solid var(--line); }
.panel-meta div { padding: 19px 10px 0; text-align: center; }
.panel-meta div + div { border-left: 1px solid var(--line); }
.panel-meta strong { display: block; color: var(--teal-950); font-size: .76rem; }
.panel-meta span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: .7rem; }

.trust-row { border-block: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-grid article { min-height: 132px; display: grid; grid-template-columns: 44px 1fr; align-content: center; column-gap: 15px; padding: 26px 34px; }
.trust-grid article + article { border-left: 1px solid var(--line); }
.trust-number { grid-row: 1 / 3; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--teal-800); background: var(--teal-100); font-size: .75rem; font-weight: 800; }
.trust-grid strong { align-self: end; font-size: .96rem; }
.trust-grid span { align-self: start; color: var(--ink-soft); font-size: .78rem; }

.section { padding: 92px 0; }
.section--soft { background: var(--silver-soft); }
.section-heading { max-width: 740px; margin-bottom: 42px; }
.section-heading h2 { margin: 0; color: var(--teal-950); font-size: clamp(2.25rem, 4.3vw, 4rem); line-height: 1.05; letter-spacing: -.05em; }
.section-heading p:not(.eyebrow) { margin: 20px 0 0; color: var(--ink-soft); font-size: 1.02rem; }
.focus-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 18px; }
.focus-card { min-height: 310px; display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.focus-card--primary { color: var(--white); border-color: var(--teal-800); background: linear-gradient(145deg, var(--teal-950), var(--teal-800)); }
.focus-card__index { color: var(--teal-600); font-size: .74rem; font-weight: 850; letter-spacing: .13em; }
.focus-card--primary .focus-card__index { color: #95d3d0; }
.focus-card h3 { margin: auto 0 14px; font-size: 1.55rem; line-height: 1.15; }
.focus-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.focus-card--primary p { color: #d6ebea; }
.focus-card a { margin-top: 22px; color: var(--teal-800); font-size: .86rem; font-weight: 800; }
.focus-card--primary a { color: var(--white); }

.process-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; align-items: start; }
.process-intro { position: sticky; top: 132px; }
.process-intro h2 { margin: 0; color: var(--teal-950); font-size: clamp(2.4rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -.05em; }
.process-intro p:not(.eyebrow) { color: var(--ink-soft); }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.steps b { color: var(--teal-600); font-size: .78rem; letter-spacing: .12em; }
.steps h3 { margin: 0 0 8px; font-size: 1.22rem; }
.steps p { margin: 0; color: var(--ink-soft); }

.info-panel { display: grid; grid-template-columns: .95fr 1.05fr; overflow: hidden; border-radius: var(--radius-lg); background: var(--teal-950); }
.info-panel__copy { padding: 54px; color: var(--white); }
.info-panel__copy h2 { margin: 0; font-size: clamp(2.15rem, 4vw, 3.5rem); line-height: 1.04; letter-spacing: -.045em; }
.info-panel__copy p { margin: 22px 0 0; color: #cee3e2; }
.info-panel__facts { display: grid; align-content: center; gap: 12px; padding: 34px; background: rgba(255, 255, 255, .07); }
.info-panel__facts article { padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.info-panel__facts strong { display: block; color: var(--white); }
.info-panel__facts span { display: block; margin-top: 6px; color: #c9dddd; font-size: .8rem; }

.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.faq-list summary { padding: 20px 52px 20px 22px; cursor: pointer; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { margin: 0; padding: 0 22px 22px; color: var(--ink-soft); }

.contact-band { padding: 78px 0; background: linear-gradient(130deg, #dff1f0, #f6fbfb 52%, #dce7e8); }
.contact-band__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 40px; }
.contact-band h2 { margin: 0; color: var(--teal-950); font-size: clamp(2.25rem, 4.5vw, 4.2rem); line-height: 1.02; letter-spacing: -.05em; }
.contact-band p { margin: 16px 0 0; color: var(--ink-soft); }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }

.page-hero { padding: 86px 0 62px; background: linear-gradient(145deg, var(--teal-50), var(--white)); }
.page-hero h1 { max-width: 820px; margin: 0; color: var(--teal-950); font-size: clamp(2.8rem, 5vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.page-hero p { max-width: 720px; margin: 22px 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.catalog-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.catalog-preview article { min-height: 260px; display: flex; flex-direction: column; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--white); }
.catalog-preview span { color: var(--teal-600); font-size: .75rem; font-weight: 850; letter-spacing: .12em; }
.catalog-preview h2 { margin: auto 0 12px; font-size: 1.45rem; }
.catalog-preview p { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.notice { margin-top: 26px; padding: 22px 24px; border-left: 4px solid var(--teal-600); background: var(--teal-50); color: #3f5d62; }
.page-content { max-width: 880px; padding-top: 70px; padding-bottom: 86px; }
.page-content h1, .page-content h2, .page-content h3 { color: var(--teal-950); line-height: 1.15; }
.page-content a { color: var(--teal-800); text-decoration: underline; }

.site-footer { padding: 58px 0 26px; color: #d8e8e7; background: #082f33; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .7fr; gap: 60px; }
.footer-brand .brand-copy strong { color: var(--white); }
.footer-brand .brand-copy small, .footer-copy { color: #acc6c6; }
.footer-copy { max-width: 460px; margin: 20px 0 0; font-size: .86rem; }
.footer-column strong { display: block; margin-bottom: 14px; color: var(--white); font-size: .78rem; letter-spacing: .09em; text-transform: uppercase; }
.footer-column a, .footer-column span { display: block; margin: 8px 0; color: #c6dbda; font-size: .86rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); color: #94b4b4; font-size: .75rem; }
.whatsapp-float { position: fixed; z-index: 90; right: 20px; bottom: 20px; min-height: 48px; display: inline-flex; align-items: center; gap: 9px; padding: 0 18px; border-radius: 999px; color: #fff; background: #17865e; box-shadow: 0 14px 32px rgba(10, 64, 46, .28); font-size: .82rem; font-weight: 800; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto auto; justify-content: space-between; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-actions .button { display: none; }
  .primary-nav { position: fixed; inset: 121px 0 auto; display: none; align-items: stretch; padding: 20px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 22px 30px rgba(10, 50, 54, .1); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a { padding: 11px 4px; font-size: 1rem; }
  .hero-grid, .process-grid, .info-panel { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .brand-panel { min-height: 390px; }
  .focus-grid { grid-template-columns: 1fr 1fr; }
  .focus-card--primary { grid-column: 1 / -1; }
  .process-intro { position: static; }
  .contact-band__inner { grid-template-columns: 1fr; }
  .contact-actions { justify-content: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .site-shell { width: min(100% - 30px, var(--container)); }
  .announcement { font-size: .72rem; }
  .header-inner { min-height: 70px; }
  .brand img { width: 44px; height: 44px; }
  .brand-copy strong { font-size: 1rem; }
  .brand-copy small { font-size: .58rem; }
  .primary-nav { top: 109px; }
  .hero { padding: 62px 0 52px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .brand-panel { min-height: 340px; padding: 30px 22px; border-radius: 24px; }
  .panel-meta { grid-template-columns: 1fr; }
  .panel-meta div + div { border-top: 1px solid var(--line); border-left: 0; }
  .trust-grid, .focus-grid, .catalog-preview { grid-template-columns: 1fr; }
  .trust-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .focus-card--primary { grid-column: auto; }
  .section { padding: 68px 0; }
  .section-heading { margin-bottom: 30px; }
  .process-grid { gap: 36px; }
  .steps li { grid-template-columns: 46px 1fr; gap: 12px; }
  .info-panel__copy { padding: 36px 24px; }
  .info-panel__facts { padding: 22px; }
  .contact-band { padding: 60px 0; }
  .contact-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: grid; }
  .whatsapp-float { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
