:root {
  --vino: #6E0911;
  --vino-dark: #4a050b;
  --vino-footer: #2a0306;
  --azul: #007AB8;
  --azul-soft: #e6f2f8;
  --lima: #D4D700;
  --on-lima: #2b0306;
  --text: #1f2328;
  --text-2: #555;
  --text-3: #666;
  --gray-bg: #f6f8fa;
  --line: #e5e8eb;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: #fff; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Botones */
.btn { display: inline-block; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; padding: 12px 20px; border-radius: 8px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; text-align: center; }
.btn-sm { font-size: 14px; padding: 8px 14px; }
.btn-primary { background: var(--vino); color: #fff; }
.btn-primary:hover { background: var(--vino-dark); }
.btn-outline { border-color: var(--azul); color: var(--azul); background: #fff; }
.btn-outline:hover { background: var(--azul-soft); }
.btn-lime { background: var(--lima); color: var(--on-lima); font-weight: 700; }
.btn-lime:hover { filter: brightness(.95); }
.btn:disabled { opacity: .7; cursor: progress; }

/* Encabezado */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--vino); font-weight: 700; font-size: 15px; min-width: 0; }
.brand img { width: 46px; height: 46px; flex-shrink: 0; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.links { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-link { display: none; color: #444; text-decoration: none; font-size: 14px; }
.nav-link:hover { color: var(--vino); }
.lang-switch { display: inline-flex; border: 1px solid #ccd; border-radius: 6px; overflow: hidden; font-size: 13px; font-weight: 700; }
.lang-switch a { padding: 6px 9px; color: #555; text-decoration: none; background: #fff; }
.lang-switch a.on { background: var(--azul); color: #fff; }

/* Hero */
.hero { padding: 36px 0 32px; }
.hero-grid { display: grid; gap: 14px; align-items: center; }
.hero h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.12; margin: 0 0 14px; color: var(--vino); font-weight: 800; }
.hero h1 .hl { box-shadow: inset 0 -0.28em 0 var(--lima); }
.hero .lead { font-size: 17px; color: var(--text-2); margin: 0 0 22px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { display: none; justify-content: center; }
.hero-art img { width: 210px; height: 210px; }
.end-logo { display: flex; justify-content: center; padding: 24px 0; background: #fff; }
.end-logo img { width: 104px; height: 104px; }

/* Secciones */
.section { padding: 44px 0; }
.section.gray { background: var(--gray-bg); }
.section h2, .contact h2 { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.bar { display: block; width: 44px; height: 4px; background: var(--lima); border-radius: 2px; margin-bottom: 24px; }

.grid4 { display: grid; gap: 14px; grid-template-columns: 1fr; }
.card { background: #fff; border-radius: 10px; padding: 20px 16px; border-top: 4px solid var(--azul); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.ico-wrap { width: 38px; height: 38px; border-radius: 8px; background: var(--azul-soft); color: var(--azul); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.card h3 { font-size: 16px; margin: 0 0 6px; }
.card p { font-size: 14px; color: var(--text-3); margin: 0; }

.about-lead { font-size: 17px; color: #444; max-width: 40em; margin: 0 0 26px; }
.grid3 { display: grid; gap: 18px; grid-template-columns: 1fr; }
.value { border-left: 4px solid var(--vino); padding: 4px 0 4px 14px; }
.value h3 { font-size: 16px; color: var(--vino); margin: 0 0 4px; }
.value p { font-size: 14.5px; color: var(--text-2); margin: 0; }

/* Contacto */
.contact { background: linear-gradient(150deg, var(--vino) 0%, var(--vino-dark) 100%); color: #fff; padding: 44px 0; }
.contact-grid { display: grid; gap: 26px; align-items: start; }
.contact-intro p { font-size: 16px; opacity: .9; margin: 0; }
.form { background: #fff; color: var(--text); border-radius: 12px; padding: 14px; display: grid; gap: 12px; }
.row2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
.field span { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 15px; color: var(--text); border: 1px solid #cfd6dd; border-radius: 7px; padding: 10px 11px; background: #fff; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--azul); outline-offset: 0; border-color: var(--azul); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form-status { margin: 0; font-size: 14px; min-height: 1em; }
.form-status.err { color: #b3261e; font-weight: 600; }
.form-success { margin: 0; padding: 22px 6px; font-size: 17px; font-weight: 600; color: var(--vino); text-align: center; }
.privacy, .noscript { margin: 0; font-size: 12.5px; color: var(--text-3); }
.noscript { color: #b3261e; font-weight: 600; }

/* Pie */
.site-footer { background: var(--vino-footer); color: rgba(255, 255, 255, .7); font-size: 13px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 16px; }

/* 404 */
.notfound .nf { padding: 64px 16px; text-align: center; }
.notfound .nf img { margin: 0 auto 18px; }
.notfound h1 { color: var(--vino); margin: 0 0 6px; }
.notfound h2 { color: var(--vino); margin: 28px 0 6px; font-size: 22px; }

@media (max-width: 479px) {
  .brand span { white-space: normal; font-size: 13.5px; line-height: 1.15; max-width: 7.5em; }
}

@media (max-width: 380px) {
  .contact .wrap { padding: 0 12px; }
}

@media (min-width: 420px) {
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .form { padding: 18px; }
}

@media (min-width: 700px) {
  .nav-link { display: inline; }
  .links { gap: 20px; }
  .hero { padding: 56px 0 52px; }
  .hero-grid { grid-template-columns: 1.3fr 1fr; gap: 24px; }
  .hero-art { display: flex; }
  .end-logo { display: none; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 32px; }
  .row2 { grid-template-columns: 1fr 1fr; }
  .section, .contact { padding: 56px 0; }
}

@media (min-width: 900px) {
  .grid4 { grid-template-columns: repeat(4, 1fr); }
}
