/* ========================================
   Base tokens and resets
   ----------------------------------------
   Purpose: define the color palette, typography scale, spacing rhythm
   and common utilities shared across the landing page.
   ======================================== */
:root {
  --color-bg: #ffffff;
  --color-muted: #edefeb;
  --color-text: #1a1a1a;
  --color-subtle: #6b7280;
  --color-primary: #0f172a;
  --color-accent: #111827;
  --shadow-soft: 0 30px 60px rgba(27, 31, 10, 0.08);
  --radius-lg: 24px;
  --radius-full: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
}

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

.section-padding {
  padding: 6rem 0;
}

.muted-bg {
  background: var(--color-muted);
}

.display-1 {
  font-size: clamp(2.25rem, 3vw + 1.5rem, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
}

.display-2 {
  font-size: clamp(1.75rem, 2vw + 1.25rem, 3rem);
  font-weight: 600;
  line-height: 1.15;
}

.lead {
  font-size: 1.125rem;
}

.eyebrow {
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.85rem;
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

/* ========================================
   Navigation
   ----------------------------------------
   Purpose: keep the navbar readable, sticky, and easy to trigger on mobile.
   ======================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.navbar {
  padding: 1rem 0;
}

.navbar .container {
  background: transparent;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-soft);
  padding: 0.75rem 1.5rem;
}

.navbar-brand {
  font-weight: 700;
  color: var(--color-primary);
}

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-right: 0.5rem;
}

.brand-name {
  font-size: 2.25rem;
}

.navbar-nav .nav-link {
  font-weight: bold;
  font-size: 1.15rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-full);
  color: #000000;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  background: #1a1a1a2f;
  font-weight: 500;
}

.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ========================================
   Buttons
   ----------------------------------------
   Purpose: unify call-to-action styling and hover behavior.
   ======================================== */
.btn {
  border-radius: var(--radius-full);
  padding: 0.85rem 1.75rem;
  font-weight: 600;
}

.btn-primary {
  background: linear-gradient(135deg, #0f172a, #111827);
  border: 1px solid #0f172a;
  color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #0f172a, #0b1223);
  color: #ffffff;
}

.btn-outline-dark {
  border: 1px solid #111827;
  color: #111827;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background: #1a1a1a;
  color: #ffffff;
}

.btn-link {
  color: var(--color-primary);
  font-weight: 600;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ========================================
   Hero
   ----------------------------------------
   Purpose: set the hero layout, spacing, and imagery framing.
   ======================================== */
.hero {
  padding-top: 7rem;
}

.hero .hero-media img {
  border-radius: var(--radius-lg);
}

/* ========================================
   Sections & cards
   ----------------------------------------
   Purpose: share consistent spacing, backgrounds, and typography
   for feature, team, and contact cards.
   ======================================== */
.section-header {
  max-width: 720px;
  margin: 0 auto 2rem;
}

.feature-card,
.team-card,
.contact-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: center;
}

.team-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  width: 100%;
}

.team-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.feature-body,
.contact-card {
  padding: 1.75rem 1.75rem 1.5rem;
}
.team-card {
  padding: 0;
}
.team-body {
  padding: 1.75rem 1.75rem 1.5rem;
}

.feature-title,
.team-name,
.contact-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.feature-text,
.contact-text,
.team-role {
  color: var(--color-subtle);
  margin-bottom: 0.75rem;
}

.team-name {
  margin-top: 1rem;
}

.team-role {
  font-size: 0.95rem;
}

.team-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.team-col {
  flex: 1 1 200px;
  max-width: 220px;
  min-width: 200px;
  display: flex;
}

.team-col .team-card {
  width: 100%;
}

.contact-card {
  text-align: left;
}

.contact-header {
  margin-bottom: 0;
}

.contact-link {
  color: var(--color-primary);
  font-weight: 600;
}

.contact-link:hover {
  text-decoration: underline;
}

/* ========================================
   FAQ / Accordion
   ----------------------------------------
   Purpose: reinforce readability and add a clear affordance to toggles.
   ======================================== */
.accordion-item {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin-bottom: 1rem;
}

.accordion-button {
  font-weight: 600;
  color: var(--color-primary);
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background: rgba(15, 23, 42, 0.06);
  color: var(--color-primary);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(15, 23, 42, 0.2);
}

.accordion-body {
  color: var(--color-text);
  padding: 0 1.5rem 1.5rem;
}


.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.22);
}

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

/* ========================================
   Social & footer
   ----------------------------------------
   Purpose: keep social icons uniform and footer minimal.
   ======================================== */
.social-list .social-link {
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.bg-facebook {
  background: #1778f2;
}

.bg-twitter {
  background: #1da1f2;
}

.bg-instagram {
  background: #f00075;
}

.bg-linkedin {
  background: #0077b5;
}

.bg-youtube {
  background: #ff0000;
  color: #ffffff;
}

.bg-whatsapp {
  background: #25d366;
  color: #ffffff;
}

.footer {
  background: #0f172a;
  color: #e5e7eb;
}

.footer .text-muted {
  color: #cbd5e1 !important;
}

/* ========================================
   Responsive tweaks
   ----------------------------------------
   Purpose: adjust spacings and alignments for smaller screens.
   ======================================== */
@media (max-width: 991px) {
  .navbar .container {
    border-radius: 18px;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .feature-media img {
    height: 220px;
  }

  .team-row {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .team-col {
    flex: 1 1 240px;
    max-width: 320px;
  }
}

@media (max-width: 991px) {
  .site-nav {
    z-index: 2000;
  }

  .navbar .container {
    position: relative;
  }

  .navbar-collapse,
  .navbar-collapse.show,
  .navbar-collapse.collapsing {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    margin-top: 0.75rem;
    padding: 0.75rem;
    position: relative;
    z-index: 2100;
  }

  .navbar-nav {
    align-items: stretch;
    gap: 0.5rem;
  }

  .navbar-nav .nav-link {
    background: rgba(248, 249, 247, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 14px;
    color: var(--color-primary);
    padding: 0.85rem 1rem;
    text-align: center;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
    width: 100%;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    background: #eef1ee;
    color: var(--color-primary);
  }

  .navbar-collapse .ms-lg-3 {
    display: flex;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 575px) {
  .navbar .container {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding-top: 5.5rem;
  }

  .display-1 {
    font-size: clamp(1.9rem, 6vw + 1rem, 2.6rem);
  }

  .display-2 {
    font-size: clamp(1.6rem, 4vw + 1rem, 2.2rem);
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
  }

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

  /* sección del contactenos */
  .contact-container {
    display: flex; /* 🔥 CLAVE */
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
  }

  .contact-left {
    flex: 1;
  }

  .contact-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .contact-item {
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
  }

  .contact-item strong {
    display: block;
    font-size: 16px;
  }

  .contact-item span {
    color: #555;
  }

  .contact-container {
    border: 2px solid red;
  }

  .contact-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .contact-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
  }

  .contact-text {
    font-size: 16px;
    color: #555;
    margin: 0;
  }

  .contact-link {
    color: inherit;
    text-decoration: none;
  }

  .contact-link:hover {
    text-decoration: underline;
  }

  .card-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .card-image img {
    max-width: 120px;
    height: auto;
    object-fit: contain;
  }

  .card-image-contact {
    width: 100%;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* .contact-card-image {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 32px 36px;
    border-radius: 18px;
    padding: 1.75rem 1.75rem 1.5rem;
    text-align: left;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  } */

  /* ========================================
   Form Styles 
   ======================================== */

  /* Fondo suave */
  .muted-bg {
    background-color: #f8f9f7;
  }

  /* Espaciado de sección */
  .section-padding {
    padding: 5rem 0;
  }

  /* Encabezado */
  .eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #6c757d;
    margin-bottom: 0.5rem;
  }

  /* Formulario */
  .contact-form {
    background: #f5f5f5;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  }

  /* Inputs */
  .contact-form .form-control {
    border-radius: 12px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    font-size: 0.95rem;
  }

  .contact-form .form-control:focus {
    border-color: #4da6ff;
    box-shadow: 0 0 0 0.15rem rgba(77, 166, 255, 0.25);
  }

  /* Botón */
  .btn-primary {
    background-color: #ff6b00;
    border: none;
    padding: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
  }

  .btn-primary:hover {
    background-color: #e85f00;
  }
}
