@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   DESIGN SYSTEM VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --color-primary: #FF7A00;
  --color-primary-light: #FF9A33;
  --color-primary-dark: #CC6200;
  --color-secondary: #FFC107;
  --color-secondary-light: #FFD451;
  
  --color-gray-900: #3D3D3D;
  --color-gray-700: #6A7991;
  --color-gray-500: #9BA8B5;
  --color-gray-200: #E8ECF0;
  --color-gray-100: #F5F1ED;
  --color-white: #FFFFFF;
  
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;
  --color-success: #22C55E;
  --color-trust: #1E3A8A;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.14);
  --shadow-orange: 0 4px 20px rgba(255, 122, 0, 0.30);
  --shadow-green: 0 4px 20px rgba(37, 211, 102, 0.30);
}

/* ==========================================================================
   BASE & RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Poppins', sans-serif;
  color: var(--color-gray-700);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-white);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Scroll Lock */
body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-gray-900);
  font-weight: 700;
  line-height: 1.2;
}

.display-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 28px;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

.body-large {
  font-size: 16px;
  color: var(--color-gray-900);
}

.body-text {
  font-size: 15px;
  color: var(--color-gray-700);
}

.small-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Media Queries for Desktop Scale */
@media (min-width: 992px) {
  .display-title {
    font-size: 56px;
  }
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 32px;
  }
  h3 {
    font-size: 24px;
  }
  .body-large {
    font-size: 18px;
  }
  .body-text {
    font-size: 16px;
  }
  .small-label {
    font-size: 13px;
  }
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-6);
  }
}

.section {
  padding: var(--space-12) 0;
}

@media (min-width: 992px) {
  .section {
    padding: var(--space-24) 0;
  }
}

.bg-beige {
  background-color: var(--color-gray-100);
}

.bg-orange {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.bg-orange h1, .bg-orange h2, .bg-orange h3, .bg-orange p {
  color: var(--color-white);
}

.bg-dark {
  background-color: var(--color-gray-900);
  color: var(--color-white);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark p {
  color: var(--color-white);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  gap: var(--space-2);
}

@media (min-width: 992px) {
  .btn {
    font-size: 16px;
    padding: 16px 32px;
  }
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 122, 0, 0.40);
}

.btn-primary:active {
  background-color: var(--color-primary-dark);
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 12px 26px; /* Account for border */
}

@media (min-width: 992px) {
  .btn-secondary {
    padding: 14px 30px;
  }
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-white-outline {
  background-color: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  padding: 12px 26px;
}

@media (min-width: 992px) {
  .btn-white-outline {
    padding: 14px 30px;
  }
}

.btn-white-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-white-outline:active {
  transform: translateY(0);
}

.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: var(--shadow-green);
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.40);
}

/* Float WhatsApp Button */
.float-whatsapp {
  position: fixed;
  bottom: 16px;
  right: 16px;
  width: 56px;
  height: 56px;
  background-color: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.float-whatsapp svg {
  width: 28px;
  height: 28px;
}

.float-whatsapp:hover {
  background-color: var(--color-whatsapp-dark);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.40);
}

@media (min-width: 992px) {
  .float-whatsapp {
    bottom: 24px;
    right: 24px;
  }
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  z-index: 999;
  transition: all 0.3s ease;
}

/* Transparency at startup when over Hero */
.header.transparent {
  background-color: transparent;
}

.header.solid {
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  height: 80px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.logo-img {
  height: 64px;
  margin-top: -12px;
  margin-bottom: -12px;
  width: auto;
  transition: all 0.3s ease;
}

@media (min-width: 992px) {
  .logo-img {
    height: 110px;
    margin-top: -30px;
    margin-bottom: -30px;
  }
}

/* Nav Menu Desktop */
.nav-menu {
  display: none;
}

.nav-actions {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    gap: var(--space-8);
  }

  .nav-link {
    font-weight: 500;
    font-size: 15px;
    color: var(--color-gray-700);
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
  }

  .nav-link:hover {
    color: var(--color-primary);
  }

  .nav-link:hover::after {
    width: 100%;
  }

  .nav-actions {
    display: flex;
    align-items: center;
  }

  .nav-actions .btn {
    padding: 8px 20px;
    font-size: 14px;
  }
}

/* Hamburger Button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-gray-900);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

/* Transparent mode: if hero is white, hamburger is dark. If hero is orange, hamburger is white. Let's make it change color depending on section background, but default is dark. */
.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background-color: var(--color-white);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 88px var(--space-6) var(--space-8) var(--space-6);
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.mobile-nav-link {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-gray-900);
  padding: var(--space-2) 0;
  display: block;
  border-bottom: 1px solid var(--color-gray-200);
}

.mobile-nav-link:hover {
  color: var(--color-primary);
  padding-left: var(--space-2);
}

.mobile-nav-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Backdrop */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  z-index: 998;
  transition: all 0.3s ease;
}

.backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 120px;
  padding-bottom: var(--space-16);
  background-color: var(--color-gray-100);
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .hero-section {
    padding-top: 180px;
    padding-bottom: var(--space-24);
    min-height: 90vh;
    display: flex;
    align-items: center;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 122, 0, 0.1);
  color: var(--color-primary-dark);
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .hero-badge {
    font-size: 12px;
    padding: 8px 16px;
  }
}

.hero-title {
  margin-bottom: var(--space-4);
  color: var(--color-gray-900);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--color-gray-700);
  margin-bottom: var(--space-8);
  max-width: 540px;
}

@media (min-width: 992px) {
  .hero-subtitle {
    font-size: 18px;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

@media (min-width: 576px) {
  .hero-ctas {
    flex-direction: row;
  }
}

.hero-trust-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-gray-700);
  gap: var(--space-2);
}

.hero-trust-item svg {
  color: var(--color-primary);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

@media (min-width: 576px) {
  .hero-trust-bar {
    flex-direction: row;
    gap: var(--space-6);
  }
}

/* Hero graphic / mockups */
.hero-graphic {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-circle-bg {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.22) 0%, rgba(255, 122, 0, 0) 70%);
  border-radius: var(--radius-full);
  z-index: -1;
}

.hero-logo-card {
  background-color: transparent;
  padding: var(--space-4);
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: none;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.hero-logo-card:hover {
  transform: translateY(-5px);
}

.hero-logo-card img {
  max-width: 200px;
  margin-bottom: var(--space-4);
  filter: drop-shadow(0 4px 12px rgba(255, 122, 0, 0.15));
}

.hero-logo-card p {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-gray-900);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (min-width: 992px) {
  .hero-circle-bg {
    width: 520px;
    height: 520px;
  }
  .hero-logo-card {
    max-width: 400px;
    padding: var(--space-6);
  }
  .hero-logo-card img {
    max-width: 280px;
  }
}

/* Decorative brand elements */
.hero-decor-arrow {
  position: absolute;
  bottom: 20px;
  left: 5%;
  opacity: 0.2;
  width: 80px;
  display: none; /* Hide on mobile to avoid clutter */
}

@media (min-width: 992px) {
  .hero-decor-arrow {
    display: block;
  }
}

/* ==========================================================================
   SECTION HEADER UTILITY
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-12) auto;
}

.section-eyebrow {
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.section-title {
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: 15px;
  color: var(--color-gray-700);
}

@media (min-width: 992px) {
  .section-subtitle {
    font-size: 17px;
  }
}

/* ==========================================================================
   POR QUE GM SECTION
   ========================================================================== */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background-color: var(--color-white);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 122, 0, 0.2);
}

.feature-icon-wrapper {
  background-color: rgba(255, 122, 0, 0.1);
  color: var(--color-primary);
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
}

.feature-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-gray-700);
}

/* ==========================================================================
   CREDITOS SECTION (USOS)
   ========================================================================== */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .credits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
  }
}

@media (min-width: 992px) {
  .credits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.credit-card {
  background-color: var(--color-white);
  padding: var(--space-4); /* More compact padding for mobile */
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-200);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .credit-card {
    padding: var(--space-6);
  }
}

.credit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(255, 122, 0, 0.2);
}

.credit-icon-wrapper {
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
  .credit-icon-wrapper {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-4);
  }
}

.credit-icon-wrapper svg {
  width: 32px;
  height: 32px;
}

.credit-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-2);
}

@media (min-width: 768px) {
  .credit-title {
    font-size: 16px;
  }
}

.credit-desc {
  font-size: 13px;
  color: var(--color-gray-700);
  line-height: 1.4;
  display: none; /* Hide body on mobile as per UX recommendations */
}

@media (min-width: 768px) {
  .credit-desc {
    display: block;
    font-size: 14px;
  }
}

/* ==========================================================================
   QUIEN PUEDE SOLICITAR
   ========================================================================== */
.eligibility-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 992px) {
  .eligibility-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.eligibility-requirements {
  background-color: var(--color-gray-100);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-200);
}

@media (min-width: 768px) {
  .eligibility-requirements {
    padding: var(--space-8);
  }
}

.requirements-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.requirement-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-gray-900);
}

.requirement-item svg {
  color: var(--color-success);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.eligibility-profiles {
  display: flex;
  flex-direction: column;
}

.profiles-title {
  margin-bottom: var(--space-4);
}

.profiles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.profile-tag {
  background-color: var(--color-gray-100);
  color: var(--color-gray-700);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--color-gray-200);
}

/* ==========================================================================
   COMO FUNCIONA (3 PASOS)
   ========================================================================== */
.steps-wrapper {
  position: relative;
  margin-bottom: var(--space-12);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  position: relative;
}

@media (min-width: 992px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-12);
  }
}

.step-card {
  position: relative;
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

@media (min-width: 992px) {
  .step-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0;
  }
}

.step-icon-num {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-number {
  width: 32px;
  height: 32px;
  background-color: var(--color-white);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  position: absolute;
  top: -8px;
  right: -8px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.step-icon-circle {
  width: 64px;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  z-index: 1;
  transition: all 0.3s ease;
}

.step-icon-circle svg {
  width: 30px;
  height: 30px;
}

.step-card:hover .step-icon-circle {
  transform: scale(1.1);
  background-color: rgba(255, 255, 255, 0.25);
}

.step-content {
  flex: 1;
}

@media (min-width: 992px) {
  .step-icon-num {
    margin-bottom: var(--space-6);
  }
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.step-desc {
  font-size: 14px;
  opacity: 0.9;
  line-height: 1.5;
}

/* Connector Line on Mobile */
.steps-connector-mobile {
  position: absolute;
  top: 32px;
  left: 32px;
  bottom: 32px;
  width: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  z-index: 0;
}

@media (min-width: 992px) {
  .steps-connector-mobile {
    display: none;
  }
}

/* Connector Line on Desktop */
.steps-connector-desktop {
  display: none;
}

@media (min-width: 992px) {
  .steps-connector-desktop {
    display: block;
    position: absolute;
    top: 32px;
    left: 15%;
    width: 70%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.2);
    z-index: 0;
  }
}

.steps-cta-wrapper {
  text-align: center;
}

/* ==========================================================================
   SUCURSAL SECTION
   ========================================================================== */
.sucursal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 992px) {
  .sucursal-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-12);
  }
}

.sucursal-info {
  display: flex;
  flex-direction: column;
}

.sucursal-title {
  margin-bottom: var(--space-4);
}

.sucursal-subtitle {
  font-size: 15px;
  color: var(--color-gray-700);
  margin-bottom: var(--space-8);
}

.sucursal-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.sucursal-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 15px;
  color: var(--color-gray-900);
}

.sucursal-detail-item svg {
  color: var(--color-primary);
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.sucursal-detail-item strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-700);
  margin-bottom: 2px;
}

.sucursal-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 576px) {
  .sucursal-ctas {
    flex-direction: row;
  }
}

.sucursal-map-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
}

@media (min-width: 992px) {
  .sucursal-map-wrapper {
    height: 420px;
  }
}

.sucursal-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-12);
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(255, 122, 0, 0.15);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) var(--space-6);
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-gray-900);
  gap: var(--space-4);
  transition: color 0.3s ease;
}

@media (min-width: 768px) {
  .faq-trigger {
    font-size: 16px;
    padding: var(--space-6) var(--space-8);
  }
}

.faq-trigger:hover {
  color: var(--color-primary);
}

.faq-trigger-icon {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-trigger-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content-inner {
  padding: 0 var(--space-6) var(--space-4) var(--space-6);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-gray-700);
}

@media (min-width: 768px) {
  .faq-content-inner {
    padding: 0 var(--space-8) var(--space-6) var(--space-8);
    font-size: 15px;
  }
}

.faq-cta-wrapper {
  text-align: center;
}

/* ==========================================================================
   NEGOFIN SECTION
   ========================================================================== */
.negofin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 992px) {
  .negofin-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.negofin-brand {
  display: flex;
  flex-direction: column;
}

.negofin-eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  margin-bottom: var(--space-3);
}

.negofin-logo {
  height: 56px;
  width: auto;
  max-width: 240px;
  margin-bottom: var(--space-6);
}

.negofin-desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.9;
}

.negofin-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 576px) {
  .negofin-stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

.negofin-stat-card {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.03);
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.negofin-stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.negofin-stat-label {
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-white);
  opacity: 0.8;
}

/* ==========================================================================
   CONTACTO SECTION
   ========================================================================== */
.contacto-card {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-8) var(--space-6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 992px) {
  .contacto-card {
    padding: var(--space-16) var(--space-8);
  }
}

/* Decorative background elements */
.contacto-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: var(--radius-full);
  z-index: 0;
  pointer-events: none;
}

.contacto-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contacto-title {
  color: var(--color-white);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: var(--space-3);
}

@media (min-width: 992px) {
  .contacto-title {
    font-size: 40px;
  }
}

.contacto-subtitle {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: var(--space-8);
}

@media (min-width: 992px) {
  .contacto-subtitle {
    font-size: 18px;
  }
}

.contacto-ctas {
  margin-bottom: var(--space-8);
}

.contacto-info-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contacto-info-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 14px;
  white-space: nowrap;
}

.contacto-info-item svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 576px) {
  .contacto-info-items {
    flex-direction: row;
    gap: var(--space-8);
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--color-gray-900);
  color: var(--color-gray-500);
  padding: var(--space-12) 0 var(--space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.2fr 0.8fr 1fr;
  }
}

.footer-brand-logo {
  height: 64px;
  width: auto;
  margin-bottom: var(--space-4);
  /* Make logo visible on dark background */
  filter: brightness(0) invert(1);
  transition: height 0.3s ease;
}

@media (min-width: 768px) {
  .footer-brand-logo {
    height: 80px;
  }
}

.footer-brand-tagline {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: var(--space-4);
}

.footer-title {
  color: var(--color-white);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-link {
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--color-white);
}

.footer-contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 14px;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-socials {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.footer-social-link:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: 12px;
}

.footer-bottom-text {
  line-height: 1.5;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-legal-link {
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-legal-link:hover {
  color: var(--color-white);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-gray-900);
  color: var(--color-white);
  padding: var(--space-4) 0;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 1001;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 2px solid var(--color-primary);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  text-align: center;
}

.cookie-text {
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.9;
}

.cookie-text a {
  text-decoration: underline;
  color: var(--color-primary-light);
}

.cookie-actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
}

.cookie-btn-accept {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  transition: background-color 0.3s ease;
}

.cookie-btn-accept:hover {
  background-color: var(--color-primary-light);
}

.cookie-btn-decline {
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
}

.cookie-btn-decline:hover {
  border-color: var(--color-white);
  background-color: rgba(255,255,255,0.05);
}

@media (min-width: 768px) {
  .cookie-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   LEGAL PAGES LAYOUT
   ========================================================================== */
.legal-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-gray-200);
  height: 80px;
  display: flex;
  align-items: center;
}

.legal-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.btn-back-home {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-back-home:hover {
  color: var(--color-primary-light);
}

.legal-body {
  padding: var(--space-12) 0;
  background-color: var(--color-white);
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 28px;
  margin-bottom: var(--space-3);
  color: var(--color-gray-900);
}

.legal-content .meta {
  font-size: 13px;
  color: var(--color-gray-500);
  margin-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-gray-200);
  padding-bottom: var(--space-4);
}

.legal-content h2 {
  font-size: 20px;
  margin: var(--space-8) 0 var(--space-4) 0;
  color: var(--color-gray-900);
}

.legal-content h3 {
  font-size: 16px;
  margin: var(--space-6) 0 var(--space-3) 0;
  color: var(--color-gray-900);
}

.legal-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin-bottom: var(--space-4);
}

.legal-content ul, .legal-content ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

.legal-content li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-gray-700);
  margin-bottom: var(--space-2);
}

.legal-content ul {
  list-style-type: disc;
}

.legal-content ol {
  list-style-type: decimal;
}

.legal-section-block {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-gray-200);
}

.legal-section-block:last-child {
  border-bottom: none;
}

/* Transparencia specific components */
.transparencia-card {
  background-color: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

@media (min-width: 576px) {
  .transparencia-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.transparencia-card-info {
  flex: 1;
}

.transparencia-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-gray-900);
  margin-bottom: var(--space-1);
}

.transparencia-card-desc {
  font-size: 14px;
  color: var(--color-gray-700);
}

.transparencia-card-action {
  flex-shrink: 0;
}

.reclamos-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.reclamo-item {
  display: flex;
  gap: var(--space-3);
  font-size: 15px;
}

.reclamo-item svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
