/* Gestión Arriendos · landing.css — estilos propios de la portada pública.
 * Solo usa tokens de tokens.css (var(--…)); ningún color suelto. Requiere tokens.css, base.css y portada.css. */

/* Ilustración del héroe: un edificio con ventanas que se encienden, dentro de la órbita de Cyberia. Solo transform y opacity. */
.arte-edificio { width: 100%; height: auto; overflow: visible; }
.arte-anillo { stroke: var(--marca); stroke-width: 2; opacity: 0.45; }
.arte-satelite { fill: var(--marca); }
.arte-giro { transform-origin: 180px 200px; animation: orbita 2.2s var(--ease-out) 0.2s both; }
.arte-suelo { stroke: var(--borde-fuerte); stroke-width: 2; stroke-linecap: round; }
.edificio { fill: var(--superficie); stroke: var(--texto); stroke-width: 2.5; }
.edificio-lateral { fill: var(--fondo-sutil); stroke: var(--texto); stroke-width: 2.5; }
.ventana { fill: var(--fondo-sutil); stroke: var(--borde-fuerte); stroke-width: 1.5; }
.ventana-viva { fill: var(--marca); transform-box: fill-box; transform-origin: center; animation: encender var(--dur-larga) var(--ease-out) both; }
.ventanas-vivas > :nth-child(1) { animation-delay: 0.5s; } .ventanas-vivas > :nth-child(2) { animation-delay: 0.62s; }
.ventanas-vivas > :nth-child(3) { animation-delay: 0.74s; } .ventanas-vivas > :nth-child(4) { animation-delay: 0.86s; }
.ventanas-vivas > :nth-child(5) { animation-delay: 0.98s; } .ventanas-vivas > :nth-child(6) { animation-delay: 1.1s; }
.ventanas-vivas > :nth-child(7) { animation-delay: 1.22s; } .ventanas-vivas > :nth-child(8) { animation-delay: 1.34s; }
.puerta { fill: var(--marca-tenue); stroke: var(--texto); stroke-width: 2.5; }
.arte-sello circle { fill: var(--superficie); stroke: var(--marca); stroke-width: 2.5; }
.arte-sello path { stroke: var(--marca); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.arte-sello { transform-box: fill-box; transform-origin: center; animation: sello var(--dur-larga) var(--ease-out) 1.6s both; }
@keyframes encender { from { opacity: 0; transform: scale(0.5); } to { opacity: 1; transform: none; } }
@keyframes sello { from { opacity: 0; transform: translateY(10px) scale(0.85); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .arte-giro, .ventana-viva, .arte-sello { animation: none; } }

/* Contacto */
#contacto > .portada-bajada { margin-bottom: 1.75rem; }
.contacto-datos { margin-bottom: 1.25rem; }
.contacto-datos .tarjeta { padding: 1.5rem; }
.contacto-valor { margin: 0; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
/* Tabla de perfiles: la primera columna no necesita ancho mínimo en teléfono */
@media (max-width: 40em) { #perfiles .titulo-fila { min-width: 0; font-weight: 700; } }

/* Pie con la identificación del responsable */
.pie-legal { display: grid; gap: 0.35rem; max-width: 46rem; }
.pie-legal p { margin: 0; font-size: 0.875rem; line-height: 1.5; }
.pie-legal strong { color: var(--texto); font-weight: 600; }

/* Política de privacidad */
.legal { max-width: 46rem; padding-bottom: 1rem; }
.legal > h1 { margin: 0.25rem 0 1rem; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.legal h2 { margin: 2.5rem 0 0.75rem; font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; scroll-margin-top: 4.5rem; }
.legal h3 { margin: 1.5rem 0 0.5rem; font-size: 1.0625rem; font-weight: 700; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.25rem; }
.legal li + li { margin-top: 0.35rem; }
.legal .tarjeta { padding: 1.25rem 1.5rem; margin: 1rem 0; }
.legal .tarjeta p { margin: 0.25rem 0; }
.legal-indice { columns: 2 16rem; margin: 0; padding-left: 1.25rem; }

/* Dos sistemas: tarjetas «¿Qué administras?» y paneles de comunidades y arriendos (static/js/sistemas.js) */
.sistemas { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; }
.sistema-opcion { display: grid; gap: 0.75rem; align-content: start; padding: clamp(1.5rem, 3vw, 2rem); border-radius: 1.375rem; color: var(--texto); text-decoration: none; }
.sistema-opcion .portada-icono { width: 3.25rem; height: 3.25rem; }
.sistema-opcion .portada-icono .icono { width: 1.625rem; height: 1.625rem; }
.sistema-titulo { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; }
.sistema-texto { color: var(--texto-suave); font-size: 1rem; line-height: 1.55; }
.sistema-ver { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; color: var(--enlace); font-weight: 650; }
.sistema-ver .icono { width: 1.125rem; height: 1.125rem; transition: transform var(--dur-media) var(--ease-out); }
.sistema-elegido { position: absolute; top: 1.25rem; right: 1.25rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--primario); color: var(--sobre-primario); opacity: 0; transform: scale(0.6); transition: opacity var(--dur-media) var(--ease-out), transform var(--dur-media) var(--ease-out); }
.sistema-elegido .icono { width: 1.125rem; height: 1.125rem; }
.sistema-opcion[aria-current="true"] { border-color: var(--marca); box-shadow: 0 0 0 1px var(--marca), var(--sombra-suave); }
.sistema-opcion[aria-current="true"]::before { transform: scaleX(1); }
.sistema-opcion[aria-current="true"] .sistema-elegido { opacity: 1; transform: none; }
@media (hover: hover) { .sistema-opcion:hover .sistema-ver .icono { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .sistema-elegido, .sistema-ver .icono { transition: none; } }
.sistema[hidden] { display: none; }
.sistema { scroll-margin-top: 4.5rem; }
.sistema-cabecera > h2 { max-width: 36rem; }
.sistema-cabecera .portada-bajada { margin-bottom: 0; }
.sistema-cabecera + .portada-seccion { padding-top: 2rem; }
.sistema .portada-cierre { margin-top: clamp(2.5rem, 6vw, 4.5rem); }
@media print { .sistema[hidden] { display: block; } .sistemas { display: none; } }

/* Sistema de arriendos: «Tu propia página web» destacada, con una vitrina dibujada */
.web-propia { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1.75rem; border-color: color-mix(in srgb, var(--marca) 45%, var(--borde));
  background: radial-gradient(ellipse at 100% 0%, var(--marca-tenue), transparent 65%), var(--superficie); box-shadow: var(--sombra); }
.web-propia h2 { margin: 0 0 1rem; max-width: 22ch; font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.08; }
.web-propia .portada-bajada { margin-bottom: 1.5rem; }
.web-propia-puntos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.875rem; }
.web-propia-puntos li { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; color: var(--texto-suave); line-height: 1.5; }
.web-propia-puntos strong { color: var(--texto); font-weight: 700; }
.web-propia-puntos .icono { width: 1.5rem; height: 1.5rem; padding: 0.25rem; border-radius: 50%; background: var(--primario); color: var(--sobre-primario); }
.web-propia-arte { filter: drop-shadow(0 18px 36px var(--marca-tenue)); }
.arte-web { display: block; width: 100%; height: auto; }
.web-marco { fill: var(--superficie); stroke: var(--texto); stroke-width: 2.5; }
.web-linea { stroke: var(--borde-fuerte); stroke-width: 1.5; }
.web-punto { fill: var(--borde-fuerte); }
.web-url, .web-foto, .web-texto-suave { fill: var(--fondo-sutil); }
.web-texto { fill: var(--borde-fuerte); }
.web-logo, .web-precio { fill: var(--marca); }
.web-boton { fill: var(--primario); }
.web-ficha { fill: var(--superficie); stroke: var(--borde-fuerte); stroke-width: 1.5; }
.web-casa { stroke: var(--marca); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.web-fichas > g { transform-box: fill-box; transform-origin: center; animation: subir var(--dur-larga) var(--ease-out) both; }
.web-fichas > g:nth-child(2) { animation-delay: 120ms; } .web-fichas > g:nth-child(3) { animation-delay: 240ms; }
.web-nueva circle { fill: var(--primario); }
.web-nueva path { stroke: var(--sobre-primario); stroke-width: 3; stroke-linecap: round; }
.web-nueva { transform-box: fill-box; transform-origin: center; animation: sello var(--dur-larga) var(--ease-out) 0.5s both; }
@media (max-width: 56.25em) { .web-propia { grid-template-columns: minmax(0, 1fr); } .web-propia-arte { order: -1; width: min(100%, 24rem); justify-self: center; } }
@media (prefers-reduced-motion: reduce) { .web-fichas > g, .web-nueva { animation: none; } }

/* Botón «Iniciar sesión» de la barra: en pantallas angostas queda junto al tema y se oculta «Solicitar demostración»
   (sigue disponible en el héroe y en Contacto). */
.barra-ingresar { white-space: nowrap; }
@media (max-width: 30em) { .barra-demo { display: none; } }
.portada-enlaces a, .portada-barra-fin .btn { white-space: nowrap; }
@media (max-width: 64em) { .portada-barra-cta { display: none; } }
@media (max-width: 60em) { .portada-enlaces { display: none; } }
@media (max-width: 22.5em) { .barra-ingresar .icono { display: none; } }

/* Núcleo del logo: casa con cerradura (Gestión Arriendos) dentro de la órbita de Cyberia. */
.logo-casa { stroke: var(--texto); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
