/* ==========================================================================
   Página de dominios — page-dominios.php
   Los campos, chips y botones del formulario vienen de css/contacto.css.
   ========================================================================== */
.vg-dominios {
  color: #1c1c1c;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* ---------- Hero: mismo lenguaje que el home (grilla + orbe Kraft) ---------- */
.vg-dom-hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 110px;
  background: #eeeeeb;
}
.vg-dom-hero::before {                   /* grilla que se desvanece al centro */
  content: '';
  position: absolute;
  inset: -160px;
  pointer-events: none;
  background-image:
    linear-gradient(to right,  rgba(127, 127, 127, .15) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(127, 127, 127, .15) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 0%, transparent 45%, #000 75%);
          mask-image: radial-gradient(ellipse 60% 55% at 50% 50%, transparent 0%, transparent 45%, #000 75%);
}
.vg-dom-hero::after {                    /* orbe */
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  width: min(640px, 85vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: var(--vg-orb-calido);
  filter: blur(50px);
  opacity: .85;
}
.vg-dom-hero .container { z-index: 1; }

.vg-dom-hero__inner { max-width: 820px; margin: 0 auto; }

.vg-dom-eyebrow {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: .45rem 1rem;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, .65);
  background: rgba(255, 255, 255, .45);
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50rem;
}
.vg-dom-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.3rem, 5.5vw, 4.4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -.03em;
}
.vg-dom-lead {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(0, 0, 0, .68);
}

/* Caja del buscador */
.vg-dom-buscador {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem;
  text-align: left;
  background: rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .08);
}

/* Respaldo si el plugin del buscador no está */
.vg-dom-fallback { display: flex; gap: .5rem; }
.vg-dom-fallback input {
  flex: 1;
  min-width: 0;
  padding: .95rem 1.1rem;
  font: inherit;
  font-size: 1.05rem;
  background: #f6f5f1;
  border: 1px solid rgba(0, 0, 0, .14);
  border-radius: 10px;
}
.vg-dom-fallback input:focus { outline: none; background: #fff; border-color: #1c1c1c; box-shadow: 0 0 0 3px var(--kraft-claro, #EBCFB8); }
.vg-dom-fallback button {
  padding: 0 1.5rem;
  font: inherit;
  font-weight: 500;
  color: #fff;
  background: #1c1c1c;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.vg-dom-fallback button:hover { color: #1c1c1c; background: var(--book-cloth, #CC785C); }

.vg-dom-ticks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.75rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .88rem;
  color: rgba(0, 0, 0, .7);
}
.vg-dom-ticks li { display: inline-flex; align-items: center; gap: .45rem; margin: 0; }
.vg-dom-ticks li::before { content: '✓'; font-size: .8rem; color: var(--book-cloth, #CC785C); }

/* ---------- Formulario horizontal y compacto ---------- */
.vg-dom-body { padding: 80px 0 90px; background: #fff; }

.vg-dom-formhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-bottom: 1.75rem;
}
.vg-dom-h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -.02em;
}
.vg-dom-sub { margin: 0; color: #6f6f6a; }
.vg-dom-sub a { color: inherit; text-underline-offset: 3px; }

/* Tarjeta con dos columnas */
.vg-dom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .05);
  overflow: hidden;
}
.vg-dom-col { padding: 2.25rem; }
.vg-dom-col--datos {
  display: flex;
  flex-direction: column;
  background: #faf9f6;
  border-left: 1px solid rgba(0, 0, 0, .08);
}

.vg-dom-colhead {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin: 0 0 1.4rem;
  font-size: 1.1rem;
  font-weight: 600;
}
.vg-dom-colhead span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  font-size: .75rem;
  color: #fff;
  background: #1c1c1c;
  border-radius: 50%;
  transform: translateY(-1px);
}
.vg-dom-colhead em,
.vg-dom-rowlabel em {
  font-style: normal;
  font-weight: 400;
  font-size: .8rem;
  color: #8a8a86;
}

/* Filas de opciones: etiqueta chica + chips */
.vg-dom-row { margin-top: 1.25rem; }
.vg-dom-rowlabel {
  display: block;
  margin: 0 0 .55rem;
  font-size: .78rem;
  font-weight: 600;
  color: #1c1c1c;
}

/* Chips más compactos que en contacto */
.vg-dom-form .vg-ct-chips { margin-top: 0; gap: .4rem; }
.vg-dom-form .vg-ct-chip span {
  padding: .5rem .9rem;
  font-size: .82rem;
}

/* Campos un poco más bajos */
.vg-dom-form .vg-ct-field input,
.vg-dom-form .vg-ct-field textarea { padding: .75rem .9rem; font-size: .95rem; }
.vg-dom-form .vg-ct-label { margin-bottom: .35rem; font-size: .76rem; }
.vg-dom-col--datos .vg-ct-field input { background: #fff; }

/* Extras que se abren (correo / VPS) */
.vg-dom-extra { margin-top: 1.1rem; }
.vg-dom-casillas { max-width: 220px; }
.vg-dom-vps {
  padding: 1.25rem;
  background: var(--kraft-tinte, #F3E3D3);
  border-radius: 14px;
}
.vg-dom-vps__title { margin: 0 0 .9rem; font-size: .9rem; font-weight: 600; }
.vg-dom-vps .vg-dom-rowlabel { margin-top: .9rem; }
.vg-dom-vps .vg-dom-rowlabel:first-of-type { margin-top: 0; }
.vg-dom-vps .vg-ct-chip span { background: rgba(255, 255, 255, .75); }

/* Comentario plegado */
.vg-dom-more { margin-top: 1rem; }
.vg-dom-more summary {
  display: inline-block;
  font-size: .85rem;
  font-weight: 500;
  color: #6f6f6a;
  list-style: none;
  cursor: pointer;
  transition: color .2s;
}
.vg-dom-more summary::-webkit-details-marker { display: none; }
.vg-dom-more summary:hover { color: #1c1c1c; }
.vg-dom-more[open] summary { margin-bottom: .6rem; color: #1c1c1c; }
.vg-dom-more textarea { min-height: 90px !important; }

/* Enviar: al pie de la columna de datos */
.vg-dom-submit { margin-top: auto; padding-top: 1.5rem; }
.vg-dom-submit .vg-ct-btn {
  justify-content: center;
  width: 100%;
  border-radius: 10px;
}
.vg-dom-submit .vg-ct-legal { margin-top: .75rem; font-size: .75rem; line-height: 1.5; }

/* Mensaje de éxito dentro del ancho del formulario */
.vg-dominios .vg-ct-ok { border-radius: 20px; }

/* ---------- Preguntas frecuentes ---------- */
.vg-dom-faq {
  padding: 90px 0 110px;
  background: #eeeeeb;
}
.vg-dom-faq__item {
  border-top: 1px solid rgba(0, 0, 0, .12);
}
.vg-dom-faq__item:last-child { border-bottom: 1px solid rgba(0, 0, 0, .12); }
.vg-dom-faq__item summary {
  position: relative;
  padding: 1.35rem 2.5rem 1.35rem 0;
  font-size: 1.05rem;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.vg-dom-faq__item summary::-webkit-details-marker { display: none; }
/* Botón +/− dibujado con CSS (queda centrado con cualquier tipografía) */
.vg-dom-faq__item summary::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  width: 34px;
  height: 34px;
  color: #1c1c1c;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transform: translateY(-50%);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, background-size .25s ease;
}
.vg-dom-faq__item summary:hover::after { border-color: #1c1c1c; }
.vg-dom-faq__item summary:focus-visible { outline: none; }
.vg-dom-faq__item summary:focus-visible::after { box-shadow: 0 0 0 3px var(--kraft-claro, #EBCFB8); }

/* Abierto: círculo negro con "−" */
.vg-dom-faq__item[open] summary::after {
  color: #fff;
  background-color: #1c1c1c;
  border-color: #1c1c1c;
  background-size: 12px 1.5px, 1.5px 0;
}
.vg-dom-faq__item p {
  margin: 0;
  padding: 0 2.5rem 1.5rem 0;
  line-height: 1.7;
  color: #5f5a52;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .vg-dom-grid { grid-template-columns: 1fr; }
  .vg-dom-col--datos { border-left: 0; border-top: 1px solid rgba(0, 0, 0, .08); }
}
@media (max-width: 767.98px) {
  .vg-dom-hero { padding: 80px 0 70px; }
  .vg-dom-col { padding: 1.5rem; }
  .vg-dom-fallback { flex-direction: column; }
  .vg-dom-fallback button { padding: .95rem; }
  .vg-dom-body { padding: 60px 0 70px; }
  .vg-dom-faq { padding: 60px 0 70px; }
}

.vg-dom-faq .vg-dom-h2 { margin-bottom: .75rem; }
