@font-face {
  font-family: 'Agetta Display';
  src: url('../assets/fonts/Agetta%20Display.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.font-serif {
  font-family: 'Agetta Display', ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  letter-spacing: var(--letter-spacing-headings);
}

:root {
  /* Colors */
  --primary: #1E3A8A; /* Dark Blue */
  --accent: #3B82F6; /* Bright Blue */
  --accent-hover: #2563EB;
  --bg-light: #E4F1FE; /* Light Cyan/Blue */
  --bg-white: #FFFFFF;
  --text-dark: #1E1F29; /* Dark Navy/Gray */
  --text-light: #4A5568;
  --glass-bg: rgba(255, 255, 255, 0.85);
  
  /* Typography */
  --font-main: 'Nunito', sans-serif;
  --letter-spacing-main: 0.5px;
  --letter-spacing-headings: 1.5px;
  
  /* Spacing & Utilities */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  letter-spacing: var(--letter-spacing-main);
}

h1, h2, h3, h4, h5, h6 {
  letter-spacing: var(--letter-spacing-headings);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-container-wide {
  max-width: 1500px;
  width: 95%;
  padding: 0 20px;
}

/* Global Button */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  border: none;
}

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

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Header Base (Normal State) */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  background: var(--bg-white);
  padding: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); /* Sombra minúscula */
}

/* Scrolled/Sticky State (Floating Pill) */
header.sticky {
  top: 15px; /* Margin from top */
  width: 90%;
  max-width: 1100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50px; /* Pill shape */
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  padding: 10px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.85rem;
  color: #2D3748;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

/* Header Actions & Mobile Menu Styles */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-outline-cyan {
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 50px;
  padding: 8px 24px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}

.btn-outline-cyan:hover {
  background-color: var(--accent);
  color: #ffffff;
}

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

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #2D3748;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Mobile Menu Overlay & Floating Card Panel */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(30, 58, 138, 0.45); /* Fondo oscuro translúcido suave */
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  justify-content: flex-end; /* Alinear a la derecha */
  align-items: center;
  padding: 15px; /* Separación de los bordes de la pantalla */
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-container {
  position: relative;
  width: 290px;
  height: calc(100vh - 30px); /* 100% de alto restando el padding */
  max-height: 720px; /* Para que se vea equilibrado y flotante */
  background-color: #ffffff;
  /* Hexagon geometric background pattern */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='41.57' viewBox='0 0 24 41.57'%3E%3Cpath d='M12 0L24 6.93v13.86L12 27.71L0 20.79V6.93zM12 41.57L24 34.64V20.79l-12-6.93l-12 6.93v13.86z' fill='none' stroke='%23f1f5f9' stroke-width='1.2'/%3E%3C/svg%3E");
  background-size: 32px auto;
  border-radius: 20px; /* Bordes redondeados de la tarjeta */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  padding: 40px 24px 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu-overlay.active .mobile-menu-container {
  transform: translateX(0);
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #718096; /* Gris del botón cerrar */
  color: #ffffff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px; /* Cuadrado con bordes suaves */
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mobile-menu-close:hover {
  background: #4a5568;
}

.mobile-menu-content {
  margin-top: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1A202C; /* Texto oscuro/negro */
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-nav-links a:hover {
  color: var(--accent);
}

.mobile-nav-links a.active-link {
  color: var(--accent); /* Cyan para INICIO activo */
}

.mobile-nav-links a i {
  font-size: 0.75rem;
  color: #718096;
}

.mobile-menu-action {
  width: 100%;
  text-align: center;
}

.btn-hablemos {
  display: inline-block;
  border: 2px solid var(--accent);
  color: var(--accent);
  background-color: transparent;
  padding: 10px 32px;
  font-size: 0.95rem;
  font-weight: 900;
  border-radius: 50px; /* Botón pill */
  text-align: center;
  transition: var(--transition);
}

.btn-hablemos:hover {
  background-color: var(--accent);
  color: #ffffff;
}

.mobile-menu-footer {
  margin-top: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 20px;
}

.mobile-menu-logo {
  height: 46px;
  width: auto;
  opacity: 0.9;
}

/* Clases de Utilidad (SEO) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  padding-top: 0; /* Sin padding */
  padding-bottom: 20px;
  display: flex;
  align-items: flex-start; /* Alinear arriba */
  justify-content: center;
}

.hero-container {
  position: relative;
  width: 98%;
  max-width: 1920px;
  margin: 0 auto;
  margin-top: -120px; /* Centrado y margen en el contenedor principal */
}

.hero-image-wrapper {
  position: relative;
  width: 100%; /* Ocupa el 100% del contenedor relative */
  border-radius: 40px; /* Bordes redondeados grandes */
  overflow: hidden;
  /* Sin sombra para evitar fondo o mancha en imágenes sin fondo */
}

.hero-tags-container {
  position: absolute;
  bottom: -2px; /* Vuelve a alinearse con el borde exacto de la imagen sin salirse del contenedor */
  right: -2px; /* Fijo en la esquina derecha del contenedor */
  background: var(--bg-white);
  padding: 4px; /* Simétrico para centrar perfectamente el botón */
  border-top-left-radius: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.hero-btn {
  background-color: #ffffff;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 10px 24px; /* Más fino en PC */
  font-weight: 800;
  font-size: 1rem; /* Más fino en PC */
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-btn i {
  font-size: 1.2rem; /* Icono proporcional */
  transition: var(--transition);
}

.hero-btn:hover {
  background-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: none; /* Quitamos el blur / sombra brillante */
}

.hero-btn:hover i {
  color: #ffffff;
}

.hero-image-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Secciones Generales */
.section {
  padding: 80px 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* 4. Proyectos y Filtros */
.project-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  background: transparent;
  padding: 0;
  flex-wrap: wrap;
  gap: 20px;
}
.filter-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}
.brand-icon {
  width: 45px;
  height: 45px;
  background-color: transparent;
  color: white;
  font-size: 24px;
  font-weight: 900;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  border-bottom-left-radius: 0;
}
.brand-text h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 2px;
}
.text-primary {
  color: var(--primary);
}
.brand-text p {
  font-size: 0.85rem;
  color: var(--text-light);
}
.filter-controls {
  display: flex;
  gap: 20px;
}
.filter-group {
  display: flex;
  flex-direction: column;
}
.filter-group label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 5px;
}
.filter-group select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  outline: none;
  background-color: #fff;
  min-width: 150px;
  font-family: inherit;
  color: var(--primary);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 450px;
  box-shadow: var(--shadow-sm);
  background-color: #fff;
}

.card-base {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.card-image {
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-image {
  transform: scale(1.05);
}

.badge-status {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--primary);
  color: white;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card-bottom-title {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 20px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  z-index: 2;
}
.card-bottom-title h3 {
  font-size: 1.5rem;
  font-weight: 800;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.card-hover-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 10;
  transform: translateY(-101%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  padding: 25px;
  box-sizing: border-box;
}

.project-card:hover .card-hover-content {
  transform: translateY(0);
}

.hover-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.hover-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #eee;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 5px;
  flex-shrink: 0;
}
.hover-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hover-title-group h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 2px;
}
.hover-title-group p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.hover-details {
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.hover-details p {
  margin-bottom: 10px;
  color: #4a5568;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
}
.hover-details p i {
  color: var(--text-light);
  width: 16px;
  text-align: center;
  margin-top: 3px;
}
.hover-details a {
  color: var(--primary);
  text-decoration: underline;
}

.hover-features {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  margin-bottom: auto;
}
.feature-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feature-box i {
  font-size: 1.5rem;
  color: var(--text-light);
}
.feature-box div {
  display: flex;
  flex-direction: column;
}
.feature-box span {
  font-size: 0.75rem;
  color: var(--text-light);
}
.feature-box strong {
  font-size: 0.95rem;
  color: var(--primary);
}

.hover-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.price-info {
  display: flex;
  flex-direction: column;
}
.price-info span {
  font-size: 0.8rem;
  color: var(--text-light);
}
.price-info strong {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 800;
}
.price-info small {
  font-size: 0.8rem;
  font-weight: normal;
}
.btn-project {
  background: var(--primary);
  color: white;
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}
.btn-project:hover {
  background: #2d4132;
}

/* 5. Beneficios */
.benefits-section {
  padding: 40px 0;
  display: flex;
  justify-content: center;
}
.benefits-container {
  width: 98%;
  max-width: 1920px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  border-radius: 40px;
  padding: 60px 40px;
  margin: 0 auto;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.benefit-card {
  background: transparent;
  padding: 30px 20px;
  border-radius: 8px;
  text-align: left;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: white;
  display: flex;
  align-items: center;
  gap: 15px;
}
.benefit-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}
.benefit-icon {
  font-size: 2.5rem;
  color: white;
  flex-shrink: 0;
}
.benefit-icon i {
  color: transparent;
  -webkit-text-stroke: 1.5px white;
}
.benefit-text h3 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: white;
}
.benefit-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

/* 6. Clientes Satisfechos (Testimonios) */
.testimonials-container {
  width: 98%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 60px 40px;
}

.testimonials-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 40px;
}

.carousel-arrow {
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  color: var(--text-dark);
  font-size: 1.2rem;
  z-index: 10;
  flex-shrink: 0;
}

.carousel-arrow:hover {
  background: #f8f9fa;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.prev-arrow { margin-right: 15px; }
.next-arrow { margin-left: 15px; }

.testimonials-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex-grow: 1;
  padding-bottom: 20px;
}

.testimonials-carousel::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 calc(25% - 15px);
  white-space: normal;
  overflow-wrap: break-word;
  background: white;
  border: 1px solid #eaeaea;
  border-radius: 7px;
  padding: 30px 20px;
  text-align: center;
  scroll-snap-align: start;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 2px solid var(--bg-light);
}

.testimonial-name {
  color: black;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.testimonial-zone {
  color: #718096;
  font-size: 0.85rem;
  margin-bottom: 15px;
}

.testimonial-text {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 20px;
}

.btn-testimonial {
  background: transparent;
  border: 1px solid #eaeaea;
  border-radius: 7px;
  padding: 8px 16px;
  color: var(--primary);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-testimonial i {
  font-size: 0.8rem;
}

.btn-testimonial:hover {
  background: var(--bg-light);
  border-color: var(--text-light);
}

/* 7. Refiere y Gana */
.referral-container {
  width: 98%;
  max-width: 1920px;
  background: var(--bg-light); /* Turquesa claro de la paleta principal */
  border-radius: 40px;
  padding: 60px 40px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid #eaeaea;
  overflow: visible; /* To allow the puma image to stick out */
}

.referral-content {
  flex: 1;
  max-width: 70%;
  z-index: 2;
}

.referral-desc {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-bottom: 40px;
  margin-top: 10px;
}

.referral-steps {
  display: flex;
  gap: 20px;
}

.referral-step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  flex: 1;
}

.step-icon {
  background: white;
  color: var(--primary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.step-icon i {
  -webkit-text-stroke: 1.5px var(--primary);
  color: transparent;
}

.step-text {
  text-align: left;
}

.step-number {
  display: inline-block;
  font-size: 0.85rem;
  color: #2b6cb0; /* Azul de los pasos en la imagen */
  font-weight: 700;
  margin-bottom: 5px;
}

.step-text h4 {
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.step-text p {
  font-size: 0.85rem;
  color: #718096;
  line-height: 1.4;
}

.referral-image-wrapper {
  position: absolute;
  right: 2%;
  bottom: 0;
  width: 28%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
}

.referral-puma {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.25)); /* Sombra para disimular el corte */
}

/* 7. Equipo (Team) */
.team-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.team-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  width: 300px;
  text-align: center;
  transition: var(--transition);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.team-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.team-info {
  padding: 25px;
}

.team-info h3 {
  color: var(--primary);
  margin-bottom: 5px;
}

.team-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.team-contact {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.team-contact a {
  background: var(--bg-light);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.team-contact a:hover {
  background: var(--accent);
  color: var(--bg-white);
}

/* 8. Agenda una cita (Contacto) */
.appointment-layout {
  display: flex;
  gap: 50px;
  align-items: center;
}

.appointment-steps {
  flex: 1;
  padding-right: 20px;
}

.buy-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 30px;
}

.buy-step-icon {
  width: 55px;
  height: 55px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

.buy-step-icon i {
  font-size: 1.4rem;
  -webkit-text-stroke: 1.5px #007bff; /* Color azul de los iconos en la imagen */
  color: transparent;
}

.buy-step-text .step-num {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 700;
  display: block;
}

.buy-step-text h4 {
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.buy-step-text p {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Formulario a la derecha */
.appointment-form-wrapper {
  flex: 1;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.appointment-form .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.appointment-form .form-row-full {
  margin-bottom: 15px;
}

.appointment-form input[type="text"],
.appointment-form input[type="tel"],
.appointment-form input[type="email"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s;
}

.appointment-form input[type="text"]::placeholder,
.appointment-form input[type="tel"]::placeholder,
.appointment-form input[type="email"]::placeholder {
  color: #007bff;
}

.appointment-form input[type="text"]:focus,
.appointment-form input[type="tel"]:focus,
.appointment-form input[type="email"]:focus {
  border-color: #007bff;
}

.form-checkboxes {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-checkboxes label {
  font-size: 0.8rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 8px;
  cursor: pointer;
}

.form-checkboxes a {
  color: #007bff;
  text-decoration: none;
  font-weight: 700;
}

.form-checkboxes a:hover {
  text-decoration: underline;
}

.btn-submit-appointment {
  background: #007bff;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  max-width: 250px;
  display: block;
  transition: background 0.3s;
}

.btn-submit-appointment:hover {
  background: #0056b3;
}

@media (max-width: 900px) {
  .appointment-layout {
    flex-direction: column;
  }
  .appointment-steps {
    padding-right: 0;
    margin-bottom: 30px;
  }
  .appointment-form .form-row {
    flex-direction: column;
  }
}

/* 3. Social Proof Strip (Logos Carousel) */
.financing-section {
  background: var(--bg-light);
  padding: 12px 0;
  border-bottom: 1px solid #eaeaea;
  overflow: hidden;
  margin-top: -20px;
  position: relative;
  z-index: 5;
}

.financing-container {
  display: flex;
  align-items: center;
  gap: 50px;
  width: 100%;
  padding: 0 5%;
}

.financing-title {
  flex-shrink: 0;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.financing-carousel-wrapper {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.financing-carousel {
  display: flex;
  align-items: center;
  width: max-content;
  animation: scroll-carousel 30s linear infinite;
}

.financing-carousel:hover {
  animation-play-state: paused;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 80px;
  padding-right: 80px; /* Igual al gap para transición perfecta */
}

.carousel-track img {
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.carousel-track img.logo-bcp {
  height: 45px;
}

.carousel-track img.logo-interbank {
  height: 40px;
}

.carousel-track img.logo-propio {
  height: 65px;
}

.carousel-track img.logo-vivienda {
  height: 65px;
}

.carousel-track img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scroll-carousel {
  to { transform: translateX(-50%); }
}

/* Responsive */
@media (max-width: 900px) {
  .financing-container {
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
  }
  .financing-title {
    text-align: center;
    width: 100%;
  }
  .financing-carousel-wrapper {
    width: 100%;
  }
  .carousel-track img.logo-bcp {
    height: 35px;
  }
  .carousel-track img.logo-interbank {
    height: 30px;
  }
  .carousel-track img.logo-propio {
    height: 50px;
  }
  .carousel-track img.logo-vivienda {
    height: 50px;
  }
  .filter-brand {
    flex-direction: column;
    text-align: center;
  }
  .filter-brand .brand-icon {
    margin: 0 auto;
  }
  
  .project-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 15px;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .project-grid::-webkit-scrollbar {
    display: none;
  }
  .project-card {
    min-width: 100%;
    scroll-snap-align: center;
    flex-shrink: 0;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .benefit-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
  }
  .benefit-text h3 {
    margin-top: 10px;
  }
  .benefits-container {
    padding: 40px 20px;
  }
}

@media (max-width: 900px) {
  .desktop-nav, .desktop-only {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  header {
    padding: 12px 0; /* Cabecera normal más fina */
  }
  header.sticky {
    padding: 8px 0; /* Cabecera flotante más fina */
    top: 10px;
  }
  .logo img {
    height: 48px !important; /* Logo más pequeño en cabecera */
  }
  .hero-container {
    margin-top: -60px; /* Bajado un poco más en tableta */
  }
  .hero-image-wrapper {
    border-radius: 24px;
  }
  .hero-tags-container {
    bottom: 0px; /* Bajado al ras de la sección hero, sobresaliendo hacia abajo */
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background: var(--bg-white);
    padding: 4px; /* Simétrico para centrar perfectamente el botón */
    border-radius: 30px; /* Redondeado completo y uniforme en todos los lados */
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
  }
  .hero-btn {
    padding: 10px 22px;
    font-size: 0.9rem;
    white-space: nowrap; /* Evita que el texto se rompa en varias líneas */
    box-shadow: none; /* Estilo limpio como en PC */
  }
}

@media (max-width: 600px) {
  header {
    padding: 10px 0;
  }
  header.sticky {
    padding: 6px 0;
    top: 10px;
  }
  .logo img {
    height: 42px !important;
  }
  .hero-container {
    margin-top: -48px; /* Bajado un poco más en móvil */
  }
  .hero-image-wrapper {
    border-radius: 16px;
  }
  .hero-tags-container {
    bottom: -5px; /* Bajado aún más en móviles para que quede centrado entre secciones */
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    background: var(--bg-white);
    padding: 3px; /* Simétrico para centrar perfectamente el botón */
    border-radius: 25px; /* Redondeado completo y uniforme en todos los lados */
    width: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
  }
  .hero-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
    width: auto;
    white-space: nowrap; /* Fuerza una sola línea */
    justify-content: center;
    box-shadow: none; /* Estilo limpio como en PC */
  }
}
/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}
.modal.active {
  display: flex;
}
.modal-content {
  position: relative;
  width: 90%;
  max-width: 350px;
  background: white;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.modal-content video {
  width: 100%;
  border-radius: 8px;
  display: block;
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}
.close-modal:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Responsividad para Testimonios */
@media (max-width: 1200px) {
  .testimonial-card { flex: 0 0 calc(33.333% - 14px); } /* 3 por página */
}
@media (max-width: 900px) {
  .testimonial-card { flex: 0 0 calc(50% - 10px); } /* 2 por página */
}
@media (max-width: 600px) {
  .testimonial-card { 
    flex: 0 0 calc(100vw - 110px); /* Compacto: 100% del ancho menos el espacio de las flechas */
    padding: 25px 15px; 
  }
  .testimonials-container { padding: 30px 5px; }
  .carousel-arrow { 
    position: static; /* Vuelven a su posición normal */
    width: 35px; 
    height: 35px; 
    font-size: 1rem; 
  }
  .prev-arrow { margin-right: 10px; }
  .next-arrow { margin-left: 10px; }
  .testimonials-carousel { padding: 0; gap: 15px; }
}

/* Responsividad para Refiere y Gana */
@media (max-width: 1000px) {
  .referral-container {
    flex-direction: column;
    padding: 50px 30px;
    padding-bottom: 250px;
  }
  .referral-content {
    max-width: 100%;
  }
  .referral-image-wrapper {
    width: 60%;
    right: 20%;
    height: 250px;
  }
}
@media (max-width: 768px) {
  .referral-steps {
    flex-direction: column;
  }
  .referral-container {
    padding-bottom: 200px;
  }
  .referral-image-wrapper {
    width: 80%;
    right: 10%;
    height: 200px;
  }
  .referral-puma {
    transform: none;
  }
}



/* Custom Location Card Layout */
.card-loc {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.card-loc i {
  color: var(--text-light);
  margin-top: 4px;
}
.card-loc-content {
  display: flex;
  flex-direction: column;
}
.card-loc-title {
  color: #4a5568;
  font-size: 0.85rem;
}
.card-loc-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-loc-city {
  color: var(--text-dark);
  font-weight: 800;
  font-size: 0.95rem;
}
.card-loc-map {
  background: var(--bg-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-decoration: none !important;
  font-weight: 700;
  transition: var(--transition);
}
.card-loc-map:hover {
  background: var(--primary);
  color: white;
}



/* Protección básica contra copia de contenido */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea, select {
  -webkit-user-select: auto;
  -moz-user-select: auto;
  -ms-user-select: auto;
  user-select: auto;
}

