:root {
  --g505-reg-primary: #362A20;
  --g505-reg-secondary: #7A2838;
  --g505-reg-text: #F8F1E7;
  --g505-reg-accent: #D4AF37;
  --g505-reg-background: #362A20;
  --g505-reg-surface: #49392E;
  --g505-reg-border: #6B5544;
  --g505-reg-muted: #E0D4C6;
  --g505-reg-deep: #241B15;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: hidden; background: var(--g505-reg-background); }
body { margin: 0; overflow-x: hidden; background: var(--g505-reg-background); color: var(--g505-reg-text); font-family: "Segoe UI", Inter, Arial, sans-serif; line-height: 1.68; }
.g505-registro-a * { min-width: 0; }
.g505-registro-a,
.g505-registro-a section,
.g505-registro-a article,
.g505-registro-a figure,
.g505-registro-a img,
.g505-registro-a a,
.g505-registro-a button,
.g505-registro-a h1,
.g505-registro-a h2,
.g505-registro-a h3,
.g505-registro-a p,
.g505-registro-a figcaption { max-width: 100%; }

.g505-registro-a { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 56px; overflow-x: hidden; color: var(--g505-reg-text); font-size: 16px; line-height: 1.68; }
.g505-registro-a section { width: 100%; margin: 0 0 25px; padding: 40px; border: 1px solid var(--g505-reg-border); border-radius: 23px; background: var(--g505-reg-surface); box-shadow: 0 15px 38px rgba(25, 16, 10, .28); }
.g505-registro-a h1,
.g505-registro-a h2,
.g505-registro-a h3,
.g505-registro-a p,
.g505-registro-a a,
.g505-registro-a button,
.g505-registro-a figcaption { overflow-wrap: anywhere; word-break: normal; }
.g505-registro-a h1,
.g505-registro-a h2,
.g505-registro-a h3 { margin: 0 0 15px; color: var(--g505-reg-text); line-height: 1.17; letter-spacing: -.025em; }
.g505-registro-a h1 { font-size: 35px; }
.g505-registro-a h2 { font-size: 29px; }
.g505-registro-a h3 { font-size: 20px; }
.g505-registro-a p { margin: 0 0 15px; color: var(--g505-reg-muted); }
.g505-registro-a strong { color: var(--g505-reg-accent); font-weight: 850; }
.g505-registro-a a:not(.g505-registro-a__boton) { color: #F0D064; font-weight: 800; text-underline-offset: 3px; }
.g505-registro-a a:not(.g505-registro-a__boton):hover { color: #FFF0A2; }

.g505-registro-a__apertura { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(390px, .94fr); align-items: center; gap: 43px; background: radial-gradient(circle at 8% 8%, rgba(122, 40, 56, .52), transparent 40%), linear-gradient(135deg, #3D2E24, #231A14) !important; }
.g505-registro-a__apertura > *,
.g505-registro-a__secuencia > *,
.g505-registro-a__datos > *,
.g505-registro-a__verificacion > *,
.g505-registro-a__bienvenida > *,
.g505-registro-a__primeros-pasos > *,
.g505-registro-a__rutas > *,
.g505-registro-a__faq-lista > *,
.g505-registro-a__cierre > * { min-width: 0; }
.g505-registro-a__etiqueta { margin-bottom: 9px !important; color: var(--g505-reg-accent) !important; font-size: 13px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.g505-registro-a__encabezado { width: min(820px, 100%); margin-bottom: 27px; }
.g505-registro-a__encabezado--centro { margin-right: auto; margin-left: auto; text-align: center; }
.g505-registro-a__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin: 23px 0 18px; }
.g505-registro-a__boton { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border: 2px solid var(--g505-reg-accent); border-radius: 999px; font: inherit; font-weight: 900; line-height: 1.25; text-align: center; text-decoration: none; visibility: visible; opacity: 1; transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease; }
.g505-registro-a__boton--principal { background: var(--g505-reg-primary); color: var(--g505-reg-text); box-shadow: inset 0 0 0 1px rgba(212, 175, 55, .2); }
.g505-registro-a__boton--secundario { background: var(--g505-reg-secondary); color: #FFFFFF; border-color: #A86270; }
.g505-registro-a__boton:hover,
.g505-registro-a__boton:focus-visible,
.g505-registro-a__boton:active { visibility: visible; opacity: 1; transform: translateY(-1px); }
.g505-registro-a__boton--principal:hover,
.g505-registro-a__boton--principal:focus-visible,
.g505-registro-a__boton--principal:active { background: #4A382A; color: #FFFFFF; border-color: #E2C454; }
.g505-registro-a__boton--secundario:hover,
.g505-registro-a__boton--secundario:focus-visible,
.g505-registro-a__boton--secundario:active { background: #8E3446; color: #FFFFFF; border-color: #E2C454; }
.g505-registro-a__beneficios { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 0; padding: 0; list-style: none; }
.g505-registro-a__beneficios li { color: var(--g505-reg-muted); font-size: 14px; }
.g505-registro-a__beneficios li::before { content: "◆"; margin-right: 7px; color: var(--g505-reg-accent); font-size: 10px; }

.g505-registro-a__imagen { margin: 0; }
.g505-registro-a__imagen img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid #8A6E56; border-radius: 18px; background: var(--g505-reg-deep); object-fit: cover; }
.g505-registro-a__imagen--apertura img { aspect-ratio: 3 / 2; }
.g505-registro-a__imagen--datos { width: min(390px, 100%); justify-self: center; }
.g505-registro-a__imagen--datos img { aspect-ratio: 4 / 5; }
.g505-registro-a__imagen--lobby img { aspect-ratio: 16 / 9; }
.g505-registro-a__imagen figcaption { margin-top: 8px; color: #D5C6B6; font-size: 13px; font-style: italic; text-align: center; }

.g505-registro-a__pasos { border-color: #846849 !important; background: radial-gradient(circle at 50% 0, rgba(212, 175, 55, .11), transparent 42%), var(--g505-reg-surface) !important; }
.g505-registro-a__secuencia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 0; padding: 0; list-style: none; }
.g505-registro-a__secuencia li { padding: 21px; border: 1px solid var(--g505-reg-border); border-radius: 16px; background: #281E18; }
.g505-registro-a__secuencia li > span { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; margin-bottom: 14px; border-radius: 13px; background: var(--g505-reg-accent); color: #251B13; font-weight: 950; }
.g505-registro-a__secuencia p { margin: 0; font-size: 14px; }
.g505-registro-a__pasos-accion { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 18px; padding: 17px 20px; border: 1px solid #846849; border-radius: 16px; background: #30241C; }
.g505-registro-a__pasos-accion p { margin: 0; }
.g505-registro-a__pasos-accion .g505-registro-a__boton { flex: 0 0 auto; }

.g505-registro-a__datos { display: grid; grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr); align-items: center; gap: 44px; }
.g505-registro-a__verificacion { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.g505-registro-a__verificacion article { display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 15px; border-left: 4px solid var(--g505-reg-accent); border-radius: 0 14px 14px 0; background: #30241C; }
.g505-registro-a__verificacion article > span { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; background: var(--g505-reg-secondary); color: #FFFFFF; font-weight: 900; }
.g505-registro-a__verificacion h3 { margin-bottom: 5px; }
.g505-registro-a__verificacion p { margin: 0; font-size: 13px; }

.g505-registro-a__bienvenida { display: grid; grid-template-columns: minmax(230px, .66fr) minmax(0, 1.34fr); align-items: center; gap: 39px; background: radial-gradient(circle at 0 50%, rgba(122, 40, 56, .5), transparent 43%), #3A2B23 !important; }
.g505-registro-a__sello { display: flex; aspect-ratio: 4 / 3; flex-direction: column; align-items: center; justify-content: center; padding: 24px; border: 1px solid #A9854D; border-radius: 24px; background: linear-gradient(145deg, #271D17, #6A2434); text-align: center; }
.g505-registro-a__sello > span { margin-bottom: 4px; font-size: 34px; }
.g505-registro-a__sello strong { color: #FFFFFF; font-size: 31px; letter-spacing: .13em; }
.g505-registro-a__sello small { margin-top: 5px; color: #E6D8C8; }

.g505-registro-a__primeros-pasos { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr); align-items: center; gap: 42px; background: linear-gradient(150deg, #4A382C, #37291F) !important; }
.g505-registro-a__rutas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.g505-registro-a__rutas article { padding: 16px; border: 1px solid var(--g505-reg-border); border-radius: 14px; background: rgba(36, 27, 21, .85); }
.g505-registro-a__rutas article > span { display: block; margin-bottom: 8px; font-size: 23px; }
.g505-registro-a__rutas h3 { margin-bottom: 5px; }
.g505-registro-a__rutas p { margin: 0; font-size: 13px; }

.g505-registro-a__faq-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.g505-registro-a__faq-lista article { padding: 20px; border: 1px solid var(--g505-reg-border); border-radius: 16px; background: linear-gradient(145deg, #3C2D23, #2A2019); }
.g505-registro-a__faq-lista h3 { color: #F2D46C; }
.g505-registro-a__faq-lista p { margin: 0; }

.g505-registro-a__cierre { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 30px; border-color: #987747 !important; background: linear-gradient(105deg, #5A2030, #2C211A) !important; }
.g505-registro-a__cierre p { margin-bottom: 0; }
.g505-registro-a__acciones--cierre { justify-content: flex-end; margin: 0; }

@media (max-width: 940px) {
  .g505-registro-a__apertura,
  .g505-registro-a__datos,
  .g505-registro-a__bienvenida,
  .g505-registro-a__primeros-pasos,
  .g505-registro-a__cierre { grid-template-columns: 1fr; }
  .g505-registro-a__imagen--apertura { order: -1; width: min(720px, 100%); justify-self: center; }
  .g505-registro-a__imagen--datos { order: -1; }
  .g505-registro-a__imagen--lobby { width: min(700px, 100%); justify-self: center; }
  .g505-registro-a__secuencia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g505-registro-a__sello { width: min(380px, 100%); justify-self: center; }
  .g505-registro-a__cierre .g505-registro-a__acciones { justify-content: flex-start; }
}

@media (max-width: 700px) {
  .g505-registro-a__verificacion,
  .g505-registro-a__rutas,
  .g505-registro-a__faq-lista { grid-template-columns: 1fr; }
  .g505-registro-a__pasos-accion { align-items: stretch; flex-direction: column; }
  .g505-registro-a__pasos-accion .g505-registro-a__boton { width: 100%; }
}

@media (max-width: 640px) {
  .g505-registro-a { width: min(100% - 24px, 1160px); padding: 12px 0 34px; font-size: 15px; }
  .g505-registro-a section { margin-bottom: 16px; padding: 24px 18px; border-radius: 17px; }
  .g505-registro-a h1 { font-size: 30px; }
  .g505-registro-a h2 { font-size: 25px; }
  .g505-registro-a h3 { font-size: 18px; }
  .g505-registro-a__apertura,
  .g505-registro-a__datos,
  .g505-registro-a__bienvenida,
  .g505-registro-a__primeros-pasos,
  .g505-registro-a__cierre { gap: 22px; }
  .g505-registro-a__acciones,
  .g505-registro-a__secuencia { display: grid; grid-template-columns: 1fr; }
  .g505-registro-a__acciones { gap: 10px; }
  .g505-registro-a__boton { width: 100%; max-width: 100%; padding: 12px 16px; }
  .g505-registro-a__sello { aspect-ratio: 4 / 3; }
  .g505-registro-a__imagen--apertura img { aspect-ratio: 3 / 2; }
  .g505-registro-a__imagen--datos img { aspect-ratio: 4 / 5; }
  .g505-registro-a__imagen--lobby img { aspect-ratio: 16 / 9; }
  .g505-registro-a__cierre .g505-registro-a__acciones { width: 100%; }
}
