:root {
  --ink: #2a2014;
  --muted: #6d6151;
  --line: #ece3d2;
  --accent: #c8860d;
  --accent-dark: #8a5a16;
  --soft: #fbf6ec;
  --white: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Segoe UI", Arial, Helvetica, sans-serif; line-height: 1.5; }
a { color: inherit; }
.wrap { width: min(1140px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 54px; width: auto; display: block; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--accent); }

/* Dropdown "Domains" */
.nav .has-sub { position: relative; display: inline-flex; align-items: center; }
.nav .has-sub .caret { font-size: 10px; margin-left: 2px; }
.nav .submenu {
  position: absolute; top: 100%; left: 0; margin-top: 8px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 44px rgba(42,32,20,0.16); padding: 8px; min-width: 320px;
  display: none; flex-direction: column; gap: 2px; z-index: 60;
}
.nav .has-sub:hover .submenu, .nav .has-sub:focus-within .submenu { display: flex; }
.nav .submenu a { padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: normal; line-height: 1.3; }
.nav .submenu a:hover { background: var(--soft); color: var(--accent-dark); }
.nav .submenu .submenu-ic { margin-right: 8px; }
.nav .lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-left: 6px; }
.nav .lang-switch a.lang-btn { padding: 5px 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.nav .lang-switch a.lang-btn:hover { color: var(--accent); background: var(--soft); }
.nav .lang-switch a.lang-btn.active { background: var(--accent); color: #fff; }

/* Tarjetas de dominio (fondo marrón oscuro, texto crema) */
.domain-card { display: flex; flex-direction: column; background: #2a2014; border-color: #2a2014; color: #f2e6cf; }
.domain-card h3 { color: #fbf6ec; }
.domain-card p { color: #d9c8aa; }
.domain-card .card-more {
  align-self: flex-start; margin-top: 18px; padding: 9px 16px; border-radius: 8px;
  background: var(--accent); color: var(--ink); font-weight: 700; font-size: 13px;
  text-decoration: none; transition: background .15s, color .15s;
}
.domain-card .card-more:hover { background: var(--accent-dark); color: #fff; }

/* Página de dominio */
.back-link { display: inline-block; margin-bottom: 18px; color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.domain-page .domain-ic { margin-right: 6px; }
.inline-link { color: var(--accent-dark); font-weight: 700; }

/* Hero */
.hero {
  background: linear-gradient(120deg, rgba(42,32,20,0.88) 0%, rgba(138,90,22,0.78) 55%, rgba(200,134,13,0.60) 100%), url('/img/hero.jpg') center/cover no-repeat;
  color: #fff;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.18); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .5px; margin-bottom: 22px; }
.hero .wrap { text-align: left; }
.hero h1 { font-size: clamp(40px, 6.5vw, 72px); line-height: 1.05; margin: 0 0 20px; max-width: 640px; color: #fff; }
.hero p { font-size: 20px; color: rgba(255,255,255,0.92); max-width: 560px; margin: 0 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; min-height: 50px; padding: 0 24px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.btn.primary { background: var(--accent); color: var(--ink); }
.btn.primary:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost { border: 2px solid rgba(255,255,255,0.70); color: #fff; }
.btn.ghost:hover { border-color: #fff; background: rgba(255,255,255,0.12); }

/* Sections */
section { padding: 80px 0; }
section.alt { background: var(--soft); }
.eyebrow-2 { color: var(--accent); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; font-size: 13px; margin: 0 0 10px; }
.s-title { font-size: clamp(28px, 4vw, 42px); margin: 0 0 16px; color: var(--ink); }
.s-sub { color: var(--muted); font-size: 18px; max-width: 760px; margin: 0 0 40px; }
.lead-p { color: var(--muted); font-size: 18px; max-width: 800px; margin: 0 0 16px; }

/* Grid + cards */
.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.card { border: 1px solid var(--line); border-radius: 14px; padding: 26px; background: var(--white); }
.card .ic { font-size: 30px; }
.card h3 { margin: 12px 0 8px; font-size: 20px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); }

/* Spec mini (stats) */
.spec { text-align: center; }
.spec .v { font-size: 30px; font-weight: 800; color: var(--accent-dark); }
.spec .l { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Partners / pills */
.partners { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.partner { display: inline-block; border-radius: 999px; padding: 11px 22px; font-weight: 700; color: #fff; background: var(--ink); text-decoration: none; transition: background .15s; }
.partner:hover { background: var(--accent-dark); }

/* Contact email */
.contact-email { display: inline-block; margin-top: 20px; font-size: 22px; font-weight: 700; color: var(--accent-dark); text-decoration: none; border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.contact-email:hover { color: var(--accent); border-color: var(--accent-dark); }

/* Footer */
.site-footer { background: var(--ink); color: #d4c4a8; padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--accent); font-weight: 700; }
.site-footer a:hover { color: #fff; }
.site-footer .fbrand { font-weight: 800; letter-spacing: 1px; color: #fff; }

@media (max-width: 860px) {
  .nav { display: none; }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
}
