/* ===== VARIABLES ===== */
:root {
  --azul-oscuro: #002060;
  --amarillo: #e6b546;
  --blanco: #ffffff;
  --gris: #7c7c7c;
  --transition: all 0.4s ease;
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

/* Animaciones del carrusel */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* ===== SECTION TITLE INTERNA ===== */
.sect_title_interna {
  background-image: url(../../../img/fondo/banner_internas.webp);
  background-repeat: no-repeat;
  background-position: left;
  background-size: 100% 1000%;
  padding: 50px 0;
  position: relative;
  z-index: 1;
  animation: bg 25s infinite linear alternate;
}

@keyframes bg {
  from {
    background-size: 100% 1000%;
  }

  to {
    background-size: 150% 1500%;
    background-position: right;
  }
}

.sect_title_interna::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: #000;
  opacity: 0.5;
  z-index: -1;
}

.h2_title_interna {
  color: var(--amarillo);
  font-weight: 800;
  font-size: 2.5rem;
  margin: 0;
}

.nav_internas {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.list_nav_internas {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  text-align: right;
  display: flex;
  align-items: center;
  gap: 10px;
}

.list_nav_internas > li {
  color: var(--blanco);
  font-weight: 600;
  font-size: 15px;
}

.list_nav_internas > li:last-child {
  color: var(--amarillo);
  font-size: 16px;
  font-weight: 700;
}

.list_nav_internas > li > a {
  font-weight: 600;
  color: var(--blanco);
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
}

.list_nav_internas > li > a:hover {
  color: var(--amarillo);
}

/* ============================================
   ENCABEZADO PRINCIPAL
   ============================================ */

.page-header {
  padding: 25px 0;
  background-color: var(--azul-oscuro);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  max-width: 672px;
  margin: 0 auto;
  text-align: center;
}

.header-subtitle {
  color: var(--amarillo);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.header-title {
  color: var(--blanco);
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
}

.header-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.625;
}

/* ============================================
   CARRUSEL DE LOGOS
   ============================================ */

.carousel-section {
  display: flex;
  padding: 40px 0;
  overflow: hidden;
  position: relative;
  background-color: var(--azul-oscuro);
  align-items: center;
  min-height: 200px;
}

.fade-edge {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.fade-edge::before,
.fade-edge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.fade-edge::before {
  left: 0;
  background: linear-gradient(to right, var(--azul-oscuro), transparent);
}

.fade-edge::after {
  right: 0;
  background: linear-gradient(to left, var(--azul-oscuro), transparent);
}

.carousel-track {
  display: flex;
  /* gap: 48px; */
  align-items: center;
  width: fit-content;
  min-width: 100%;
  will-change: transform;
}

.carousel-track--left {
  animation: scroll-left 40s linear infinite;
}

.carousel-track--right {
  animation: scroll-right 40s linear infinite;
  margin-top: 20px;
}

.carousel-track:hover {
  animation-play-state: paused;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-100% / 3));
  }
}

@keyframes scroll-right {
  0% {
    transform: translateX(calc(-100% / 3));
  }
  100% {
    transform: translateX(0);
  }
}

.logo-group {
  display: flex;
  gap: 48px;
  align-items: center;
  flex-shrink: 0;
  padding: 0 24px;
}

/* ============================================
   ITEMS DE LOGO
   ============================================ */

.logo-item {
  width: 192px;
  height: 96px;
  background-color: var(--blanco);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  filter: grayscale(100%);
  transition: var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}

.logo-item:hover {
  filter: grayscale(0%);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.logo-image {
  width: 100%;
  height: 100%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================
   SECCIÓN DE IMPACTO EN CIFRAS
   ============================================ */

.impact-section {
  background-image: url(../../../../public/img/fondo/banner_contacto.jpg);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--blanco);
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.impact-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 32, 96, 0.85);
  z-index: -1;
}

.impact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.impact-header {
  text-align: center;
  margin-bottom: 60px;
}

.impact-title {
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
  color: var(--blanco);
}

.impact-subtitle {
  color: rgba(255, 255, 255, 0.8);
  max-width: 576px;
  margin: 0 auto;
  font-size: 18px;
}

/* ============================================
   GRID DE ESTADÍSTICAS
   ============================================ */

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px;
  background-color: rgba(255, 255, 255, 0.05);
  /* border-radius: 16px; */
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.08);
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 8px;
  color: var(--amarillo);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blanco);
  margin-bottom: 12px;
}

.stat-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

/* ============================================
   CTA FINAL - ASOCIADOS CONTABLES N&Y
   ============================================ */

/* Sección completa */
.cta-section {
  background-color: var(--azul-oscuro);
  padding: 25px 20px;
}

/* Card principal */
.cta-container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
  /* border-radius: 32px; */
  padding: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  /* box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15); */
}

/* Responsive */
@media (min-width: 768px) {
  .cta-container {
    flex-direction: row;
  }
}

/* Contenido */
.cta-content {
  max-width: 580px;
}

.cta-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--azul-oscuro);
  margin-bottom: 16px;
  line-height: 1.3;
}

.cta-description {
  font-size: 18px;
  color: #4b5563;
  line-height: 1.6;
}

/* Acción */
.cta-action {
  text-align: center;
}

/* Botón */
.cta-button {
  background-color: var(--azul-oscuro);
  color: #ffffff;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
  background-color: #0f1f3d;
  transform: translateY(-2px);
  box-shadow: 0 30px 50px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

/* Nota */
.cta-note {
  margin-top: 10px;
  font-size: 14px;
  color: #6b7280;
  font-style: italic;
}

/* ============================================
   SECCIÓN SERVICIOS RESUMEN
   ============================================ */

.sect_nosotros {
  padding: 80px 0;
  background: var(--azul-oscuro);
}

.title_home {
  text-align: center;
  margin-bottom: 50px;
}

.h2_title_home {
  color: var(--blanco);
  font-weight: 800;
  font-size: 35px;
  margin-bottom: 15px;
}

.h3_subtitle_home {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-weight: 400;
}

.servicio_item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  height: 100%;
  transition: var(--transition);
}

.servicio_item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: var(--blanco);
}

.servicio_icon {
  width: 70px;
  height: 70px;
  background: var(--azul-oscuro);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: var(--transition);
}

.servicio_item:hover .servicio_icon {
  background: var(--amarillo);
  transform: scale(1.1);
}

.servicio_icon i {
  color: var(--blanco);
  font-size: 28px;
}

.servicio_item:hover .servicio_icon i {
  color: var(--azul-oscuro);
}

.servicio_item h5 {
  color: var(--azul-oscuro);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 18px;
}

.servicio_item p {
  color: var(--gris);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
  .header-title {
    font-size: 36px;
  }

  .impact-title {
    font-size: 30px;
  }

  .impact-section,
  .sect_nosotros {
    padding: 60px 0;
  }

  /* .cta-section {
        padding: 0 20px 60px 20px;
    } */
}

@media (max-width: 767px) {
  .sect_title_interna {
    padding: 30px 0;
  }

  .h2_title_interna {
    display: none;
  }

  .nav_internas {
    justify-content: flex-end;
  }

  .list_nav_internas {
    text-align: right;
  }

  .header-title {
    font-size: 30px;
  }

  .header-description {
    font-size: 16px;
  }

  .logo-item {
    width: 160px;
    height: 80px;
    padding: 16px;
  }

  .carousel-track,
  .logo-group {
    gap: 32px;
  }

  .impact-title {
    font-size: 26px;
  }

  .impact-subtitle {
    font-size: 16px;
  }

  .stat-card {
    padding: 24px;
  }

  .stat-number {
    font-size: 40px;
  }

  .cta-container {
    padding: 32px 24px;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-description {
    font-size: 16px;
  }

  .h2_title_home {
    font-size: 28px;
  }

  .h3_subtitle_home {
    font-size: 16px;
  }

  .servicio_item {
    padding: 25px 15px;
  }

  .servicio_icon {
    width: 60px;
    height: 60px;
  }

  .servicio_icon i {
    font-size: 24px;
  }
}

@media (max-width: 575px) {
  .h2_title_interna {
    font-size: 1.75rem;
  }

  .list_nav_internas > li {
    font-size: 13px;
  }

  .list_nav_internas > li:last-child {
    font-size: 14px;
  }

  .header-title {
    font-size: 26px;
  }

  .logo-item {
    width: 128px;
    height: 64px;
  }

  .carousel-track,
  .logo-group {
    gap: 24px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .impact-title,
  .cta-title,
  .h2_title_home {
    font-size: 22px;
  }

  .impact-subtitle,
  .cta-description,
  .h3_subtitle_home {
    font-size: 15px;
  }

  .cta-container {
    padding: 24px 20px;
    /* border-radius: 24px; */
  }

  .servicio_item h5 {
    font-size: 16px;
  }

  .servicio_item p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .header-container,
  .impact-container,
  .cta-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo-item {
    width: 112px;
    height: 56px;
  }
}
