:root {
  --rojo: #aa3824;
  --amarillo: #F2B90C;
  --texto: #0F172A;
  --gris: #334155;
  --gris-claro: #E5E7EB;
  --blanco: #FFFFFF;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--texto);
  background: var(--blanco);
}

/* =========== ANIMACIONES ============ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}


.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 2rem;
  padding-top: 8rem;
  padding-bottom: 3rem;
  width: min(1150px, 90%);
  margin-inline: auto;
}

.hero-left h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease;
}

.hero-left .sub {
  color: var(--gris);
  margin-bottom: 1.5rem;
  max-width: 600px;
  animation: fadeInLeft 0.8s ease 0.2s backwards;
}

.actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.3rem;
  font-weight: 600;
  border-radius: 0.7rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}
.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  border: 2px solid var(--rojo);
  color: var(--rojo);
  background: var(--blanco);
}
.btn-primary:hover {
  background: #a00c24;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(170, 56, 36, 0.3);
}

.btn-outline {
 
  color: var(--blanco);
  background: var(--rojo);
}
.btn-outline:hover {
  background: var(--rojo);
  color: var(--blanco);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(170, 56, 36, 0.2);
}

.metrics-card {
  background: var(--blanco);
  border: 1px solid var(--gris-claro);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  animation: fadeInRight 0.8s ease 0.3s backwards;
  transition: all 0.3s ease;
}
.metrics-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.metrics-card ul {
  list-style: none;
  display: grid;
  gap: 1.2rem;
}
.metrics-card li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.5rem;
  border-radius: 0.5rem;
}
.metrics-card li:nth-child(1) { animation: fadeInLeft 0.6s ease 0.5s backwards; }
.metrics-card li:nth-child(2) { animation: fadeInLeft 0.6s ease 0.7s backwards; }
.metrics-card li:nth-child(3) { animation: fadeInLeft 0.6s ease 0.9s backwards; }
.metrics-card li:hover {
  background: var(--gris-claro);
  transform: translateX(8px);
}
.metrics-card .icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--gris-claro);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}
.metrics-card li:hover .icon {
  background: var(--rojo);
  color: var(--blanco);
  transform: rotate(360deg) scale(1.1);
}
.metrics-card strong {
  display: block;
  color: var(--texto);
}
.metrics-card small {
  color: var(--gris);
}

.about {
  padding: 4rem 0;
  width: min(1150px, 90%);
  margin-inline: auto;
}
.about-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 3rem;
}
.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--rojo);
  margin-bottom: 1.2rem;
  line-height: 1.3;
  animation: fadeInDown 0.8s ease;
}
.about-text h2 span {
  color: var(--texto);
}
.about-text h3 {
  color: var(--texto);
  font-size: 1.25rem;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  animation: fadeInLeft 0.8s ease 0.2s backwards;
}
.about-text p {
  color: var(--gris);
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: justify;
  animation: fadeIn 1s ease 0.4s backwards;
}
.about-text strong {
  color: var(--rojo);
}
.about-image {
  animation: fadeInRight 0.8s ease 0.3s backwards;
}
.about-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  object-fit: cover;
  transition: all 0.3s ease;
}
.about-image:hover img {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}


footer {
  background: var(--rojo);
  text-align: center;
  padding: 1.5rem 1rem;
  color: var(--blanco);
  font-size: 0.9rem;
  animation: fadeIn 1.2s ease;
}

/* ============RESPONSIVE=============== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .metrics-card {
    justify-self: center;
    margin-top: 1.5rem;
  }
  .about-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-text p {
    text-align: left;
  }
  .about-image {
    margin-top: 1.5rem;
  }
}


@media (max-width: 960px) {
  .metrics-card {
    text-align: center;
    margin: 1.5rem auto;
    width: 90%;
  }
  .metrics-card ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
  }
  .metrics-card li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.6rem 0;
    transform: none !important;
  }
  .metrics-card .icon {
    margin-bottom: 0.3rem;
    transform: none !important;
  }
  .metrics-card strong,
  .metrics-card small {
    display: block;
    text-align: center;
    width: 100%;
    line-height: 1.4;
  }
  .metrics-card li:hover {
    transform: none;
    background: var(--gris-claro);
  }
}

@media (max-width: 960px) {
  .actions {
    justify-content: center; 
    text-align: center; 
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
