/* ========================================
   VARIABLES Y COLORES
   ======================================== */
:root {
  /* Colores base */
  --navy: #0a192f;
  --navy-foreground: #ffffff;
  --mint: #107c41;
  --mint-hover: #0d6635;
  --mint-foreground: #ffffff;
  --pearl: #f5f7fa;
  --pearl-foreground: #0a192f;
  --gold: #f2c811;
  --gold-foreground: #0a192f;

  /* Colores semánticos */
  --background: var(--pearl);
  --foreground: var(--navy);
  --card: #ffffff;
  --card-foreground: var(--navy);
  --primary: var(--mint);
  --primary-hover: var(--mint-hover);
  --primary-foreground: var(--mint-foreground);
  --secondary: var(--pearl);
  --secondary-foreground: var(--navy);
  --muted: var(--pearl);
  --muted-foreground: #64748b;
  --accent: var(--mint);
  --accent-foreground: var(--mint-foreground);
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: var(--mint);
  --radius: 0.625rem;

  /* Tipografía */
  --font-sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Merriweather", Georgia, serif;
}

/* ========================================
   RESET Y ESTILOS BASE
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.6;
}

/* ========================================
   ANIMACIONES KEYFRAMES
   ======================================== */
@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-in-left {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slide-in-right {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Subtle title reveal used only for headings (non-intrusive) */
.animate-title {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 420ms cubic-bezier(.22, .9, .33, 1), transform 420ms cubic-bezier(.22, .9, .33, 1);
  will-change: opacity, transform;
}

.animate-title.visible {
  opacity: 1;
  transform: translateY(0);
}

/* (reveal animations removed - restoring previous styles) */

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse-slow {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ========================================
   TIPOGRAFÍA
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  font-weight: bold;
  line-height: 1.2;
}

p {
  font-family: var(--font-serif);
}

.text-balance {
  text-wrap: balance;
}

/* ========================================
   HEADER Y NAVEGACIÓN
   ======================================== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--navy);
  transition: all 0.3s ease;
}

header.scrolled {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  height: 5rem;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo img {
  display: block;
  height: 2.25rem;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* Responsive logo sizing */
@media (max-width: 480px) {
  .logo img {
    height: 1.6rem;
  }

  .header-container {
    height: 4rem;
  }
}

@media (min-width: 481px) and (max-width: 767px) {
  .logo img {
    height: 1.95rem;
  }

  .header-container {
    height: 4.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .logo img {
    height: 2.75rem;
  }

  .header-container {
    height: 5rem;
  }
}

@media (min-width: 1024px) {
  .logo img {
    height: 3.25rem;
  }

  .header-container {
    height: 6rem;
  }
}

nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background-color: var(--gold);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--gold);
}

nav a:hover::after {
  width: 100%;
}

@media (min-width: 768px) {
  nav {
    display: flex;
  }

  .menu-btn {
    display: none;
  }
}

.menu-btn {
  background: none;
  border: none;
  color: var(--navy-foreground);
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.menu-btn:hover {
  transform: scale(1.1);
}

/* ========================================
   BOTONES
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
  background-color: transparent;
  color: var(--navy-foreground);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
  height: 3.5rem;
}

/* ========================================
   SECCIONES
   ======================================== */
section {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* HERO SECTION */
.hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-section {
    min-height: 700px;
  }
}

.hero-background {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-image: linear-gradient(rgba(10, 25, 47, 0.85), rgba(10, 25, 47, 0.85));
}

.hero-background::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  color: var(--navy-foreground);
}

@media (min-width: 1024px) {
  .hero-content {
    min-height: 700px;
    flex-direction: row;
    justify-content: space-between;
    gap: 3rem;
    align-items: center;
  }

  .hero-left {
    flex: 1;
    text-align: left;
  }

  .hero-left>* {
    animation: fade-in-up 0.6s ease-out forwards;
  }

  .hero-left>*:nth-child(1) {
    animation-delay: 0.2s;
  }

  .hero-left>*:nth-child(2) {
    animation-delay: 0.4s;
  }

  .hero-left>*:nth-child(3) {
    animation-delay: 0.6s;
  }

  .hero-left>*:nth-child(4) {
    animation-delay: 0.8s;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 124, 65, 0.3);
  background-color: rgba(16, 124, 65, 0.1);
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  opacity: 0;
  animation: fade-in-up 0.6s ease-out 0.2s forwards;
}

.hero-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
}

.hero-title .text-primary {
  color: var(--primary);
}

.hero-description {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-in-up 0.6s ease-out 0.6s forwards;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-in-up 0.6s ease-out 0.8s forwards;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  opacity: 0;
  animation: fade-in 0.6s ease-out 1s forwards;
}

/* ========================================
   TARJETAS Y GRILLAS
   ======================================== */
.card {
  background-color: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-content {
  padding: 1.5rem;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid.cols-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media (min-width: 768px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ========================================
   SECONDARY SECTION
   ======================================== */
.bg-secondary {
  background-color: var(--secondary);
}

.section-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-subtitle {
  font-family: var(--font-serif);
  color: var(--muted-foreground);
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
  margin-bottom: 3rem;
}

/* ========================================
   PROBLEMA CAROUSEL
   ======================================== */
.problem-grid {
  display: none;
  gap: 1rem;
  grid-template-columns: repeat(5, 1fr);
}

@media (min-width: 768px) {
  .problem-grid {
    display: grid;
  }
}

.problem-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  animation: fade-in-up 0.5s ease-out forwards;
}

.problem-icon {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(231, 0, 11, 0.08);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.problem-card:hover .problem-icon {
  background-color: rgba(231, 0, 11, 0.16);
  transform: scale(1.1);
}

.problem-icon i,
.problem-icon svg {
  color: #e7000b;
  font-size: 1.5rem;
  display: block;
  line-height: 1;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
}

.problem-title {
  font-weight: bold;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.problem-description {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.carousel-mobile {
  display: block;
  position: relative;
}

@media (min-width: 768px) {
  .carousel-mobile {
    display: none;
  }
}

.carousel-container {
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-out;
}

.carousel-slide {
  flex-shrink: 0;
  width: 100%;
  padding: 0 0.5rem;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.carousel-btn {
  background-color: transparent;
  border: 1px solid var(--foreground);
  color: var(--foreground);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background-color: var(--foreground);
  color: var(--background);
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: rgba(100, 116, 139, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background-color: var(--primary);
  transform: scale(1.25);
}

/* ========================================
   SOLUTION GRID
   ======================================== */
.solution-grid {
  max-width: 80rem;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

@media (min-width: 640px) {
  .solution-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.solution-card {
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0;
  animation: fade-in-up 0.6s ease-out forwards;
}

.solution-card:hover {
  border-color: var(--primary);
}

.solution-image {
  position: relative;
  height: 10rem;
  overflow: hidden;
  border-radius: calc(var(--radius) - 4px) calc(var(--radius) - 4px) 0 0;
}

.solution-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.solution-card:hover .solution-image img {
  transform: scale(1.1);
}

.solution-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--secondary), transparent);
}

.solution-icon-wrapper {
  position: relative;
  margin: -2.5rem auto 1rem;
  width: 3.5rem;
  height: 3.5rem;
}

.solution-icon-shadow {
  position: absolute;
  inset: 0;
  border-radius: 0.75rem;
  background-color: rgba(242, 200, 17, 0.2);
  transform: translate(0.25rem, 0.25rem);
  transition: all 0.3s ease;
}

.solution-card:hover .solution-icon-shadow {
  transform: translate(0.5rem, 0.5rem);
}

.solution-icon {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
  background-color: var(--primary);
  transform: scale(1.1);
}

.solution-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--navy-foreground);
}

/* Ensure FontAwesome <i> also inherits size/color and is centered */
.solution-icon i,
.solution-icon svg {
  display: block;
  line-height: 1;
  font-size: 1.25rem;
  color: var(--navy-foreground);
}

.solution-card:hover .solution-icon i,
.solution-card:hover .solution-icon svg {
  color: var(--card);
}

.solution-title {
  font-weight: bold;
  font-size: 1.25rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.solution-description {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-align: center;
}

/* ========================================
   COST SECTION
   ======================================== */
.bg-navy {
  background-color: var(--navy);
  color: var(--navy-foreground);
}

.cost-card {
  border: 2px solid var(--primary);
  max-width: 28rem;
  margin: 0 auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: scale-in 0.6s ease-out 0.3s forwards;
  transition: all 0.3s ease;
}

.cost-card:hover {
  box-shadow: 0 0 40px rgba(16, 124, 65, 0.3);
}

.cost-header {
  background-color: rgba(16, 124, 65, 0.05);
  padding: 2rem 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.cost-badge {
  position: absolute;
  right: -2rem;
  top: 1.5rem;
  transform: rotate(45deg);
  background-color: var(--gold);
  padding: 0.25rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--navy);
  animation: pulse-slow 3s ease-in-out infinite;
}

.cost-label {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.cost-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.cost-amount {
  font-family: var(--font-sans);
  font-size: 3.75rem;
  font-weight: bold;
  color: var(--primary);
}

.cost-currency {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--muted-foreground);
}

.cost-subtitle {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.5rem;
}

.cost-content {
  padding: 2rem;
}

.cost-section-title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.requirement-item,
.benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fade-in-up 0.4s ease-out forwards;
}

.requirement-item svg,
.benefit-item svg {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.cost-divider {
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.cost-note {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 1rem;
}

/* ========================================
   RESULTADOS ESPERADOS
   ======================================== */
.results-container {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .results-container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.results-image {
  position: relative;
  height: 500px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.results-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.results-content {
  display: flex;
  flex-direction: column;
}

.results-title {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .results-title {
    font-size: 2.25rem;
  }
}

.results-subtitle {
  font-family: var(--font-serif);
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.metrics-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.metric-label svg {
  width: 1.25rem;
  height: 1.25rem;
}

.metric-value {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: bold;
}

.metric-bar {
  width: 100%;
  height: 1rem;
  background-color: var(--secondary);
  border-radius: 9999px;
  overflow: hidden;
}

.metric-fill {
  height: 100%;
  border-radius: 9999px;
  background-color: var(--primary);
  width: 0;
}

.metric-fill.gold {
  background-color: var(--gold);
}

.results-note {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin-top: 2rem;
}

/* ========================================
   VISIÓN SECTION
   ======================================== */
.vision-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

.vision-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.vision-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.vision-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
  flex-shrink: 0;
}

.vision-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.vision-card:hover .vision-image img {
  transform: scale(1.1);
}

.vision-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--secondary), transparent);
}

.vision-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background-color: var(--card);
  border-bottom: 1px solid var(--border);
}

.vision-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.vision-icon.navy,
.vision-icon.primary {
  /* start both with the navy background for visual consistency */
  background-color: var(--navy);
}

.vision-card:hover .vision-icon {
  transform: scale(1.1);
  background-color: var(--primary);
}

.vision-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--navy-foreground);
}

/* Ensure FontAwesome <i> inside vision-icon is visible and centered */
.vision-icon i,
.vision-icon svg {
  display: block;
  line-height: 1;
  font-size: 1.25rem;
  color: var(--navy-foreground);
}

/* If an inline SVG fallback is present prefer it and hide the <i> to avoid duplicates */
.solution-icon.has-svg i,
.vision-icon.has-svg i {
  display: none;
}

.vision-card:hover .vision-icon i,
.vision-card:hover .vision-icon svg {
  color: var(--card);
}

.vision-title {
  font-family: var(--font-sans);
  font-weight: bold;
  font-size: 1.125rem;
  color: var(--foreground);
  filter: none;
}

.vision-content {
  padding: 1.5rem;
}

.vision-description {
  font-family: var(--font-serif);
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.vision-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vision-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.vision-item svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.vision-card:hover .vision-item svg {
  transform: scale(1.25);
}

.vision-text {
  font-family: var(--font-serif);
  font-size: 0.875rem;
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
  background-color: var(--navy);
  color: var(--navy-foreground);
}

.video-container {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 1023px) {
  .video-container {
    grid-template-columns: 1fr;
  }

  .video-container>div:first-child {
    order: 2;
  }

  .video-container>div:last-child {
    order: 1;
  }
}

.video-content h2 {
  font-size: 1.875rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .video-content h2 {
    font-size: 2.25rem;
  }
}

.video-badge {
  display: inline-block;
  border-radius: 9999px;
  background-color: rgba(16, 124, 65, 0.1);
  padding: 0.25rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-in-up 0.5s ease-out 0.1s forwards;
}

.video-description {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fade-in-up 0.5s ease-out 0.3s forwards;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.video-list-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-serif);
  opacity: 0;
  animation: fade-in-up 0.5s ease-out forwards;
}

.video-list-item:nth-child(1) {
  animation-delay: 0.4s;
}

.video-list-item:nth-child(2) {
  animation-delay: 0.5s;
}

.video-list-item:nth-child(3) {
  animation-delay: 0.6s;
}

.video-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background-color: var(--primary);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: bold;
  color: var(--primary-foreground);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.video-list-item:hover .video-counter {
  transform: scale(1.1);
}

.video-button {
  margin-bottom: 1rem;
  opacity: 0;
  animation: fade-in-up 0.5s ease-out 0.7s forwards;
}

.video-player {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 320px;
  border-radius: 1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: all 0.5s ease;
  opacity: 0;
  animation: slide-in-right 0.6s ease-out 0.3s forwards;
}

.video-player:hover {
  box-shadow: 0 0 60px rgba(16, 124, 65, 0.2);
}

.video-player video,
.video-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(10, 25, 47, 0.2);
  cursor: pointer;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background-color: var(--primary);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse-slow 2s ease-in-out infinite;
}

.video-overlay:hover .play-button {
  transform: scale(1.1);
}

.play-button svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary-foreground);
  margin-left: 0.25rem;
  fill: currentColor;
}

.video-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, var(--navy), transparent);
  padding: 1.5rem;
  color: var(--navy-foreground);
}

.video-project {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

.video-title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.video-duration {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* ========================================
   FORMULARIO SECTION
   ======================================== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  animation: fade-in-up 0.5s ease-out forwards;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}

.form-group:nth-child(2) {
  animation-delay: 0.2s;
}

.form-group:nth-child(3) {
  animation-delay: 0.3s;
}

.form-group:nth-child(4) {
  animation-delay: 0.4s;
}

.form-group label {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--foreground);
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  background-color: var(--card);
  color: var(--foreground);
  transition: all 0.3s ease;
}

.form-group input::placeholder {
  color: var(--muted-foreground);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 124, 65, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.contact-form button {
  opacity: 0;
  animation: fade-in-up 0.5s ease-out 0.5s forwards;
}

.form-note {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 1rem;
}

/* ========================================
   FAQ SECTION
   ======================================== */
.bg-card {
  background-color: var(--card);
}

.bg-faq {
  background-color: rgba(16, 124, 65, 0.05);
}

.faq-container {
  max-width: 48rem;
  margin: 0 auto;
}

.accordion {
  width: 100%;
}

.accordion-item {
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fade-in-up 0.5s ease-out forwards;
}

.accordion-item:last-child {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.5rem;
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--foreground);
  text-align: left;
  cursor: pointer;
  transition: color 0.3s ease;
}

.accordion-trigger:hover {
  color: var(--primary);
}

.accordion-trigger svg {
  width: 1.5rem;
  height: 1.5rem;
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--foreground);
}

.accordion-item.open .accordion-trigger svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-item.open .accordion-content {
  max-height: 500px;
}

.accordion-text {
  font-family: var(--font-serif);
  color: var(--muted-foreground);
  padding: 0 1.5rem 1.5rem;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
  background-color: var(--navy);
  color: var(--navy-foreground);
}

.footer-main {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-main {
    grid-template-columns: 1.5fr 1fr 1.2fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand img {
  height: 4rem;
  width: auto;
  margin-bottom: 1rem;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.footer-brand img:hover {
  transform: scale(1.05);
}

.footer-description {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--muted-foreground);
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background-color: var(--primary);
  color: var(--primary-foreground);
  transform: scale(1.1) translateY(-2px);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* EAN accreditation block styling */
.footer-brand-ean .ean-wrap {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand-ean .ean-logo img {
  height: auto;
  max-height: 6rem;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-brand-ean .ean-logo {
  display: flex;
  align-items: flex-start;
}

.footer-brand-ean .ean-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-family: var(--font-sans);
  width: 50%;
  justify-content: center;
  line-height: 1.2;
}

.footer-brand-ean .ean-info .tit {
  /* Match footer section headings */
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-foreground);
  margin: 0 0 0.4rem 0;
  line-height: 1.05;
}

.footer-brand-ean .ean-info a {
  color: #fff;
  font-weight: 400;
  font-size: 0.875rem;
  text-decoration: none;
  font-family: var(--font-sans);
  display: inline-block;
}

.footer-brand-ean .ean-info .ean-resolution {
  display: block;
  margin: 0;
  color: #fff;
  font-weight: 400;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  line-height: 1.15;
}

.footer-brand-ean .ean-info span {
  color: #fff;
  font-weight: 400;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  display: block;
  margin: 0;
  line-height: 1.15;
}

/* Separate EAN block from social links */
.footer-brand-ean .social-links {
  margin-top: 1rem;
}

@media (max-width: 767px) {
  .footer-brand-ean .ean-wrap {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }

  .footer-brand-ean .ean-logo img {
    height: 2.5rem;
  }
}

@media (min-width: 768px) {
  .footer-brand-ean .ean-wrap {
    flex-direction: row;
  }
}

.footer-section h3 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--navy-foreground);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
  margin-top: 2px;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.footer-contact-item:hover svg {
  transform: scale(1.1);
}

.contact-label {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-value {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: var(--navy-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover .contact-value {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copyright {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-legal-link {
  font-family: var(--font-serif);
  font-size: 0.875rem;
  color: var(--muted-foreground);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.footer-legal-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  width: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.footer-legal-link:hover {
  color: var(--primary);
}

.footer-legal-link:hover::after {
  width: 100%;
}

/* ========================================
   UTILITIES
   ======================================== */
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

@media (min-width: 768px) {
  .md\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.hidden {
  display: none;
}

/* ========================================
   MOBILE MENU ANIMATION
   ======================================== */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  border-top: 1px solid var(--border);
}

.mobile-menu.open {
  max-height: 24rem;
  opacity: 1;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--navy);
}

.mobile-menu nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  transition: color 0.3s ease;
}

.mobile-menu nav a:hover {
  color: var(--primary);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }

  .hero-buttons {
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .video-container {
    grid-template-columns: 1fr;
  }
}