/* ==========================================================================
   MÁSDUEÑOS POR TAPIOLA - LANDING PAGE STYLES
   Mobile-First, Pure CSS3, Fully Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FUENTE: ALEXANDRIA (local, 9 variantes)
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Alexandria';
  src: url('../assets/fonts/Alexandria-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alexandria';
  src: url('../assets/fonts/Alexandria-ExtraLight.ttf') format('truetype');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alexandria';
  src: url('../assets/fonts/Alexandria-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alexandria';
  src: url('../assets/fonts/Alexandria-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alexandria';
  src: url('../assets/fonts/Alexandria-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alexandria';
  src: url('../assets/fonts/Alexandria-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alexandria';
  src: url('../assets/fonts/Alexandria-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alexandria';
  src: url('../assets/fonts/Alexandria-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Alexandria';
  src: url('../assets/fonts/Alexandria-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & COLOR PALETTE
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-primary: #e53935;
  --color-primary-hover: #c62828;
  --color-primary-dark: #b71c1c;
  --color-primary-light: #ffebee;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1eaa53;

  /* Neutral Tones */
  --color-dark: #18181b;
  --color-dark-muted: #3f3f46;
  --color-body: #4b5563;
  --color-gray-light: #f8f9fa;
  --color-gray-border: #e5e7eb;
  --color-white: #ffffff;

  /* Typography */
  --font-family-sans: 'Alexandria', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --header-height: 72px;
  
  /* Shadows & Effects */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-family-sans);
  color: var(--color-body);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Section Tag / Eyebrow */
.section-tag {
  display: inline-block;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.section-tag--white {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 20px;
}

#equipo .team-info-box .section-tag {
 color: #E52C28;
font-family: Poppins;
font-size: 20px;
font-style: normal;
font-weight: 700;
line-height: 16px; /* 80% */
letter-spacing: 0.6px;
text-transform: uppercase;
margin-bottom: 20px;
}

/* Section Headers */
.section-header {
  margin-bottom: 2.5rem;
}

.section-header--center {
  text-align: center;
}

.section-title {
  font-size: 1.875rem;
  font-weight: 900;
  color: var(--color-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subtitle {
 color: #333;
font-family: Alexandria;
font-size: 22px;
font-style: normal;
font-weight: 400;
line-height: 32px; /* 145.455% */
}

/* --------------------------------------------------------------------------
   3. REUSABLE BUTTONS & BADGES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(229, 57, 53, 0.35);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.45);
}

.btn-white {
  background-color: var(--color-white);
  color: var(--color-primary);
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
}

.btn-white:hover {
  background-color: #fefefe;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid #E52C28;
  color: #E52C28;
text-align: center;
font-family: Poppins;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 24px; /* 150% */
}

.btn-outline:hover {
  border-color: var(--color-dark);
  background-color: rgba(0,0,0,0.02);
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  object-fit: contain;
  flex-shrink: 0;
}

.badge-units {
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   4. MAIN HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  height: var(--header-height);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow var(--transition-normal);
}

.main-header.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 900;
  color: var(--color-dark);
  font-size: 1.25rem;
}

.brand-logo__img {
  height: 46px;
  width: auto;
  display: block;
}

.brand-logo__mark {
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 1.1rem;
}

.brand-logo__sub {
  font-size: 0.7rem;
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: -4px;
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-dark-muted);
}

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

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

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  transition: var(--transition-fast);
}

/* Mobile Nav Drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: white;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-120%);
  transition: transform var(--transition-normal);
  z-index: 999;
}

.mobile-nav.open {
  transform: translateY(0);
  box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (#hero)
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
color: #333;
font-family: Alexandria;
font-size: 154.47px;
font-style: normal;
font-weight: 800;
line-height: 88.841%; /* 137.233px */
letter-spacing: -6.497px;
margin-bottom: 40px;
}

.hero__subtitle {
color: #E52C28;
font-family: Alexandria;
font-size: 55.83px;
font-style: normal;
font-weight: 700;
line-height: 105.797%; /* 59.066px */
letter-spacing: -1.207px;
margin-bottom: 58px;
}

.hero__media {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.hero__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Badges on Hero Image */
.founder-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 0.9rem 1.4rem;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  z-index: 2;
text-align: center;
font-family: Alexandria;
font-size: 20px;
font-style: normal;
font-weight: 600;
line-height: 27.007px; /* 135.035% */
}

.founder-tag::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 34px;
  width: 18px;
  height: 18px;
  background-color: var(--color-dark);
  clip-path: polygon(0 0, 100% 0, 0 100%);
  border-bottom-left-radius: 3px;

}

.founder-tag span {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.stamp-badge-hero {
  position: absolute;
  bottom: 0rem;
  right: -1rem;
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius-md);
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.4);
  z-index: 2;
font-family: Alexandria;
font-size: 20.97px;
font-style: normal;
font-weight: 400;
line-height: 27.96px; /* 133.333% */
display: inline-flex;
flex-direction: column;
align-items: center;
gap: 4px;
}

.stamp-badge-hero span {
 color: #FFF;
font-family: Alexandria;
font-size: 44.772px;
font-style: normal;
font-weight: 900;
line-height: 55.965px; /* 125% */
letter-spacing: 1.786px;
text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   6. METHOD / PASO A PASO SECTION (#metodo)
   -------------------------------------------------------------------------- */
.method {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: var(--color-white);
}

.method__top-row {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-bottom: 1rem;
}

.method__top-row button{
  border-radius: 999px;
background: #931C1A;
}

.method__title-highlight {
  color: var(--color-dark);
}

#paso-a-paso .section-title {
  position: relative;
  padding-bottom: 1.1rem;
  display: inline-block;
}

#paso-a-paso h2{
  color: #333;
text-align: center;
font-family: Alexandria;
font-size: 48px;
font-style: normal;
font-weight: 700;
line-height: 56px; /* 116.667% */
letter-spacing: -0.96px;
border-bottom: 4px solid #E52C28;
}

#paso-a-paso .section-subtitle{
  color: #333;
text-align: center;
font-family: Alexandria;
font-size: 22px;
font-style: normal;
font-weight: 400;
line-height: 32px;
max-width: 626px;
margin: 40px auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
}

.step-card {
  position: relative;
  background-color: var(--color-white);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* hover reemplazado por .tilt-card (transform + box-shadow via JS) */

.step-badge {
  position: absolute;
  top: -16px;
  left: 1.25rem;
  width: 32px;
  height: 32px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9375rem;
  box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.step-card__row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.step-card__icon {

  flex-shrink: 0;
  color: var(--color-primary);
}

.step-card__body {
  display: flex;
  flex-direction: column;
}

.step-card__title {
 color: #333;
text-align: center;
font-family: Alexandria;
font-size: 30px;
font-style: normal;
font-weight: 700;
line-height: normal;
margin-bottom: 26px;
}

.step-card__desc {
color: #333;
text-align: center;
font-family: Alexandria;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 24.736px; /* 133.333% */
}

/* --------------------------------------------------------------------------
   7. SUCCESS CASES GRID (#casos-exito)
   -------------------------------------------------------------------------- */
.casos-exito {
  padding-top: 3rem;
  padding-bottom: 4rem;
  background-color: #fbfbfb;
  position: relative;
}

.cases-header-wrap {
  margin-bottom: 2rem;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.case-card {
  position: relative;
  width: 100%;
  max-width: 281px;
  aspect-ratio: 281 / 304;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--color-white);
  transition: transform var(--transition-fast);
  margin: 0 auto;
}

/* hover reemplazado por .tilt-card (transform + box-shadow via JS) */

.case-card--stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-white);
  box-shadow: none;
}

.case-card--stamp:hover {
  transform: none;
  box-shadow: none;
}

.stamp-4000-circle {
  width: 78%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(229, 57, 53, 0.3));
}

.case-card img {
  width: 100%;
  object-fit: cover;
}

.case-card__badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  border-radius: 20px 20px 0 0;
  background: rgba(229, 44, 40, 0.85);
  color: var(--color-white);
  padding: 15px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  align-self: stretch;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.case-card__age {
  opacity: 0.85;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. TESTIMONIALS SECTION (#testimonios)
   -------------------------------------------------------------------------- */
.testimonios {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.testimonios__parallelogram {
  position: absolute;
  right: -152.49px;
  bottom: -0.004px;
  width: 426.66px;
  height: 645.693px;
  z-index: 0;
  pointer-events: none;
}

.testimonios .container {
  position: relative;
  z-index: 1;
}

.testimonios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.testimonios__content {
  display: flex;
  flex-direction: column;
}

.testimonios__title {
 color: #FFF;
font-family: Alexandria;
font-size: 50px;
font-style: normal;
font-weight: 700;
line-height: 50.779px; /* 91.667% */
text-transform: uppercase;
margin-bottom: 20px;

}
.testimonios__title span{
  font-size: 43px;
font-style: normal;
font-weight: 500;
text-transform: none;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.rating-score {
color: #FFF;
font-family: Poppins;
font-size: 32px;
font-style: italic;
font-weight: 400;
line-height: 37.333px; /* 116.667% */
letter-spacing: -0.64px;
}

.stars {
  display: flex;
  gap: 3px;
  color: #ffc107;
}

.quote-box {
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1rem;
}

.quote-icon {
  width: 32px;
  height: auto;
  opacity: 0.9;
  margin-bottom: 0.75rem;
  display: block;
}

.quote-text {
 color: #FFF;
font-size: 20px;
font-style: italic;
font-weight: 400;
line-height: 28px; /* 140% */
margin-bottom: 16px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid white;
}

.author-info strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
}

.author-info span {
  font-size: 0.75rem;
  opacity: 0.8;
}

.google-g-logo {
  margin-left: auto;
  width: 20px;
  height: 20px;
}

.slider-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 1rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  width: 24px;
  background-color: var(--color-white);
}

/* Video Player Box */
.video-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background-color: #000;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform var(--transition-normal);
}

.video-card:hover img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  transition: transform var(--transition-fast);
}

.video-card:hover .play-button {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card-wrap {
  position: relative;
}

.video-card-badge {
  position: absolute;
  top: -15px;
  right: -17.481px;
  background-color: var(--color-white);
  color: var(--color-primary);
  padding: 7.596px 18px;
  border-radius: 9999px;
  border: 1px solid var(--color-primary);
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: rotate(2.656deg);
  box-shadow: var(--shadow-md);
  z-index: 3;
  white-space: nowrap;
text-align: center;
font-family: Alexandria;
font-size: 27.007px;
font-style: normal;
font-weight: 500;
line-height: 27.007px; /* 100% */
text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   9. BUILDINGS SECTION (#edificios)
   -------------------------------------------------------------------------- */
.edificios {
  padding-top: 6rem;
  padding-bottom: 6rem;
  background-color: var(--color-white);
}

.edificios h2{
  color: #333;
font-family: Alexandria;
font-size: 48px;
font-style: normal;
font-weight: 700;
line-height: 56px; /* 116.667% */
letter-spacing: -0.96px;
margin-bottom: 20px;
}

.buildings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.building-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-gray-border);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

/* hover reemplazado por .tilt-card (transform + box-shadow via JS) */

.building-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.building-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.building-card__units-tag {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.building-card__overlay {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
}

.building-card__name {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--color-white);
  background-color: rgba(20, 20, 20, 0.72);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.building-card__address {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-dark);
  background-color: rgba(255, 255, 255, 0.92);
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  margin-top: 0.4rem;
  width: fit-content;
}

.pin-icon-sm,
.building-card__address img.pin-icon-sm {
  width: 12px;
  height: 12px;
  object-fit: contain;
  flex-shrink: 0;
}

.buildings-footer {
  text-align: center;
  margin-top: 2.5rem;
}

/* --------------------------------------------------------------------------
   10. FOUNDER SECTION (#fundador)
   -------------------------------------------------------------------------- */
.fundador {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: var(--color-white);
}

.fundador__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.fundador__photo-box {
  position: relative;
  width: 100%;
  max-width: 585px;
  margin: 0 auto;
  border-radius: 16px;
  border: 8px solid #FFF;
  background-color: rgba(255, 255, 255, 0);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  box-sizing: border-box;
}

.fundador__photo-box img {
  width: 100%;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
}

.stats-bar {

  display: flex;
align-items: flex-start;
gap: 10px;
align-self: stretch;
}

.stat-item{
  border-radius: 12.347px;
border: 0.726px solid #D4D4D4;
display: flex;
padding: 14px;
flex-direction: column;
align-items: center;
gap: -3px;
flex: 1 0 0;
align-self: stretch;
}

.stat-item strong {
 color: #E52C28;
text-align: center;
font-family: Alexandria;
font-size: 43.817px;
font-style: normal;
font-weight: 700;
line-height: 61.344px; /* 140% */
text-transform: uppercase;
}

.stat-item span {
color: #333;
text-align: center;
font-family: Alexandria;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 118.267%; /* 18.923px */
}

.fundador__bio {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 41px;
}

.fundador__bio-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.fundador__bio-head span{
color: #E52C28;
font-family: Alexandria;
font-size: 18px;
font-style: normal;
font-weight: 700;
line-height: 16px; /* 88.889% */
letter-spacing: 0.6px;
text-transform: uppercase;
margin-bottom: 24px;
}

.fundador__bio-title {
color: #E52C28;
font-family: Alexandria;
font-size: 47.177px;
font-style: normal;
font-weight: 700;
line-height: 55.04px;
letter-spacing: -0.944px;
text-transform: uppercase;
}

.fundador__bio-title span{
  color: #333;
font-family: Alexandria;
font-size: 47.177px;
font-style: normal;
font-weight: 700;
line-height: 55.04px; /* 116.667% */
letter-spacing: -0.944px;
text-transform: uppercase;
}

.fundador__bio-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fundador__paragraph {
  font-size: 0.95rem;
  color: var(--color-dark-muted);
  line-height: 1.6;
}

.fundador__paragraph strong {
  color: var(--color-dark);
}

.social-bar-red {
  background-color: var(--color-primary);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

.social-bar-red span {
  font-weight: 400;
  font-size: 0.875rem;
}

.social-icons-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-icon-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: transform var(--transition-fast);
}
.social-icon-btn img { width: 100%; height: 100%; object-fit: contain; }

.social-icon-btn:hover {
  transform: scale(1.1);
}

.partners-wrap {
  width: 100%;
}

.partners-wrap h4 {
  color: #E52C28;
font-family: Alexandria;
font-size: 18px;
font-style: normal;
font-weight: 600;
line-height: 16px; /* 88.889% */
letter-spacing: 0.6px;
text-transform: uppercase;
margin-bottom: 20px;
}

.partner-logos-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  opacity: 0.8;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.partner-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}

/* --------------------------------------------------------------------------
   11. TEAM BANNER (#equipo)
   -------------------------------------------------------------------------- */
.equipo {
  padding-top: 3rem;
  background-color: var(--color-white);
  text-align: center;
}

.team-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  aspect-ratio: 21 / 9;
  max-height: 420px;
}

.team-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-info-box {
  display: flex;
  width: 100%;
  margin: 0 auto;
  padding: 97px 57px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  border-radius: 55px;
  background: #E9E9E9;
}

.team-info-box img{
  margin-bottom: 70px;
}

.team-info-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  line-height: 1.1;
}

.team-info-title__number {
  color: #E52C28;
  text-align: center;
  font-family: 'Alexandria', sans-serif;
  font-size: 90px;
  font-weight: 800;
  line-height: 1.0375;
  letter-spacing: -2.374px;
  text-transform: uppercase;
}

.team-info-title__text {
  color: #333;
  font-family: 'Alexandria', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1.0375;
  text-align: left;
}

@media (max-width: 700px) {
  .team-info-box {
    padding: 48px 28px;
    gap: 32px;
    border-radius: 32px;
  }
  .team-info-title {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* --------------------------------------------------------------------------
   12. MEDIA SECTION (#medios)
   -------------------------------------------------------------------------- */
.medios {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #fbfbfb;
  overflow: hidden;
}
.medios h2, .sucursales h2{
  color: #333;
font-family: Alexandria;
font-size: 48px;
font-style: normal;
font-weight: 700;
line-height: 56px; /* 116.667% */
letter-spacing: -0.96px;
}
.medios__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.medios .container {
  position: relative;
  z-index: 1;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.media-card {
  position: relative;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-border);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast);
}

/* hover reemplazado por .tilt-card (transform + box-shadow via JS) */

.media-card__header {
  padding: 0.5rem;
  display: flex;
  align-items: center;
  min-height: 64px;
}

.media-card__logo {
  height: 60%;
  width: auto;
  object-fit: contain;
}

.media-card__logo--round {
  height: 40px;
}

.media-card__header--clarin {
  background-color: #C72B32;
}

.media-card__header--lanacion {
  background-color: #0d3b66;
}

.media-card__header--canal26 {
  background-color: #B82D23;
}

.media-card__header--elcronista {
  background-color: #529797;
}

.media-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.media-card__quote {
color: #333;
font-family: "Times New Roman";
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: 25px;
letter-spacing: -0.549px;
margin-bottom: 30px;
}

.media-card__link {
color: #E52C28;
text-align: right;
font-family: Alexandria;
font-size: 15px;
font-style: normal;
font-weight: 400;
line-height: 27.007px; /* 135.035% */
}

.media-card__link:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   13. BRANCHES SECTION (#sucursales)
   -------------------------------------------------------------------------- */
.sucursales {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: var(--color-white);
}

.map-box {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  border: 1px solid var(--color-gray-border);
}

#sucursales-map {
  width: 100%;
  height: 420px;
  z-index: 1;
}

.leaflet-marker-icon {
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35));
}

@media (min-width: 768px) {
  #sucursales-map {
    height: 520px;
  }
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.branch-card {
  background-color: var(--color-gray-light);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.branch-card:hover, .branch-card.active {
  background-color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.branch-card__title {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--color-dark);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.branch-card__title::before {
  content: '📍';
  font-size: 0.8rem;
}

.branch-card__address {
  font-size: 0.8rem;
  color: var(--color-dark-muted);
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   14. FINAL CTA BANNER (#cta)
   -------------------------------------------------------------------------- */
.cta {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding-top: 6rem;
  padding-bottom: 6rem;
  text-align: center;
}

.cta__title {
  color: #FFF;
font-family: Alexandria;
font-size: 30px;
font-style: normal;
font-weight: 500;
line-height: 36.115px; /* 120.383% */
text-transform: uppercase;
margin-bottom: 15px;
}

.cta__subtitle {
 color: #FFF;
text-align: center;
font-family: Alexandria;
font-size: 20px;
font-style: normal;
font-weight: 400;
line-height: normal;
margin-bottom: 35px;
}

.cta__subtitle span {
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   15. FOOTER (#footer)
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding-top: 3rem;
  padding-bottom: 2rem;
  font-size: 0.875rem;
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 2rem;
  margin-bottom: 1.5rem;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__nav a {
  opacity: 0.8;
}

.footer__nav a:hover {
  opacity: 1;
  color: var(--color-primary);
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast);
  opacity: 0.85;
}
.footer__social-btn:hover { opacity: 1; }
.footer__social-btn img { width: 100%; height: 100%; object-fit: contain; }

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  opacity: 0.6;
  font-size: 0.8rem;
  text-align: center;
}

/* --------------------------------------------------------------------------
   16. MODALS & INTERACTIVE COMPONENTS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 90%;
  max-width: 800px;
  background: black;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE BREAKPOINTS (TABLET & DESKTOP)
   -------------------------------------------------------------------------- */

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }


  .hero__subtitle {
    font-size: 2.25rem;
  }

  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonios__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .buildings-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fundador__grid {
    grid-template-columns: 1fr 1fr;
  }

  .media-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__top {
    flex-direction: row;
  }

  .footer__bottom {
    flex-direction: row;
  }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
  .nav-menu {
    display: flex;
  }

  .mobile-toggle {
    display: none;
  }

  .hero {
    padding-top: 3rem;
    padding-bottom: 5rem;
  }

  .hero__title {
    font-size: 8rem;
  }

  .hero__subtitle {
    font-size: 2.75rem;
  }

  .cases-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .cases-header-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .stamp-4000-circle {
    position: absolute;
    right: 0;

  }
}

/* ==========================================================================
   18. ANIMACIONES — Scroll reveal (stagger fade-up) + micro-interacciones
   ========================================================================== */

/* Registramos el tipo de estas custom properties: sin esto, algunos
   navegadores no recalculan transform: rotateX(var(--rx)) cuando --rx
   cambia dinámicamente por JS (se queda "pegado" en el valor inicial). */
@property --rx {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@property --ry {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}
@property --mx {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}
@property --my {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: transform, opacity;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Botones magnéticos con brillo que sigue el cursor --- */
.btn-magnetic {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.btn-magnetic::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.btn-magnetic:hover::before {
  opacity: 1;
}

.btn-magnetic:hover {
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.3);
}

/* --- Cards con tilt 3D suave + spotlight que sigue el cursor --- */
.tilt-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 50%;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.tilt-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.28), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tilt-card:hover::after {
  opacity: 1;
}

.tilt-card:hover {
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.28);
}

/* Cuando un elemento es tarjeta Y tiene reveal a la vez (grids de cards),
   unificamos el translateY de entrada con el perspective/rotate del tilt
   en un solo valor de transform, para que .reveal.is-visible (más específico)
   no le gane la cascada a .tilt-card y bloquee el hover 3D después de revelarse. */
.tilt-card.reveal {
  transform: translateY(28px) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
}

.tilt-card.reveal.is-visible {
  transform: translateY(0) perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
}

@media (hover: none) {
  .tilt-card::after {
    display: none;
  }
}
