/* dycongt.com — palacio de mármol: vino profundo, oro antiguo, marfil y azul real */

:root {
  --marfil: #fbf6ec;
  --rosado: #f5e9e3;
  --blanco: #ffffff;
  --vino: #3b0a1a;
  --vino-2: #5a1228;
  --vino-3: #7d1c38;
  --oro: #c99a3b;
  --oro-claro: #f0d58a;
  --oro-hondo: #8f6a1c;
  --azul: #1d3f9e;
  --azul-2: #2f5ad0;
  --tinta: #2a1620;
  --suave: #6a5560;
  --filo: rgba(143, 106, 28, 0.28);
  --filo-fuerte: rgba(59, 10, 26, 0.3);

  --serif: "Cormorant Garamond", "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Segoe UI", Roboto, Arial, sans-serif;

  --ancho: 1120px;
  --lateral: clamp(1rem, 4vw, 2.2rem);
  --alto-cabeza: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-cabeza) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

body { margin: 0; background: var(--marfil); color: var(--tinta); font-family: var(--sans); font-size: 1.06rem; line-height: 1.74; }
body.dg-fijo { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
strong { color: var(--vino-2); font-weight: 700; }

:focus-visible { outline: 3px solid var(--azul-2); outline-offset: 3px; border-radius: 3px; }
section:focus { outline: none; }

.dg-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dg-salto { position: absolute; top: -90px; left: 1rem; z-index: 999; padding: 0.7rem 1rem; border-radius: 4px; background: var(--oro); color: var(--vino); font-weight: 700; text-decoration: none; }
.dg-salto:focus { top: 1rem; }

.dg-ancho { width: min(100% - 2 * var(--lateral), var(--ancho)); margin-inline: auto; }

/* ---------- botones ---------- */

.dg-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.dg-boton:hover { transform: translateY(-2px); filter: brightness(1.06); }
.dg-boton:active { transform: translateY(0); filter: brightness(0.94); }
.dg-boton--oro { background: linear-gradient(180deg, var(--oro-claro), var(--oro) 55%, var(--oro-hondo)); border-color: var(--oro-hondo); color: var(--vino); box-shadow: 0 10px 22px -12px rgba(143, 106, 28, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 3px rgba(201, 154, 59, 0.18); }
.dg-boton--azul { background: linear-gradient(180deg, var(--azul-2), var(--azul)); border-color: #14307a; color: var(--blanco); box-shadow: 0 10px 22px -12px rgba(29, 63, 158, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 0 0 3px rgba(29, 63, 158, 0.16); }
.dg-boton--contorno { background: transparent; border-color: var(--oro-claro); color: var(--oro-claro); }
.dg-boton--contorno:hover { background: var(--oro-claro); color: var(--vino); }
.dg-boton--grande { min-height: 56px; padding: 0.85rem 1.6rem; font-size: 0.92rem; }
.dg-boton--ancho { width: 100%; }

/* ---------- cabeza ---------- */

.dg-cabeza { position: sticky; top: 0; z-index: 300; background: var(--vino); border-bottom: 2px solid var(--oro); }
.dg-cabeza__fila { display: flex; align-items: center; gap: 1.2rem; height: calc(var(--alto-cabeza) - 2px); }

.dg-firma { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--oro-claro); text-decoration: none; flex-shrink: 0; }
.dg-firma__gema { width: 18px; height: 18px; background: linear-gradient(135deg, var(--oro-claro), var(--oro-hondo)); transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(240, 213, 138, 0.25); }
.dg-firma__txt { font-family: var(--serif); font-size: 2rem; font-weight: 700; letter-spacing: 0.01em; line-height: 1; }
.dg-firma__pais { color: var(--marfil); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; opacity: 0.85; }

.dg-menu { margin-left: auto; }
.dg-menu ul { display: flex; gap: 0.1rem; margin: 0; padding: 0; list-style: none; }
.dg-menu__a { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.8rem; color: var(--marfil); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.06em; text-decoration: none; text-transform: uppercase; transition: color 0.2s ease; }
.dg-menu__a::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 6px; height: 6px; margin-left: -3px; background: var(--oro); transform: rotate(45deg) scale(0); transition: transform 0.2s ease; }
.dg-menu__a:hover { color: var(--oro-claro); }
.dg-menu__a:hover::after,
.dg-menu__a[aria-current="true"]::after { transform: rotate(45deg) scale(1); }
.dg-menu__a[aria-current="true"] { color: var(--oro-claro); }
.dg-cabeza__cta { min-height: 44px; padding: 0.5rem 1.1rem; font-size: 0.76rem; letter-spacing: 0.06em; }

.dg-boton-menu { display: none; width: 48px; height: 48px; border: 1px solid var(--oro); border-radius: 50%; background: transparent; cursor: pointer; place-items: center; }
.dg-boton-menu__rayas { display: grid; gap: 6px; width: 20px; }
.dg-boton-menu__rayas i { display: block; height: 2px; background: var(--oro-claro); }
.dg-boton-menu__rayas i:nth-child(2) { width: 65%; margin-left: auto; }

.dg-hilo { position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; }
.dg-hilo span { display: block; height: 100%; background: linear-gradient(90deg, var(--oro-claro), var(--azul-2) 60%, #e0364f); transform: scaleX(0); transform-origin: 0 50%; }

/* telón (menú móvil con revelado circular) */
.dg-telon { position: fixed; inset: 0; z-index: 600; background: radial-gradient(800px 500px at 100% 0%, var(--vino-3), transparent 70%), var(--vino); overflow-y: auto; animation: dg-revela 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.dg-telon[hidden] { display: none; }
@keyframes dg-revela { from { clip-path: circle(0 at calc(100% - 44px) 36px); } to { clip-path: circle(150% at calc(100% - 44px) 36px); } }
.dg-telon__in { min-height: 100%; padding: 5.2rem var(--lateral) 2rem; display: flex; flex-direction: column; }
.dg-telon__x { position: absolute; top: 12px; right: var(--lateral); width: 48px; height: 48px; border: 1px solid var(--oro); border-radius: 50%; background: transparent; color: var(--oro-claro); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.dg-telon__lista { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.dg-telon__a { display: flex; align-items: center; min-height: 54px; border-bottom: 1px solid rgba(240, 213, 138, 0.25); color: var(--marfil); font-family: var(--serif); font-size: 1.7rem; font-weight: 600; text-decoration: none; }
.dg-telon__a::before { content: ""; width: 9px; height: 9px; margin-right: 0.9rem; background: var(--oro); transform: rotate(45deg); }
.dg-telon__a:hover { color: var(--oro-claro); }
.dg-telon__ctas { display: grid; gap: 0.8rem; margin-top: 1.8rem; }

/* ---------- recibidor (portada) ---------- */

.dg-recibidor { padding: clamp(2rem, 5vw, 3.6rem) 0 0; background: linear-gradient(120deg, transparent 0 55%, rgba(201, 154, 59, 0.08) 55.3%, transparent 56%), radial-gradient(900px 500px at 0% 0%, rgba(240, 213, 138, 0.35), transparent 70%), var(--marfil); }
.dg-recibidor__rej { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.8rem, 4vw, 3.6rem); align-items: center; }
.dg-cuadro { position: relative; margin: 0; padding: 10px; border: 2px solid var(--oro); background: var(--blanco); box-shadow: 16px 16px 0 var(--vino), 0 30px 50px -28px rgba(59, 10, 26, 0.6); }
.dg-cuadro::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--filo); pointer-events: none; }
.dg-cuadro img { width: 100%; aspect-ratio: 1380 / 752; object-fit: cover; }
.dg-sobre { display: inline-flex; align-items: center; gap: 0.7rem; margin-bottom: 1rem; color: var(--vino-3); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; }
.dg-sobre::before { content: ""; width: 34px; height: 2px; background: var(--oro); }
.dg-recibidor h1 { margin: 0 0 1.1rem; color: var(--vino); font-family: var(--serif); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }
.dg-recibidor__intro { color: var(--tinta); }
.dg-recibidor__botones { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

.dg-pilares { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: clamp(2.2rem, 5vw, 3.2rem) 0 calc(-1 * clamp(2rem, 4vw, 2.8rem)); padding: 0; list-style: none; }
.dg-pilares li { display: grid; gap: 0.1rem; padding: 1rem 1.3rem; border: 1px solid var(--filo); border-top: 4px solid var(--oro); background: var(--blanco); box-shadow: 0 20px 34px -24px rgba(59, 10, 26, 0.6); }
.dg-pilares li:nth-child(2) { border-top-color: var(--azul-2); }
.dg-pilares li:nth-child(3) { border-top-color: var(--vino-3); }
.dg-pilares b { color: var(--vino); font-family: var(--serif); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 700; line-height: 1.1; }
.dg-pilares span { color: var(--suave); font-size: 0.92rem; font-weight: 500; }

/* ---------- salas (secciones) ---------- */

.dg-sala { padding: clamp(2.8rem, 6vw, 4.4rem) 0; background: var(--marfil); }
.dg-sala--rosa { background: var(--rosado); }
.dg-sala:first-of-type { padding-top: clamp(5.4rem, 9vw, 7rem); }
.dg-sala__cab { display: grid; justify-items: center; margin-bottom: 1.8rem; text-align: center; }
.dg-adorno { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.7rem; }
.dg-adorno i { display: block; width: clamp(40px, 8vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, var(--oro)); }
.dg-adorno i:last-child { background: linear-gradient(270deg, transparent, var(--oro)); }
.dg-adorno b { display: grid; place-items: center; width: 42px; height: 42px; border: 1.5px solid var(--oro); color: var(--oro-hondo); font-family: var(--serif); font-size: 1.1rem; transform: rotate(45deg); }
.dg-adorno b::first-line { transform: rotate(-45deg); }
.dg-sala__eti { margin-bottom: 0.4rem; color: var(--vino-3); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; }
.dg-sala__cab h2 { margin: 0; max-width: 780px; color: var(--vino); font-family: var(--serif); font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.005em; text-wrap: balance; }
.dg-sala__cuerpo { max-width: 940px; margin-inline: auto; padding: clamp(1.2rem, 3vw, 2.2rem); border: 1px solid var(--filo); background: var(--blanco); box-shadow: 0 26px 44px -34px rgba(59, 10, 26, 0.6); position: relative; }
.dg-sala__cuerpo::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: linear-gradient(90deg, var(--oro-hondo), var(--oro-claro), var(--oro-hondo)); }
.dg-sala__cuerpo > :last-child { margin-bottom: 0; }

.dg-apartado { margin: 1.8rem 0; padding-top: 1.4rem; border-top: 1px solid var(--filo); }
.dg-apartado:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.dg-apartado:last-child { margin-bottom: 0; }
.dg-apartado h3 { display: flex; align-items: center; gap: 0.7rem; margin: 0 0 0.7rem; color: var(--vino); font-family: var(--serif); font-size: 1.6rem; font-weight: 700; line-height: 1.2; }
.dg-apartado h3::before { content: ""; flex-shrink: 0; width: 11px; height: 11px; background: var(--oro); transform: rotate(45deg); }
.dg-apartado > :last-child { margin-bottom: 0; }

.dg-llamado { margin: 1.8rem 0 0.2rem; }

.dg-puntos { display: grid; gap: 0.55rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.dg-puntos li { position: relative; padding-left: 1.7rem; line-height: 1.55; }
.dg-puntos li::before { content: ""; position: absolute; left: 0.15rem; top: 0.52em; width: 0.6rem; height: 0.6rem; background: var(--oro); transform: rotate(45deg); }
.dg-puntos li:nth-child(even)::before { background: var(--vino-3); }

.dg-tabla { margin: 1rem 0 1.2rem; overflow-x: auto; border: 1px solid var(--filo-fuerte); background: var(--blanco); -webkit-overflow-scrolling: touch; }
.dg-tabla table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.dg-tabla--ancho table { min-width: 540px; }
.dg-tabla thead th { padding: 0.85rem 1rem; background: var(--vino); border-bottom: 3px solid var(--oro); color: var(--oro-claro); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-align: left; text-transform: uppercase; }
.dg-tabla tbody th,
.dg-tabla tbody td,
.dg-tabla tfoot th,
.dg-tabla tfoot td { padding: 0.7rem 1rem; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.dg-tabla tbody tr:nth-child(even) { background: var(--marfil); }
.dg-tabla tbody tr + tr > * { border-top: 1px solid var(--filo); }
.dg-tabla tbody th { color: var(--vino); font-weight: 700; }
.dg-tabla tbody tr:hover { background: rgba(240, 213, 138, 0.3); }
.dg-tabla tfoot { background: linear-gradient(90deg, var(--oro-hondo), var(--oro), var(--oro-claro)); }
.dg-tabla tfoot th,
.dg-tabla tfoot td { color: var(--vino); font-weight: 700; }

.dg-dudas { display: grid; gap: 0.7rem; }
.dg-dudas__item { border: 1px solid var(--filo-fuerte); background: var(--marfil); transition: border-color 0.2s ease, background 0.2s ease; }
.dg-dudas__item[open] { border-color: var(--oro); background: var(--blanco); box-shadow: -5px 0 0 var(--oro); }
.dg-dudas__item summary { display: flex; align-items: center; gap: 0.9rem; min-height: 62px; padding: 0.8rem 1rem; list-style: none; cursor: pointer; }
.dg-dudas__item summary::-webkit-details-marker { display: none; }
.dg-dudas__item summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; margin-left: auto; border: 1px solid var(--oro); color: var(--oro-hondo); font-size: 1.4rem; line-height: 1; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.dg-dudas__item[open] summary::after { transform: rotate(45deg); background: var(--oro); color: var(--vino); }
.dg-dudas__n { flex-shrink: 0; color: var(--oro-hondo); font-family: var(--serif); font-size: 1.4rem; font-weight: 700; }
.dg-dudas__q { color: var(--vino); font-family: var(--serif); font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.dg-dudas__r { margin: 0; padding: 0 1rem 1.1rem; }

/* ---------- pie ---------- */

.dg-pie { background: var(--vino); color: #e8d9dd; border-top: 3px solid var(--oro); }
.dg-pie__rej { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 2rem; align-items: start; padding: 2.8rem 0 1.6rem; }
.dg-pie__edad { display: flex; align-items: center; gap: 0.6rem; margin: 1rem 0 0; font-size: 0.95rem; }
.dg-pie__18 { display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--oro); border-radius: 50%; color: var(--oro-claro); font-family: var(--serif); font-size: 1.05rem; font-weight: 700; }
.dg-pie__lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.4rem; margin: 0; padding: 0; list-style: none; }
.dg-pie__lista a { display: inline-flex; align-items: center; min-height: 40px; color: #e8d9dd; text-decoration: none; }
.dg-pie__lista a:hover { color: var(--oro-claro); }
.dg-pie__ctas { display: grid; gap: 0.9rem; justify-items: start; }
.dg-pie__copy { margin-top: 0; margin-bottom: 0; padding: 1rem 0 1.6rem; border-top: 1px solid rgba(240, 213, 138, 0.25); font-size: 0.88rem; }

.dg-subir { position: fixed; right: 1rem; bottom: 1rem; z-index: 250; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--oro); background: var(--vino); color: var(--oro-claro); font-size: 1.25rem; font-weight: 700; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s, background 0.2s ease; }
.dg-subir:hover { background: var(--oro); color: var(--vino); }
.dg-subir.dg-subir--ver { opacity: 1; visibility: visible; }

/* ---------- adaptación ---------- */

@media (max-width: 1100px) {
  .dg-menu { display: none; }
  .dg-boton-menu { display: grid; }
  .dg-cabeza__cta { margin-left: auto; }
}

@media (max-width: 900px) {
  .dg-recibidor__rej { grid-template-columns: minmax(0, 1fr); }
  .dg-cuadro { box-shadow: 10px 10px 0 var(--vino), 0 24px 40px -24px rgba(59, 10, 26, 0.6); max-width: 620px; margin-inline: auto; width: calc(100% - 10px); }
  .dg-pie__rej { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --alto-cabeza: 64px; }
  body { font-size: 1.02rem; }
  .dg-firma__pais { display: none; }
  .dg-cabeza__cta { padding: 0.45rem 0.9rem; font-size: 0.7rem; letter-spacing: 0.04em; }
  .dg-recibidor__botones .dg-boton,
  .dg-llamado .dg-boton { width: 100%; white-space: normal; }
  .dg-pilares { grid-template-columns: minmax(0, 1fr); }
  .dg-sala__cuerpo { padding: 1rem 0.9rem; }
  .dg-pie__lista { grid-template-columns: minmax(0, 1fr); }
}
