/* ==========================================================================
   ESAC — Escuela de Acústica de Car Audio
   main.css — Estilos Principales y Composición Visual (Web Única Sin Scroll)
   ========================================================================== */

/* --------------------------------------------------------------------------
   ESTILOS GENERALES Y FONDO DE ESCENARIO
   -------------------------------------------------------------------------- */
html,
body {
  height: 100%;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden; /* Página única: Cero Scroll */
}

body {
  font-family: var(--font-family-base);
  font-weight: var(--font-body-weight);
  font-style: var(--font-body-style);
  color: var(--color-text-primary);
  background-color: var(--color-bg-base);
  background-image: 
    radial-gradient(ellipse 90% 70% at 50% 50%, rgba(217, 4, 41, 0.14) 0%, rgba(0, 0, 0, 0.78) 100%),
    url('../assets/images/background.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Enfoque Accesible Universal */
:focus-visible {
  outline: 2px solid var(--color-accent-red-bright) !important;
  outline-offset: 3px !important;
}

/* --------------------------------------------------------------------------
   CONTENEDOR DE LA PÁGINA (PÁGINA ÚNICA / SINGLE VIEWPORT)
   -------------------------------------------------------------------------- */
.page-wrapper {
  height: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: var(--container-max-width);
  margin: 0 auto;
  width: 100%;
  padding: clamp(1rem, 2vh, 1.8rem) clamp(1.5rem, 3vw, 3rem) clamp(0.9rem, 1.8vh, 1.4rem);
  box-sizing: border-box;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   HARDWARE VISUAL STAGE (ASSETS FLANQUEANTES DE CAR AUDIO)
   -------------------------------------------------------------------------- */
.hardware-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Subwoofer Superior Izquierdo */
.hardware-subwoofer {
  position: absolute;
  top: 11%;
  left: -4.5%;
  width: clamp(260px, 27vw, 420px);
}

.hardware-subwoofer img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 35px rgba(217, 4, 41, 0.22));
  transform: rotate(-3deg);
}

/* Reproductor / Estéreo Izquierdo (Sobre el borde inferior del bajo) */
.hardware-player {
  position: absolute;
  top: calc(6% + clamp(230px, 24vw, 375px));
  left: -2%;
  width: clamp(230px, 24vw, 360px);
  z-index: 2;
}

.hardware-player img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 25px rgba(239, 35, 60, 0.28));
  transform: rotate(2deg);
}

/* Amplificador Superior Derecho */
.hardware-amplifier {
  position: absolute;
  top: 18%;
  right: -14%;
  width: clamp(420px, 43vw, 666px);
}

.hardware-amplifier img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 30px rgba(217, 4, 41, 0.2));
  transform: rotate(-2deg);
}

/* Set de Altavoces Inferior Derecho (Cercano al amplificador) */
.hardware-speakers {
  position: absolute;
  top: calc(31% + clamp(75px, 8.5vw, 125px));
  right: -2%;
  width: clamp(242px, 25vw, 380px);
  z-index: 2;
}

.hardware-speakers img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 28px rgba(217, 4, 41, 0.24));
  transform: rotate(1deg);
}

/* --------------------------------------------------------------------------
   CONTENIDO CENTRAL (MAIN CONTENT)
   -------------------------------------------------------------------------- */
.main-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  flex: 1;
  gap: clamp(0.5rem, 1.4vh, 1.15rem);
}

/* Logotipo Oficial */
.brand-header {
  margin-bottom: clamp(0.1rem, 0.6vh, 0.4rem);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  width: 100%;
  max-width: clamp(280px, 25vw, 360px);
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.85));
}

.brand-subtitle {
  font-size: clamp(0.92rem, 1.12vw, 1.1rem);
  font-weight: var(--font-subtitle-weight);
  font-style: var(--font-subtitle-style);
  color: var(--color-text-silver);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin: clamp(0.2rem, 0.4vh, 0.4rem) 0 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   BLOQUE DE TÍTULO PRINCIPAL
   -------------------------------------------------------------------------- */
.title-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Tagline Superior con Líneas Rojas */
.tagline-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
  width: 100%;
  margin-bottom: 0.1rem;
}

.tag-text {
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  font-weight: var(--font-subtitle-weight);
  font-style: var(--font-subtitle-style);
  color: var(--color-accent-red-bright);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  text-shadow: 0 0 10px rgba(239, 35, 60, 0.6);
}

.tag-line {
  height: 2px;
  flex: 1;
  max-width: clamp(60px, 8vw, 120px);
  box-shadow: 0 0 8px rgba(239, 35, 60, 0.8);
}

.tag-line-left {
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-red-bright) 100%);
}

.tag-line-right {
  background: linear-gradient(90deg, var(--color-accent-red-bright) 0%, transparent 100%);
}

/* Título Metálico EN CONSTRUCCIÓN */
.main-heading {
  font-size: clamp(2.9rem, 5.5vw, 4.9rem);
  font-weight: var(--font-title-weight);
  font-style: var(--font-title-style);
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: 0.02em;
  margin: 0.15rem 0 0.25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f0f0f8 42%, #b5b5c8 72%, #7c7c90 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.95));
}

/* Barra Lumínica Inferior */
.heading-glow-bar {
  width: 80%;
  max-width: 480px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--color-accent-red-bright) 50%, transparent 100%);
  margin: 0.15rem auto clamp(0.5rem, 1.2vh, 1rem);
  box-shadow: 0 0 18px rgba(239, 35, 60, 0.95), 0 0 35px rgba(217, 4, 41, 0.6);
  border-radius: 50%;
}

/* Descripción */
.main-description {
  font-size: clamp(0.98rem, 1.28vw, 1.15rem);
  font-weight: var(--font-body-weight);
  font-style: italic;
  color: #ffffff;
  line-height: 1.45;
  max-width: 620px;
  margin: 0 auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* --------------------------------------------------------------------------
   INSIGNIA CENTRAL (HEXÁGONO NEÓN)
   -------------------------------------------------------------------------- */
.badge-section {
  margin: clamp(0.3rem, 1vh, 0.8rem) 0 clamp(0.3rem, 0.8vh, 0.6rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.hexagon-badge {
  width: clamp(46px, 5.2vh, 54px);
  height: clamp(46px, 5.2vh, 54px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(10, 10, 14, 0.95);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  filter: drop-shadow(0 0 12px var(--color-accent-red-bright));
}

.hexagon-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--color-accent-red-bright) 0%, var(--color-accent-red-dark) 100%);
  z-index: 1;
}

.hexagon-badge::after {
  content: '';
  position: absolute;
  inset: 2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background-color: #0b0b0f;
  z-index: 2;
}

.hexagon-badge i {
  position: relative;
  z-index: 3;
  color: #ffffff;
  font-size: clamp(1.2rem, 1.5vw, 1.4rem);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

.badge-texts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.badge-subtitle {
  font-size: clamp(1rem, 1.18vw, 1.12rem);
  font-weight: var(--font-button-weight);
  font-style: normal;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.badge-tagline {
  font-size: clamp(1rem, 1.18vw, 1.12rem);
  font-weight: var(--font-tagline-weight);
  font-style: var(--font-tagline-style);
  color: var(--color-accent-red-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 14px rgba(239, 35, 60, 0.65);
}

/* --------------------------------------------------------------------------
   CAJA DE LLAMADO A LA ACCIÓN Y REDES SOCIALES
   -------------------------------------------------------------------------- */
.cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.5rem, 1.2vh, 0.9rem);
  transform: translateY(-10%);
  width: 85%;
  margin: 0 auto; /* centrar sección */
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.75rem, 1.2vw, 1.25rem);
  background-color: rgba(10, 10, 14, 0.9);
  border: 1.5px solid var(--color-accent-red-border);
  border-radius: var(--border-radius-lg);
  padding: clamp(0.65rem, 1.1vh, 0.85rem) clamp(1.1rem, 1.6vw, 1.6rem);
  width: 100%;
  max-width: 460px;
  box-shadow: 0 0 24px rgba(217, 4, 41, 0.2), inset 0 0 15px rgba(217, 4, 41, 0.08);
  backdrop-filter: blur(8px);
}

.cta-icon-wrapper {
  color: var(--color-accent-red-bright);
  font-size: clamp(1.3rem, 1.6vw, 1.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 10px rgba(239, 35, 60, 0.85));
}

.cta-text-content {
  flex: 1;
  text-align: center; /* centrar texto */
}

.cta-headline {
  text-align: center; /* centrar texto */
  font-size: clamp(0.92rem, 1.05vw, 0.98rem);
  font-weight: var(--font-body-medium-weight);
  font-style: normal;
  color: #ffffff;
  margin-bottom: 0.1rem;
}

.cta-subtext {
  text-align: center; /* centrar texto */
  font-size: clamp(0.85rem, 0.95vw, 0.9rem);
  font-weight: var(--font-body-weight);
  font-style: normal;
  color: var(--color-text-secondary);
}

.cta-arrow {
  display: none; /* ocultar flecha >> */
  opacity: 0.85;
  filter: drop-shadow(0 0 6px rgba(239, 35, 60, 0.6));
}

/* Botones Circulares de Redes Sociales */
.social-nav {
  width: 100%;
}

.social-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.75rem, 1.2vw, 1.15rem);
}

.social-button {
  width: clamp(40px, 4.6vh, 46px);
  height: clamp(40px, 4.6vh, 46px);
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
  background-color: var(--color-bg-button);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: clamp(1.1rem, 1.3vw, 1.25rem);
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75);
}

.social-button:hover {
  border-color: var(--color-accent-red-bright);
  background-color: #1a1a24;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 0 16px var(--color-accent-red-glow);
}

/* --------------------------------------------------------------------------
   PIE DE PÁGINA (CONTACTO Y UBICACIÓN)
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
  padding-top: clamp(0.4rem, 1vh, 0.8rem);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  max-width: 100%;
}

.footer-block {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1vw, 0.9rem);
}

/* Contact block position adjustment */
.contact-block {
  position: relative;
  transform: translate(3%, -20%);
}


.footer-icon-circle {
  width: clamp(36px, 4.2vh, 42px);
  height: clamp(36px, 4.2vh, 42px);
  min-width: 36px;
  min-height: 36px;
  border-radius: 50%;
  background-color: rgba(217, 4, 41, 0.12);
  border: 1.5px solid var(--color-accent-red-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-red-bright);
  font-size: clamp(1.15rem, 1.4vw, 1.35rem);
  filter: drop-shadow(0 0 8px rgba(239, 35, 60, 0.55));
}

.footer-block-info {
  text-align: left;
}

.footer-block-title {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: var(--font-subtitle-weight);
  font-style: var(--font-subtitle-style);
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.1rem;
  letter-spacing: 0.05em;
}

.footer-block-text {
  font-size: clamp(0.85rem, 0.95vw, 0.95rem);
  font-weight: var(--font-body-weight);
  color: var(--color-text-silver);
  line-height: 1.3;
}

.footer-block-text a {
  color: inherit;
  transition: color var(--transition-fast);
}

.footer-block-text a:hover {
  color: var(--color-accent-red-bright);
}

/* --------------------------------------------------------------------------
   PREFERENCIA DE MOVIMIENTO REDUCIDO
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
