/* ==============================
   Reset y variables globales
   ============================== */
:root {
  --primary: #006eff;
  --secondary: #83c5be;
  --accent: #edf6f9;
  --dark: #011627;
  --light: #ffffff;
  --radius: 8px;

  /* Alturas de header para scroll-margin */
  --header-height: 80px;
  --header-height-mobile: 60px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--accent);
  color: var(--dark);
  line-height: 1.6;
}

/* ==============================
   Navbar
   ============================== */
header {
  background: var(--light);
  position: sticky;
  top: 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 100;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  height: var(--header-height);
  overflow: visible;
}

/* Empuja anclas para que no queden tapadas por el header */
#conocenos-header,
#conocenos-content,
#examples-cards {
  scroll-margin-top: var(--header-height);
}

@media (max-width: 768px) {
  #conocenos-header,
  #conocenos-content,
  #examples-cards {
    scroll-margin-top: var(--header-height-mobile);
  }
}

/* Contenedor interno de navbar */
.navbar .nav-content {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Oculta título y sustituye por logo */
.navbar h1 {
  display: none;
}

/* Enlaces de navegación */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  position: relative;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(-10px);
  animation: navSlide 0.4s ease-out forwards;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.1s ease;
}
.nav-links li:nth-child(1) a { animation-delay: 0.1s; }
.nav-links li:nth-child(2) a { animation-delay: 0.2s; }
.nav-links li:nth-child(3) a { animation-delay: 0.3s; }
.nav-links li:nth-child(4) a { animation-delay: 0.4s; }
.nav-links li:nth-child(5) a { animation-delay: 0.5s; }
.nav-links a:hover {
  background-color: var(--primary);
  color: var(--light);
}
.nav-links a:active {
  transform: translateY(2px);
}

/* Icono hamburguesa */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--dark);
}

/* ==============================
   Logo sobresaliente
   ============================== */
.logo {
  height: 70px;
  margin: -85px 0 0;       /* centrar vertical respecto al header */
  transform: translateY(70%);
  display: block;
}

/* ==============================
   Ajustes en móvil (<768px)
   ============================== */
@media (max-width: 768px) {

  /* Navbar más compacta */
  .navbar {
    height: var(--header-height-mobile);
    padding: 0.5rem 1rem;
  }

  /* Logo: ajusta tamaño, desplaza arriba/abajo y ajústalo a la derecha */
  .logo {
    height: 50px;
    margin: 0;
    transform: translateY(-5%);
    margin-left: auto;      /* empuja el logo al extremo derecho */
  }

  /* Oculta nav-links y muestra hamburguesa */
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
}

/* ==============================
   Hero
   ============================== */
   /* Botón en Hero */
.hero .hero-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--light);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.1s ease;
}
.hero .hero-btn:hover {
  background: var(--dark);
  transform: translateY(-2px);
}
.hero .hero-btn:active {
  transform: translateY(1px);
}


.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  background: #000;
  color: #fff;
  position: relative;
  min-height: 100vh;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  z-index: 0;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary);
}
.hero p {
  font-size: 1.1rem;
  margin-bottom: 30px;
}
/* ==============================
   Animated Text
   ============================== */
.animated-text .card-animation {
  --bg-color: #000;
  background: var(--bg-color);
  padding: 1rem 2rem;
  border-radius: 1.25rem;
  display: inline-block;
  animation: glow 2s infinite alternate;
  transition: transform 0.3s ease;
}
.animated-text .card-animation:hover {
  transform: scale(1.1) rotate(-1deg);
}
.animated-text .loader {
  color: #7c7c7c;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 25px;
  display: flex;
  padding: 10px;
  border-radius: 8px;
}
.animated-text .words {
  overflow: hidden;
  position: relative;
  display: inline-block;
  vertical-align: bottom;
}
.animated-text .words::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    var(--bg-color) 10%,
    transparent 30%,
    transparent 70%,
    var(--bg-color) 90%
  );
  z-index: 20;
}
.animated-text .word {
  display: block;
  height: 100%;
  padding-left: 6px;
  color: #FF00FF;
  text-shadow:
    0 0 5px #FF00FF,
    0 0 10px #FF00FF,
    0 0 20px #FF00FF,
    0 0 40px #FF00FF;
  animation: spin_4991 4s infinite;
}

/* ==============================
   Layout
   ============================== */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: grid;
  gap: 4rem;
}
section > h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
}
section > h2::after {
  content: "";
  width: 50px;
  height: 4px;
  background: var(--primary);
  position: absolute;
  bottom: -8px;
  left: 0;
  border-radius: var(--radius);
}

/* ==============================
   Services Cards
   ============================== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
}
.card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:nth-child(4) { animation-delay: 0.8s; }
.card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}
.card:active {
  transform: translateY(-8px) scale(1.03);
}

/* ==============================
   Testimonials
   ============================== */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2.5rem;
}
.testimonial {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
}
.testimonial:nth-child(1) { animation-delay: 1s; }
.testimonial:nth-child(2) { animation-delay: 1.2s; }
.testimonial:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.testimonial:active {
  transform: translateY(-4px);
}

/* ==============================
   Contact Section
   ============================== */
.contact {
  background: var(--primary);
  color: var(--light);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.contact .container {
  position: relative;
  width: 100%;
  height: 200px;
  margin-bottom: 1.5rem;
}
.contact .container .loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 100px;
  margin: -50px 0 0 -80px;
  border-radius: 5px;
  background: #1e3f57;
  animation: dot1_ 3s cubic-bezier(0.55,0.3,0.24,0.99) infinite;
}
.contact .container .loader:nth-child(2) {
  width: 150px;
  height: 90px;
  margin: -45px 0 0 -75px;
  background: #3c517d;
  animation-name: dot2_;
}
.contact .container .loader:nth-child(3) {
  width: 40px;
  height: 20px;
  margin: 50px 0 0 -20px;
  border-radius: 0 0 5px 5px;
  background: #6bb2cd;
  animation-name: dot3_;
}
.contact button {
  background: var(--secondary);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.3s ease;
}
.contact button:hover {
  opacity: 0.9;
  transform: translateY(-4px) scale(1.05);
}

/* ==============================
   Footer
   ============================== */
footer {
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: #555;
}

/* ==============================
   Sidebar (móvil)
   ============================== */
.sidebar {
  position: fixed;
  left: -280px;
  top: 0;
  width: 280px;
  height: 100vh;
  background: var(--light);
  padding: 2rem;
  transition: left 0.4s;
  z-index: 2000;
  overflow: auto;
}
.sidebar.active {
  left: 0;
}
.close-btn {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: var(--dark);
  cursor: pointer;
  transition: transform 0.3s;
}
.close-btn:hover {
  transform: rotate(90deg);
}
.sidebar-links {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.sidebar-links a {
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--dark);
  transition: all 0.3s;
}
.sidebar-links a:hover {
  background: rgba(0,0,0,0.05);
  transform: translateX(10px);
}

/* ==============================
   Animaciones generales
   ============================== */
@keyframes navSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow {
  from { box-shadow: 0 0 5px #444; }
  to   { box-shadow: 0 0 20px #888; }
}
@keyframes spin_4991 {
  0%   { transform: translateY(0); }
  20%  { transform: translateY(-100%); }
  40%  { transform: translateY(-200%); }
  60%  { transform: translateY(-300%); }
  80%  { transform: translateY(-400%); }
  100% { transform: translateY(0); }
}
@keyframes dot1_ {
  3%,97%  { width:160px; height:100px; margin:-50px 0 0 -80px; }
  30%,36% { width:80px;  height:120px; margin:-60px 0 0 -40px; }
  63%,69% { width:40px;  height:80px;  margin:-40px 0 0 -20px; }
}
@keyframes dot2_ {
  3%,97%  { width:150px; height:90px;  margin:-45px 0 0 -75px; }
  30%,36% { width:70px;  height:96px;  margin:-48px 0 0 -35px; }
  63%,69% { width:32px;  height:60px;  margin:-30px 0 0 -16px; }
}
@keyframes dot3_ {
  3%,97%  { width:40px;  height:20px;  margin:50px 0 0 -20px; }
  30%,36% { width:8px;   height:8px;   margin:49px 0 0 -5px;  border-radius:8px; }
  63%,69% { width:16px;  height:4px;   margin:-37px 0 0 -8px; border-radius:10px;}
}

/* ==============================
   Responsive adicional (<480px)
   ============================== */
@media (max-width: 480px) {
  .navbar {
    flex-direction: column;
    gap: 0.5rem;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero h2 {
    font-size: 1.75rem;
  }
}
/* ==============================
   Nuestro Equipo
   ============================== */
#team .testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

#team .testimonial {
  background: var(--light);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  display: flex;
  gap: 1rem;
  align-items: center;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.4s ease;
}

#team .testimonial:nth-child(1) {
  transition-delay: 0.2s;
}
#team .testimonial:nth-child(2) {
  transition-delay: 0.4s;
}

#team .testimonial:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
#team .testimonial:active {
  transform: translateY(-2px) scale(1.02);
}

#team .testimonial img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}



/* Hero con fondo negro puro */
.hero {
  background-color: #000;
  color: var(--primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}

/* Texto estático en azul sin neón */
.hero h2,
.hero p {
  position: relative;
  z-index: 1;
  color: var(--primary);  /* Tu azul principal */
  margin: 0.5rem 0;
  text-shadow: none;
  animation: none;
}
/* ===== Portafolio ===== */
#portfolio {
  padding: 4rem 1rem;
}
#portfolio h2 {
  margin-bottom: 1.5rem;
}
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
  gap: 2rem;
}
.portfolio .card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio .card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.portfolio .card h3 {
  margin: 1rem;
  font-size: 1.25rem;
}
.portfolio .card p {
  margin: 0 1rem 1rem;
  color: var(--dark);
  font-size: 0.95rem;
}
.portfolio .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

/* ===== Planes ===== */
#planes {
  padding: 4rem 1rem;
  background: var(--accent);
}
#planes h2 {
  margin-bottom: 1.5rem;
}
.planes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 2rem;
}
.plan-card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.plan-card .price {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 600;
}
.plan-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  flex-grow: 1;
  text-align: left;
}
.plan-card ul li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}
.plan-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
}
.plan-btn {
  background: var(--primary);
  color: var(--light);
  border: none;
  padding: 0.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}
.plan-btn:hover {
  background: var(--dark);
  transform: translateY(-2px);
}
.plan-btn:active {
  transform: translateY(1px);
}



