:root {
  /* Variables de color y transición reutilizables */
  --primary-color: #1a73e8; /* Azul Google  ✓ */
  --primary-dark: #003d82; /* Azul oscuro para contrastes ✓ */
  --primary: #00b392; /* Color verde claro primario   ✓ */   
  --teal-color: #005f73; /* color azul-verdoso ✓ */
  --accent: #ff6b00; /* Color naranja ✓ */
  --white: #ffffff; /* Blanco puro ✓ */
  --transition: all 0.3s ease; /* Transición suave ✓ */
  --easing: cubic-bezier(0.25, 0.46, 0.45, 0.94); /*  ✓ */
}

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

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
}

/* Contenedor general */
.container {
  width: 90%;                  /* Ancho relativo */
  max-width: 1200px;              /* Ancho máximo del contenido */
  margin: 0 auto;                 /* Centrado horizontal */
  padding: 0 15px;                /* Padding lateral responsive */
}

section {
  scroll-margin-top: 80px; /* Altura de tu header */
  padding-top: 30px; /* Espacio adicional */
}

#inicio {
  scroll-margin-top: 0; /* La sección inicio no necesita ajuste */
}

/* Títulos */
h1, h2, h3, h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  color: #f8f9fa; /*  color blanco de encabezado h1*/
}

h2 {
  font-size: 2rem;
  border-bottom: 2px solid var(--teal-color);
  padding-bottom: 0.5rem;
  color: #202124;
}

h3 {
  font-size: 1.5rem;
  color: var(--dark);
}

h4 {
  font-size: 1.2rem;
  color: var(--teal-color);
}

/* Párrafos */
p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}


a {
  text-decoration: none;          /* Sin subrayado */
  color: var(--secondary-color);  /* Color de enlaces */
  transition: var(--transition);  /* Transición suave para hover */
}

/* ENCABEZADO DE PÁGINA */
/* 
 * HEADER Y NAVEGACIÓN 
 * Barra de navegación superior fija
 */
header {
  position: fixed; /* Fijo en la parte superior */
  top: 0; /* Alineado arriba */
  left: 0; /* Alineado a la izquierda */
  width: 100%; /* Ancho completo */
  background-color: var(--white); /* Fondo blanco */
  box-shadow: 0 5px 30px rgb(255, 255, 255); /* Sombra blanca */
  z-index: 1000; /* Sobre otros elementos */
  transition: var(--transition); /* Transición suave */
  border-radius: 0px 0px 70px 70px; /* marjen curveado del inicio  */
}

.navbar {
  display: flex; /* Disposición flexible */
  justify-content: space-between; /* Espacio entre elementos */
  align-items: center; /* Centrado vertical */
  padding: 10px 0; /* Espaciado vertical */
}

.logo img {
  height: 50px; /* Altura del logo */
  transition: var(--transition); /* Transición suave */
}

/* Efecto hover en logo */
.logo img:hover {
  transform: scale(1.05); /* Ligero aumento de tamaño */
}

.nav-links {
  display: flex; /* Disposición en línea */
  list-style: none; /* Sin viñetas */
}

.nav-links li {
  margin-left: 30px; /* Espacio entre elementos */
}

.nav-link {
  color: var(--text-color); /* Color de texto */
  font-weight: 600; /* Grosor de fuente */
  position: relative; /* Para pseudo-elemento */
  padding: 5px 0; /* Espaciado interno */
}

/* Subrayado animado */
.nav-link::after {
  content: ""; /* Pseudo-elemento vacío */
  position: absolute; /* Posicionamiento absoluto */
  bottom: 0; /* Alineado abajo */
  left: 0; /* Alineado a la izquierda */
  width: 0; /* Inicialmente invisible */
  height: 2px; /* Grosor del subrayado */
  background-color: var(--primary-color); /* Color azul */
  transition: var(--transition); /* Transición suave */
}

/* Efecto hover y estado activo */
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%; /* Ancho completo */
}

.nav-link.active {
  color: var(--primary-color); /* Color azul para activo */
}

/* Menú móvil (oculto por defecto) */
.mobile-menu {
  display: none; /* Oculto en desktop */
  font-size: 1.5rem; /* Tamaño de icono */
  cursor: pointer; /* Cursor pointer */
  color: var(--primary-color); /* Color azul */
}

/* Selector de tema  opcional*/
.theme-switcher {
  background: none; /* Sin fondo */
  border: none; /* Sin borde */
  font-size: 1.2rem; /* Tamaño de icono */
  cursor: pointer; /* Cursor pointer */
  color: var(--primary-color); /* Color azul */
  transition: var(--transition); /* Transición suave */
}

/* Efecto hover en selector de tema */
.theme-switcher:hover {
  color: var(--secondary-color); /* Color azul oscuro */
  transform: rotate(30deg); /* Rotación */
}

/* 
 * HERO SECTION 
 * Sección principal con imagen de fondo
 */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("../empresa.png") center/cover; /* Imagen con overlay oscuro */
  color: white; /* Texto blanco */
  padding: 180px 0 100px; /* Espaciado interno */
  text-align: center; /* Centrado */
  margin-top: 80px; /* Compensa el header fijo */
}

.hero h1 {
  font-size: 3.5rem; /* Tamaño grande */
  margin-bottom: 1.8rem; /* Espaciado inferior */
  color: white; /* Texto blanco */
  line-height: 1.2; /* Espaciado de línea */
  font-weight: 700; /* Grosor de fuente */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* Sombra de texto */
}

.hero p {
  font-size: 1.35rem; /* Tamaño de fuente */
  max-width: 700px; /* Ancho máximo para legibilidad */
  margin: 0 auto 3rem; /* Centrado con margen inferior */
  color: rgba(247, 243, 243, 0.9); /* Blanco semi-transparente */
  line-height: 1.7; /* Espaciado de línea */
}

/* Feature Container /* BLOQUE DESTACADO DE FUNCIONES */*/
.feature-container {
  background: white;
  border-radius: 12px;
  padding: 40px;
  margin: 40px 0;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.feature-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--teal-color);
}

.feature-icon {
  font-size: 3rem;
  color: #005f73;
  margin-right: 25px;
  min-width: 60px;
  text-align: center;
}
/* CONTENIDO EN DOS COLUMNAS */
.feature-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.feature-section {
  margin-bottom: 30px;
}

/* Lista de beneficios */
.benefits-list {
  list-style-type: none;
  padding-left: 0;
}

.benefits-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.benefits-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--teal-color);
  position: absolute;
  left: 0;
}

/* Línea de tiempo */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 3px;
  background: linear-gradient(to bottom, var(--teal-color), var(--primary));
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
  border-radius: 3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}
.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 25px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.timeline-item::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: white;
  border: 3px solid var(--accent);
  border-radius: 50%;
  top: 20px;
  z-index: 1;
}
/* Posicionamiento de puntos de la línea de tiempo */
.timeline-item:nth-child(odd)::before {
  right: -10px;
}
.timeline-item:nth-child(even)::before {
  left: -10px;
}

/* Carrusel de Imágenes */
.carousel-container {
  width: 100%;
  max-width: 1000px;
  margin: 40px auto;
  position: relative;
}

.carousel {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.carousel-inner {
  height: 500px;
  background-color: var(--dark);
  overflow: hidden;
  position: relative;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition-speed) var(--easing);
}

.carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
  transition: filter 0.7s ease;
}

.carousel-item.active img {
  filter: blur(0);
}

/* TEXTO SOBRE IMAGEN */
.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.911), transparent);
  color: rgba(245, 236, 236, 0.885);
  padding: 30px;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  z-index: 2;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.carousel-item.active .carousel-caption {
  transform: translateY(0);
  opacity: 1;
}

/* CONTROLES DEL CARRUSEL */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary-color);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
  opacity: 0.8;
}

.carousel-control:hover {
  transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
  left: 20px;
}
.carousel-control.next {
  right: 20px;
}

/* INDICADORES (puntos del carrusel) */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.indicator.active {
  background: var(--teal-color);
  transform: scale(1.2);
  opacity: 1;
}

/* Botón de volver */
/* Back button --> Botón "Volver al inicio" */
.back-button {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: var(--teal-color);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 95, 115, 0.3);
  margin: 40px auto;
  font-family: inherit;
  font-size: 1rem;
}

.back-button i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.back-button:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 25px rgba(0, 95, 115, 0.4);
  background: #004d5c;
  color: white;
}

.back-button:hover i {
  transform: translateX(-3px);
}

.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: 0.5s;
}

.back-button:hover::before {
  left: 100%;
}

/*  opcional -- Versión outline para el botón de volver */
.back-button.outline {
  background-color: transparent;
  border: 2px solid var(--teal-color);
  color: var(--teal-color);
  box-shadow: none;
}

.back-button.outline:hover {
  background-color: var(--teal-color);
  color: white;
}

.back-button.outline::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Efecto al hacer clic */
.back-button:active {
  transform: translateY(-1px);
}

/* PIE DE PÁGINA */
/* Footer  PIE - Información de contacto y enlaces */
footer {
  background: linear-gradient(135deg, #1b1a1a 0%, #2a2929 100%);
  color: var(--white);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}
/* Efecto de patrón sutil */
footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.3;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
  position: relative;
}

.footer-column h3 {
  color: var(--white);
  margin-bottom: 1.8rem;
  font-size: 1.4rem;
  position: relative;
  display: inline-block;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.footer-column:hover h3::after {
  width: 80px;
}

.footer-column p,
.footer-column a {
  color: rgba(255, 255, 255, 0.8);
  display: block;
  margin-bottom: 1rem;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.footer-column a {
  position: relative;
  padding-left: 0;
}

.footer-column a::before {
  content: '→';
  position: absolute;
  left: -15px;
  opacity: 0;
  transition: all 0.3s ease;
}

.footer-column a:hover {
  color: var(--white);
  padding-left: 15px;
}

.footer-column a:hover::before {
  opacity: 1;
  left: 0;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(5px);
  color: var(--white);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-links a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, var(--primary-color), rgba(255,255,255,0.2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-links a:hover {
  background: transparent;
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.social-links a:hover::after {
  opacity: 1;
}

.social-links a i {
  position: relative;
  z-index: 1;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  position: relative;
}

/* BARRA DE REDES SOCIALES FLOTANTES EXCLUSIVAS */
.social-bar-container {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.social-bar-left {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 12px 12px 0;
    overflow: hidden;
}

.social-bar-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    position: relative;
    transition: all 0.3s ease;
}

.social-bar-link i {
    font-size: 20px;
    color: white;
    transition: transform 0.3s ease;
}

.social-bar-link .social-bar-text {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    padding: 5px 10px;
    border-radius: 0 4px 4px 0;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    margin-left: 5px;
}

.social-bar-link:hover {
    width: 60px;
}

.social-bar-link:hover i {
    transform: scale(1.1);
}

.social-bar-link:hover .social-bar-text {
    opacity: 1;
    margin-left: 10px;
}

/* Colores específicos para cada red */
.social-bar-facebook { background-color: #1877F2; }
.social-bar-tiktok { background-color: #000000; }
.social-bar-twitter { background-color: #1DA1F2; }
.social-bar-youtube { background-color: #FF0000; }
.social-bar-web { background-color: #4CAF50; }

/* Versión móvil */
@media (max-width: 768px) {
    .social-bar-container {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        transform: none;
    }
    
    .social-bar-left {
        flex-direction: row;
        width: 100%;
        border-radius: 12px 12px 0 0;
        justify-content: center;
    }
    
    .social-bar-link {
        width: 45px;
        height: 45px;
    }
    
    .social-bar-link:hover {
        width: 45px;
    }
    
    .social-bar-text {
        display: none !important;
    }
}


/* 
 * DISEÑO RESPONSIVE 
 * Adaptaciones para diferentes tamaños de pantalla
 */
/* Media Queries */
@media (max-width: 768px) {
  .nav-links {
    position: fixed; /* Posición fija */
    top: 0; /* Alineado arriba */
    left: -100%; /* Fuera de vista inicialmente */
    width: 80%; /* Ancho del 80% */
    height: 100vh; /* Altura completa */
    background: linear-gradient(135deg, var(--teal-color)); /* Fondo azul-verdoso */
    flex-direction: column; /* Disposición vertical */
    align-items: flex-start; /* Alineado a la izquierda */
    justify-content: center; /* Centrado vertical */
    padding: 80px 30px 30px; /* Espaciado interno */
    transition: var(--transition); /* Transición suave */
    z-index: 999; /* Sobre otros elementos */
  }
  /* Menú activo (visible) */
  .nav-links.active {
    left: 0; /* Visible */
  }

  .nav-links li {
    margin: 10px 0; /* Espaciado entre elementos */
    width: 100%; /* Ancho completo */
  }

  .nav-link {
    display: block; /* Comportamiento de bloque */
    padding: 15px 20px; /* Espaciado interno */
    font-size: 1.2rem; /* Tamaño de fuente */
    color: white; /* Texto blanco */
    border-radius: 8px; /* Bordes redondeados */
  }
  /* Elemento activo en móvil */
  .nav-link.active {
    background-color: rgba(255, 255, 255, 0.329); /* Fondo semitransparente */
  }
  /* Icono de menú móvil */
  .mobile-menu {
    display: flex; /* Mostrar en móvil */
    align-items: center; /* Centrado vertical */
    justify-content: center; /* Centrado horizontal */
    width: 50px; /* Ancho */
    height: 50px; /* Alto */
    cursor: pointer; /* Cursor pointer */
    z-index: 1000; /* Sobre otros elementos */
  }
  /* Overlay del menú móvil */
  .menu-overlay {
    position: fixed; /* Posición fija */
    top: 0; /* Alineado arriba */
    left: 0; /* Alineado a la izquierda */
    width: 100%; /* Ancho completo */
    height: 100%; /* Alto completo */
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    z-index: 998; /* Debajo del menú */
    opacity: 0; /* Transparente inicialmente */
    visibility: hidden; /* Oculto */
    transition: var(--transition); /* Transición suave */
  }

  /* Overlay visible cuando el menú está activo */
  .menu-overlay.active {
    opacity: 1; /* Visible */
    visibility: visible; /* Visible */
  }
}

/* Tablet (992px) */
/* Tablet (992px) */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem; /* Tamaño de fuente reducido */
  }

  section {
    padding: 60px 0; /* Espaciado reducido */
  }
}

/* Tablet pequeña (768px) */
@media (max-width: 768px) {
  .hero {
    padding: 180px 0 100px; /* Espaciado ajustado */
  }

  .hero h1 {
    font-size: 2rem; /* Tamaño de fuente reducido */
  }

  .hero p {
    font-size: 1.1rem; /* Tamaño de fuente reducido */
  }

  .hero-buttons {
    flex-direction: column; /* Disposición vertical */
    gap: 15px; /* Espacio entre botones */
  }

  .section h2 {
    font-size: 2rem; /* Tamaño de fuente reducido */
  }
}

/* Móvil (576px) */
@media (max-width: 576px) {
  .hero h1 {
    font-size: 1.8rem; /* Tamaño de fuente reducido */
  }

  .section h2 {
    font-size: 1.8rem; /* Tamaño de fuente reducido */
  }

  .features-grid {
    grid-template-columns: 1fr; /* Una sola columna */
  }
}