/* ==========================================================================
   BRANG! STUDIO — BRAND IDENTITY & DESIGN SYSTEM
   Propuesta Comercial Cocinas Nuevas Tendencias (V2 — Enhanced Visual)
   ========================================================================== */

:root {
  /* Color System */
  --bg-primary: #050505;
  --bg-surface: rgba(255, 255, 255, 0.05);
  --bg-surface-hover: rgba(255, 255, 255, 0.09);
  
  --border-subtle: rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 255, 255, 0.35);
  
  /* Text Contrast - Improved Readability */
  --text-main: #FFFFFF;
  --text-readable: #D4D4D8; /* Gris muy claro / Casi blanco para lectura óptima */
  --text-muted: #A1A1AA;
  --text-subtle: #71717A;
  
  /* Enhanced Glassmorphism */
  --glass-bg: rgba(20, 20, 25, 0.75);
  --glass-border: rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(20px);
  
  /* Typography: Montserrat */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Layout */
  --max-width: 1200px;
  --nav-height: 90px;
}

/* Reset & Base Settings */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-primary);
  font-family: var(--font-family);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-family);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-main);
}

p {
  color: var(--text-readable);
}

.dot {
  color: #FFFFFF;
  opacity: 0.4;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.grid {
  display: grid;
  gap: 32px;
}

.grid--2col {
  grid-template-columns: 1fr 1fr;
}

.border-top {
  border-top: 1px solid var(--border-subtle);
}

.pt-6 { padding-top: 24px; }
.pt-8 { padding-top: 32px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }
.text-center { text-align: center; }

.text-large {
  font-size: 1.2rem;
  line-height: 1.6;
  font-weight: 400;
}

.text-readable { color: var(--text-readable); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-main); }
.text-subtle { font-size: 0.875rem; color: var(--text-subtle); }

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.nav__logo-link {
  display: flex;
  align-items: center;
}

/* LOGO MÁS GRANDE */
.nav__logo {
  height: 38px;
  width: auto;
  display: block;
  transition: transform 0.3s ease;
}

.nav__logo:hover {
  transform: scale(1.03);
}

.nav__tag {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-readable);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.badge--dim {
  color: var(--text-readable);
}

/* Hero Section Con Imagen de Fondo Fondo-Banner-033.jpg */
.hero {
  position: relative;
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 110px;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background-image: url('https://brang.studio/wp-content/uploads/2026/08/Fondo-Banner-033.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(5,5,5,0.7) 0%, rgba(5,5,5,0.92) 100%);
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__meta {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero__title {
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 720px;
  margin-bottom: 40px;
  font-weight: 400;
  color: var(--text-readable);
}

.btn-scroll {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  border-bottom: 2px solid var(--border-active);
  padding-bottom: 6px;
  transition: all 0.3s ease;
}

.btn-scroll:hover {
  border-color: var(--text-main);
  transform: translateY(2px);
}

/* Sections Global Structure */
.section {
  padding: 100px 0;
}

.section-num {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 40px;
  max-width: 850px;
}

.section-desc {
  font-size: 1.15rem;
  color: var(--text-readable);
  max-width: 680px;
  margin-bottom: 40px;
}

/* Glassmorphic Cards (Visibilidad Aumentada) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 16px;
  padding: 36px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: var(--border-active);
  background: rgba(30, 30, 38, 0.85);
  transform: translateY(-4px);
}

.glass-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.glass-card__num {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

.glass-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.glass-card__title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.glass-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-readable);
}

/* Section 04: Frentes Grid */
.frentes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.frente-item__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-subtle);
  display: block;
  margin-bottom: 12px;
}

.frente-item__title {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.frente-item__text {
  font-size: 1.05rem;
  color: var(--text-readable);
}

/* GUÍA EXPLICATIVA DE CALCULADORA */
.calc-guide {
  border-left: 4px solid var(--text-main);
}

.calc-guide__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.calc-guide__header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.calc-guide__text {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-readable);
}

/* Interactive Services & Calculator Section */
.services-wrapper {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
}

.service-card {
  background: rgba(20, 20, 25, 0.65);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.service-card:hover {
  background: rgba(30, 30, 38, 0.8);
  border-color: var(--border-active);
}

.service-card--selected {
  border-color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05);
}

.service-card--fixed {
  cursor: default;
}

.service-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.service-card__title {
  font-size: 1.25rem;
  font-weight: 700;
}

.service-card__badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-readable);
}

.service-card__badge--fixed {
  background: rgba(255, 255, 255, 0.25);
  color: var(--text-main);
}

.service-card__price {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.service-card__text {
  color: var(--text-readable);
  font-size: 0.92rem;
}

/* Calculator Summary Panel */
.summary-panel {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  background: rgba(15, 15, 20, 0.85);
}

.summary-panel__tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.summary-panel__title {
  font-size: 1.1rem;
  color: var(--text-readable);
  margin-bottom: 8px;
}

.summary-panel__price {
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.summary-panel__divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 24px 0;
}

.summary-panel__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.summary-panel__services {
  font-size: 0.95rem;
  color: var(--text-main);
  min-height: 48px;
  line-height: 1.5;
}

/* Scope Notice (Actualización Web) */
.scope-notice {
  margin-top: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border-subtle);
  border-radius: 10px;
}

.scope-notice__title {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.scope-notice__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.scope-notice__text {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-readable);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 18px 32px;
  background: var(--text-main);
  color: #000000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 10px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.btn-primary:hover {
  background: #E5E5E5;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

.btn-primary--lg {
  padding: 22px 48px;
  font-size: 1.1rem;
}

/* Accordion Component */
.accordion-group {
  border-top: 1px solid var(--border-subtle);
}

.accordion-item {
  border-bottom: 1px solid var(--border-subtle);
}

.accordion-header {
  width: 100%;
  padding: 24px 0;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-item--active .accordion-content {
  padding-bottom: 24px;
}

.accordion-item--active .accordion-icon {
  transform: rotate(45deg);
}

/* SECCIÓN PROCESO: CARDS VISIBLES + SECUENCIA CON CONECTORES */
.process-sequence {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.process-card {
  flex: 1;
  min-width: 180px;
  padding: 28px 20px;
  background: rgba(20, 20, 25, 0.8);
  border: 1px solid var(--glass-border);
}

.process-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.process-card__num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-muted);
}

.process-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.process-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.process-card p {
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-readable);
}

.process-connector {
  color: var(--text-muted);
  opacity: 0.5;
  display: flex;
  align-items: center;
}

/* Time Big Indicator */
.time-big {
  font-size: 3.5rem;
  line-height: 1;
  font-weight: 900;
}

.time-unit {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* Investment & Conditions */
.display-price {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1;
}

.condiciones-list {
  list-style: none;
}

.condiciones-list li {
  font-size: 0.95rem;
  color: var(--text-readable);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.condiciones-list li::before {
  content: "— ";
  color: var(--text-muted);
  font-weight: 700;
}

/* SECTION CLOSING CON IMAGEN Fondo_menu_brang.webp */
.section--closing {
  position: relative;
  padding: 140px 0;
  background-image: url('https://brang.studio/wp-content/uploads/2026/08/Fondo_menu_brang.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-top: 1px solid var(--border-subtle);
}

.section--closing__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.85);
  z-index: 1;
}

.section--closing__container {
  position: relative;
  z-index: 2;
}

.closing-title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
}

.closing-desc {
  font-size: 1.25rem;
  max-width: 620px;
  margin: 0 auto;
  color: var(--text-readable);
}

/* FOOTER BRANG! STUDIO ENHANCED */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0;
  background: #000000;
}

.footer__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 32px;
}

/* LOGO EN FOOTER MÁS GRANDE */
.footer__logo {
  height: 32px;
  width: auto;
  margin-bottom: 8px;
}

.footer__tagline {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-readable);
}

.footer__links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-readable);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text-main);
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Media Queries */
@media (max-width: 1024px) {
  .process-sequence {
    flex-direction: column;
    align-items: stretch;
  }

  .process-connector {
    justify-content: center;
    transform: rotate(90deg);
    margin: -8px 0;
  }
}

@media (max-width: 900px) {
  .services-wrapper {
    grid-template-columns: 1fr;
  }
  
  .summary-panel {
    position: static;
  }

  .frentes-grid, .grid--2col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 60px 0;
  }
  
  .hero {
    padding-top: calc(var(--nav-height) + 40px);
  }
  
  .nav__tag {
    display: none;
  }
  
  .footer__container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__links {
    flex-direction: column;
    gap: 16px;
  }
}

/* Accessibility */
@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;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
