/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

:root {
  --primary: #00bcd4;
  --secondary: #00796b;
  --dark: #333;
  --white: #fff;
}

section {
  scroll-margin-top: 80px; /* ajusta según la altura real de tu navbar */
}

/* Hero */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,188,212,0.6), rgba(0,121,107,0.6)),
              url("img1.jpg") center/cover no-repeat;
  z-index: 0;
}

.hero-section .hero-content {
  position: relative;
  z-index: 1;
  padding: 0 1rem;
}

/* Animación en hero */
.hero-section h1, .hero-section p {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}
.hero-section p { animation-delay: 0.3s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Base */
body { background: #f4f4f4; color: var(--dark); }
a { text-decoration: none; transition: all 0.3s ease; }
h1, h2, h3 { color: var(--dark); }

/* Navbar */
.navbar {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 1000;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto; padding: 10px 20px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.logo a { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.menu-toggle {
  display: none; border: none; background: transparent;
  font-size: 1.6rem; cursor: pointer; color: var(--dark);
}
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links li a {
  color: var(--dark); font-weight: 500;
  position: relative;
}
.nav-links li a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background: var(--primary);
  transition: width 0.3s ease;
}
.nav-links li a:hover::after {
  width: 100%;
}
.nav-links li a:hover { color: var(--primary); }
.login-button { margin-left: 16px; }
.btn-ingresar {
  background: var(--primary); 
  color: #fff !important; 
  font-weight: 700;
  padding: 14px 32px; 
  border-radius: 8px; 
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}
.btn-ingresar:hover { background: var(--secondary); transform: translateY(-3px); }

/* Hero content */
.hero-section h1 {
  color: white;
  font-size: 3rem;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}
.hero-section p {
  font-size: 1.25rem;
  margin: 16px 0;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}
.cta-btn {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
  text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}
.cta-btn:hover { background: var(--secondary); transform: translateY(-3px); }
.scroll-down {
  width: 30px; height: 30px; border-left: 3px solid white; border-bottom: 3px solid white;
  transform: rotate(-45deg); margin-top: 20px; animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,20%,50%,80%,100% { transform: translateY(0) rotate(-45deg); }
  40% { transform: translateY(10px) rotate(-45deg); }
  60% { transform: translateY(5px) rotate(-45deg); }
}

/* About */
.about-section { 
  background: #fff; 
  padding: 60px 20px; 
  text-align: center; /* ✅ centramos todo el bloque */
}
.about-section h2 { 
  font-size: 2rem; 
  margin-bottom: 20px; 
}

.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: center;
}

.about-badge {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.badge {
  background-color: #0ea5a4;
  background-image: linear-gradient(180deg,#0ea5a4,#0284c7);
  color: white;
  padding: 12px 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(2,6,23,0.08);
  display: inline-block;
  min-width: 100px;
}
.badge-number {
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
}
.badge-text {
  font-size: 11px;
  opacity: 0.95;
}
.about-text {
  flex: 1;
  min-width: 260px;
  max-width: 800px; /* ✅ límite de ancho */
  margin: 0 auto;   /* centrado */
}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.about-text h2 span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-text p,
.about-text ul {
  font-size: 1.1rem;       /* mismo tamaño de letra */
  line-height: 1.6;
  text-align: justify;
  max-width: 800px;        /* mismo ancho que el párrafo */
  margin: 0 auto 20px auto;/* alineados iguales */
}

.about-text ul {
  list-style: none;
  padding: 0;
}
.about-text li {
  margin-bottom: 10px;
}


/* Carousel */
.carousel-section { 
  background: radial-gradient(circle at top center, #ffffff 0%, #e0f7fa 50%, #b2ebf2 100%);
  padding: 60px 20px; 
}
.carousel-section h2 { 
  text-align: center; 
  margin-bottom: 40px; 
  font-size: 2rem; 
}
.carousel { 
  display: flex; 
  justify-content: center; 
  flex-wrap: wrap; 
  gap: 20px; 
}
.carousel-item {
  background: #fff; 
  padding: 20px; 
  width: 250px;
  border-radius: 12px; 
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.carousel-item:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}
.carousel-icon { 
  width: 60px; 
  margin-bottom: 15px; 
}

/* Footer */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.footer a { color: #f1f1f1; font-weight: 500; }
.footer a:hover { color: var(--secondary); }
.logo-con-sombra {
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 1));
  max-width: 200px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-container { flex-wrap: wrap; gap: 10px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; width: 100%; flex-direction: column;
    background: #fff; padding: 12px; border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06); margin-top: 6px;
  }
  .nav-links.show { display: flex; }
  .nav-links li { width: 100%; }
  .login-button { width: 100%; }
  .login-button .btn-ingresar {
    display: block; width: 100%; text-align: center; margin-top: 8px; padding: 12px 0;
  }
  
  .hero-section h1 { font-size: 1.8rem; }
  .hero-section p { font-size: 1rem; }

  .about-flex { flex-direction: column; }
  .about-badge { margin-bottom: 20px; }
  .badge {
    min-width: 140px;
    padding: 14px 18px;
  }
  .badge-number { font-size: 26px; }
  .badge-text { font-size: 14px; }
}
