@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Poppins:wght@500;700&display=swap');

:root {
  --color-primario: #007bff;
  --color-secundario: #28a745;
  --color-fondo: #f9f9f7;
  --color-degradado: #e0f7ff;
  --color-texto: #333;
  --color-blanco: #fff;
  --color-gris: #e9ecef;
  --transicion: all 0.3s ease-in-out;
  --sombra: 0 4px 20px rgba(0, 0, 0, 0.05);
  --borde-radio: 10px;
}

/* Reset */
* {
  box-sizing: border-box;
}
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, var(--color-fondo) 0%, var(--color-degradado) 100%);
  color: var(--color-texto);
  line-height: 1.6;
}
h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}
h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #222;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Header & Nav */
header {
  background-color: #f7fbfc;
  padding: 10px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(3px);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px 20px;
}

header .logo {
  max-width: 260px;
}
header .logo img {
  width: 100%;
  height: auto;
  display: block;
}

.logo img {
  max-height: 50px;
  vertical-align: middle;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: var(--transicion);
  padding: 5px 10px;
  border-radius: 5px;
}
nav ul li a:hover {
  color: var(--color-primario);
  background-color: rgba(0, 123, 255, 0.05);
}

/* Botón CTA */
nav ul li .cta {
  position: relative;
  display: inline-block;
  padding: 10px 18px;
  border-radius: 30px;
  background-color: var(--color-primario);
  color: var(--color-blanco);
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  z-index: 0;
  isolation: isolate;
}

nav ul li .cta:hover {
  background-color: #0056b3;
}

nav ul li .cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 150%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  transform: skewX(-30deg);
  transition: left 0.5s ease;
  z-index: -1;
  pointer-events: none;
}

nav ul li .cta:hover::before {
  left: 100%;
}

/* HERO */
.hero {
  background: linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.4)), url('../images/fondo.jpg') center/cover no-repeat;
  color: white;
  padding: 120px 20px;
  text-align: left;
}

.hero-content {
  max-width: 700px;
}
.hero-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

/* CTA Botones */
.cta-primary,
.cta-secondary {
  padding: 12px 25px;
  border-radius: var(--borde-radio);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: var(--transicion);
  text-align: center;
}

.cta-primary {
  background-color: var(--color-secundario);
  color: var(--color-blanco);
}
.cta-primary:hover {
  background-color: #1e7e34;
}

.cta-secondary {
  background-color: var(--color-primario);
  color: var(--color-blanco);
}
.cta-secondary:hover {
  background-color: #0056b3;
}

/* SECTION General */
section {
  padding: 80px 20px;
}

/* BENEFITS */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}
.benefit-item {
  background-color: var(--color-blanco);
  padding: 25px;
  border-radius: var(--borde-radio);
  box-shadow: var(--sombra);
  transition: transform 0.2s;
}
.benefit-item:hover {
  transform: translateY(-5px);
}
.benefit-item img {
  width: 60px;
  margin-bottom: 15px;
}

/* FEATURES */
.features {
  background-color: var(--color-gris);
}
.features ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.features ul li {
  background-color: var(--color-blanco);
  padding: 20px;
  border-radius: var(--borde-radio);
  box-shadow: var(--sombra);
}

/* FEATURE LIST secundaria */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 30px auto 0;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.feature-list li {
  background: #fff;
  padding: 15px 20px;
  border-left: 5px solid var(--color-secundario);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-size: 1em;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.feature-list li::before {
  content: "✔";
  color: var(--color-secundario);
  font-weight: bold;
  font-size: 1.2em;
}
.feature-list li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* PRICING */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.pricing-card {
  background-color: var(--color-blanco);
  padding: 30px;
  border-radius: var(--borde-radio);
  box-shadow: var(--sombra);
  text-align: center;
  transition: transform 0.3s ease;
}
.pricing-card:hover {
  transform: scale(1.03);
}
.pricing-card.popular {
  background: linear-gradient(to right, #007bff, #0056b3);
  color: white;
}
.pricing-card.popular a {
  background-color: #ffffff;
  color: #007bff;
}
.pricing-card h3 {
  margin-top: 0;
  font-size: 1.5em;
}
.price {
  font-size: 2em;
  margin: 15px 0;
}
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}
.pricing-card ul li {
  border-bottom: 1px solid #ddd;
  padding: 8px 0;
}

/* CONTACT */
.contact {
  background-color: var(--color-gris);
  text-align: center;
}
.contact form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.contact input,
.contact textarea {
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: var(--borde-radio);
}
.contact textarea {
  resize: vertical;
  min-height: 100px;
}
.contact button {
  background-color: var(--color-secundario);
  color: white;
  padding: 14px;
  font-weight: bold;
  font-size: 1em;
  border: none;
  border-radius: var(--borde-radio);
  transition: var(--transicion);
  cursor: pointer;
}
.contact button:hover {
  background-color: #1e7e34;
}

/* INPUT CON ICONO */
.input-icon {
  position: relative;
  width: 100%;
}
.input-icon i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  font-size: 1em;
  pointer-events: none;
}
.input-icon input {
  width: 100%;
  padding: 10px 10px 10px 38px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

/* FOOTER */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 30px 0;
  font-size: 0.9em;
}
footer a {
  color: #00aaff;
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

/* --- ESTILOS RESPONSIVE Y MENÚ --- */

/* Mostrar menú siempre en escritorio */
#main-nav {
  display: block;
}

/* Ocultar menú en móvil por defecto */
@media (max-width: 768px) {
  #main-nav {
    display: none;
    width: 100%;
    
  }


  /* Mostrar menú cuando tiene clase open */
  #main-nav.open {
    display: block;
  }

  /* Botón toggle visible solo en móvil */
  .menu-toggle {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primario);
    transition: transform 0.3s ease;
  }

  .menu-toggle.open {
    transform: rotate(90deg);
    color: #dc3545;
  }
}

/* En escritorio, ocultar botón toggle */
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}

/* =========================================
   CLIENTES - PASARELA INFINITA
========================================= */

.clientes {
    background: #ffffff;
    padding: 60px 0;
    overflow: hidden;
}

.clientes h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2rem;
    color: #222;
}

.logos-slider {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scrollLogos 30s linear infinite;
}

.logos-track img {
    width: 160px;
    height: 80px;
    object-fit: contain;

    filter: grayscale(100%);
    opacity: 0.8;

    transition: all 0.3s ease;

    background: #fff;
    padding: 10px;
    border-radius: 10px;
}

.logos-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

/* Animación infinita */
@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Responsive */
@media (max-width: 768px) {

    .logos-track {
        gap: 30px;
    }

    .logos-track img {
        width: 100px;
    }

    .clientes h2 {
        font-size: 1.5rem;
    }
}

/* =========================================
   PARTNERS
========================================= */

.partners {
    padding: 70px 0;
    background: #f8f9fc;
    text-align: center;
}

.partners h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #222;
}

.partners-subtitle {
    color: #666;
    margin-bottom: 50px;
    font-size: 1rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-item {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);

    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.partner-item img {
    width: 140px;
    height: 70px;
    object-fit: contain;
}

/* =========================================
   HERO SLIDER
========================================= */

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;

    background-size: cover;
    background-position: center;

    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.55);

    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    margin: auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

}

/* =========================================
   STATS PREMIUM LIGHT
========================================= */

.stats {

    position: relative;

    overflow: hidden;

    padding: 100px 0;

    background: #ffffff;
}

/* Partículas suaves */

.particles::before,
.particles::after {

    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    background:
    rgba(56, 189, 248, 0.08);

    filter: blur(70px);

    z-index: 0;
}

.particles::before {

    top: -120px;
    left: -120px;
}

.particles::after {

    bottom: -120px;
    right: -120px;
}

/* Header */

.stats-header {

    position: relative;

    z-index: 2;

    text-align: center;

    margin-bottom: 60px;
}

.stats-header h2 {

    font-size: 2.5rem;

    color: #0f172a;

    margin-bottom: 15px;
}

.stats-header p {

    color: #64748b;

    max-width: 700px;

    margin: auto;
}

/* Grid */

.stats-grid {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
    repeat(auto-fit, minmax(220px, 1fr));

    gap: 30px;
}

/* Cards */

.stat-box {

    background: #ffffff;

    border-radius: 25px;

    padding: 40px 20px;

    text-align: center;

    border: 1px solid #e2e8f0;

    box-shadow:
    0 8px 25px rgba(15,23,42,0.05);

    transition: all 0.3s ease;

    position: relative;

    overflow: hidden;
}

.stat-box:hover {

    transform: translateY(-8px);

    box-shadow:
    0 15px 35px rgba(56,189,248,0.15);
}

/* Glow suave */

.stat-box::before {

    content: "";

    position: absolute;

    width: 120px;
    height: 120px;

    background:
    radial-gradient(circle,
    rgba(56,189,248,0.15),
    transparent);

    top: -30px;
    right: -30px;
}

/* Íconos */

.stat-icon {

    font-size: 2.7rem;

    margin-bottom: 20px;

    color: #0ea5e9;

    animation: floatIcon 3s ease-in-out infinite;
}

@keyframes floatIcon {

    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-6px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Contadores */

.stat-box h2 {

    display: inline-block;

    font-size: 3rem;

    color: #0f172a;
}

.plus {

    color: #0ea5e9;

    font-size: 2rem;

    margin-left: 5px;
}

.stat-box p {

    margin-top: 15px;

    color: #64748b;

    font-size: 1rem;
}

/* MINI DASHBOARD */

.mini-dashboard {

    position: relative;

    z-index: 2;

    margin-top: 80px;

    display: flex;

    justify-content: center;
}

.dashboard-card {

    width: 320px;

    height: 180px;

    background: #ffffff;

    border-radius: 25px;

    padding: 30px;

    display: flex;

    align-items: flex-end;

    gap: 15px;

    border: 1px solid #e2e8f0;

    box-shadow:
    0 10px 30px rgba(15,23,42,0.06);
}

/* Barras */

.bar {

    width: 45px;

    border-radius: 10px 10px 0 0;

    background:
    linear-gradient(to top,
    #0284c7,
    #38bdf8);

    animation: pulseBars 2s infinite ease-in-out;
}

.bar1 { height: 60px; }
.bar2 { height: 100px; animation-delay: .2s; }
.bar3 { height: 140px; animation-delay: .4s; }
.bar4 { height: 90px; animation-delay: .6s; }

@keyframes pulseBars {

    0% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.08);
    }

    100% {
        transform: scaleY(1);
    }
}

/* Responsive */

@media (max-width: 768px) {

    .stats-header h2 {
        font-size: 2rem;
    }

    .stat-box h2 {
        font-size: 2.3rem;
    }

    .dashboard-card {
        width: 100%;
    }
}