/* ==============================================================================
   XHOST Chile — Estilos Centralizados de Plantilla Default (Light Mode)
   Proyecto: PRY-JA001
   Autor: Jesús Arias (jarias) / XCORP
   Dominio Central: https://parking.xhost.cl/app.css
   ============================================================================== */

:root {
  /* Paleta Oficial XHOST (Light Mode Institucional) */
  --color-green-primary: #52a62c;
  --color-green-hover: #439126;
  --color-green-dark: #296016;
  --color-green-soft: #F0F9ED;
  
  --color-blue-deep: #060840;
  
  --color-bg-base: #F8F9FA;
  --color-bg-surface: #FFFFFF;
  --color-bg-subtle: #F1F3F5;
  
  --color-border-subtle: #E9ECEF;
  --color-border-card: #DEE2E6;
  --color-border-green: rgba(82, 166, 44, 0.35);

  --color-text-main: #060840;
  --color-text-body: #495057;
  --color-text-muted: #6C757D;
  --color-text-dim: #868E96;

  --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  --shadow-card: 0 4px 18px -2px rgba(6, 8, 64, 0.05), 0 2px 6px -1px rgba(6, 8, 64, 0.02);
  --shadow-btn: 0 4px 14px rgba(82, 166, 44, 0.35);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--color-bg-base);
  background-image: 
    radial-gradient(circle at 50% 0%, #EBF7E6 0%, transparent 650px),
    linear-gradient(180deg, #FFFFFF 0%, var(--color-bg-base) 100%);
  color: var(--color-text-body);
  font-family: var(--font-body);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Soporte de altura completa para contenedor inyectado */
#xhost-parking-app {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  flex: 1 0 auto;
}

/* Acento superior de marca */
.bg-top-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-blue-deep) 0%, var(--color-green-primary) 50%, var(--color-blue-deep) 100%);
  z-index: 10;
}

/* Contenedor principal con distribución vertical espaciosa y equilibrada */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Header superior con presencia */
header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 0 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
  flex-shrink: 0;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.brand-logo-link:hover {
  transform: translateY(-2px);
}

.brand-logo-svg {
  height: 48px;
  width: auto;
}

/* Main: Distribución de ritmo vertical idéntico (space-evenly sin paddings acumulados) */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 0;
  margin: 0;
}

/* Hero Central con presencia imponente y respiro */
.hero-section {
  text-align: center;
  padding: 0 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.domain-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--color-green-dark);
  background: var(--color-green-soft);
  padding: 0.4rem 1.35rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.9rem;
  border: 1px solid #CDECC3;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.hero-title span.domain-name-highlight {
  color: var(--color-green-primary);
  word-break: break-word;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  color: var(--color-text-body);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 700px;
}

.hero-subtitle strong {
  color: var(--color-text-main);
  font-weight: 600;
}

/* Grid de Accesos Directos (4 Botones con presencia y respiro) */
.shortcuts-wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.section-label {
  text-align: center;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: 0.95rem;
  font-weight: 700;
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* Botón-tarjeta limpio, directo y con respiro */
.shortcut-button-card {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: all 0.22s ease;
  position: relative;
  cursor: pointer;
}

.shortcut-button-card:hover {
  border-color: var(--color-green-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -3px rgba(6, 8, 64, 0.08), 0 2px 10px -2px rgba(82, 166, 44, 0.2);
}

.btn-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--color-green-soft);
  border: 1px solid #D6F0CC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green-primary);
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.shortcut-button-card:hover .btn-card-icon {
  background: var(--color-green-primary);
  color: #FFFFFF;
  border-color: var(--color-green-primary);
}

.btn-card-icon svg {
  width: 22px;
  height: 22px;
}

.btn-card-title {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-text-main);
  flex-grow: 1;
  transition: color 0.2s ease;
  margin: 0;
  white-space: nowrap;
}

.shortcut-button-card:hover .btn-card-title {
  color: var(--color-green-primary);
}

.btn-card-arrow {
  width: 16px;
  height: 16px;
  color: var(--color-green-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.shortcut-button-card:hover .btn-card-arrow {
  transform: translateX(4px);
}

/* Caja de Autoridad y Linkbuilding */
.linkbuilding-banner {
  background: #FFFFFF;
  border: 1px solid #D6E8D0;
  border-radius: var(--radius-lg);
  padding: 1.65rem 2.5rem;
  margin: 0 auto;
  width: 100%;
  max-width: 1080px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 8px 28px -4px rgba(6, 8, 64, 0.06);
  position: relative;
  overflow: hidden;
}

.linkbuilding-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  bottom: 0;
  background: linear-gradient(180deg, var(--color-green-primary) 0%, var(--color-blue-deep) 100%);
}

.banner-content {
  flex: 1 1 540px;
}

.banner-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
  color: var(--color-text-main);
  line-height: 1.3;
}

.banner-text {
  font-size: 0.92rem;
  color: var(--color-text-body);
  line-height: 1.55;
  margin-bottom: 0.85rem;
  max-width: 680px;
}

.banner-links-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.65rem;
  list-style: none;
}

.banner-links-list a {
  color: var(--color-blue-deep);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-bottom: 1px solid #C4D3DF;
  padding-bottom: 2px;
  transition: all 0.2s ease;
}

.banner-links-list a:hover {
  color: var(--color-green-hover);
  border-bottom-color: var(--color-green-hover);
}

.banner-cta-group {
  flex-shrink: 0;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--color-green-primary) 0%, var(--color-green-hover) 100%);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-btn);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(82, 166, 44, 0.45);
  background: linear-gradient(135deg, #60b637 0%, var(--color-green-dark) 100%);
}

/* Footer Institucional */
footer {
  border-top: 1px solid var(--color-border-subtle);
  background: #FFFFFF;
  padding: 1.35rem 1.5rem;
  margin-top: auto;
  width: 100%;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-brand p:first-child {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-main);
}

.footer-brand p:last-child {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.82rem;
  color: var(--color-text-body);
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.contact-icon {
  width: 15px;
  height: 15px;
  color: var(--color-green-primary);
  flex-shrink: 0;
}

.footer-contact a {
  color: var(--color-text-body);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: var(--color-green-hover);
}

/* Responsive */
@media (max-width: 992px) {
  .shortcuts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    justify-content: center;
  }
  .linkbuilding-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-contact {
    flex-direction: column;
    gap: 0.65rem;
  }
}

@media (max-width: 540px) {
  .shortcuts-grid {
    grid-template-columns: 1fr;
  }
  .btn-card-title {
    white-space: normal;
  }
}

/* Optimización para pantallas compactas de altura (ej. laptops 1366x768 o viewports reducidos) */
@media (max-height: 780px) {
  .container {
    padding: 0.75rem 1.5rem 0.5rem;
  }
  header {
    padding: 0.35rem 0 0.85rem;
  }
  .brand-logo-svg {
    height: 40px;
  }
  main {
    padding: 0.75rem 0;
    gap: 0.75rem;
  }
  .domain-tag {
    margin-bottom: 0.55rem;
    padding: 0.28rem 1rem;
    font-size: 0.75rem;
  }
  .hero-title {
    font-size: 2.1rem;
    margin-bottom: 0.45rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.45;
  }
  .section-label {
    margin-bottom: 0.65rem;
  }
  .shortcut-button-card {
    padding: 0.95rem 1.15rem;
    gap: 0.75rem;
  }
  .btn-card-icon {
    width: 38px;
    height: 38px;
  }
  .btn-card-title {
    font-size: 0.9rem;
  }
  .linkbuilding-banner {
    padding: 1.25rem 1.85rem;
    gap: 1.15rem;
  }
  .banner-title {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
  }
  .banner-text {
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 0.55rem;
  }
  footer {
    padding: 1rem 1.5rem;
  }
}

