/* 1) Reset básico */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --brand-blue:   #00A4EF;
  --brand-yellow: #FFD900;
  --brand-red:    #FF3636;
  --brand-cyan:   #00C2FF;
  --bg-dark:      #111111;
  --text-light:   #FFFFFF;
  --text-dark:    #111111;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
}

.site-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

/* === Header Base === */
header {
  background: var(--bg-dark);
  position: relative;    /* Contenedor para el menú absolute */
  z-index: 1002;         /* Siempre encima del contenido */
}

/* Wrapper interno: alinea logo, nav y toggle */
header .site-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

/* === Logo === */
.navbar-brand img {
  max-height: 60px;
  display: block;
}

/* === Navegación (Desktop) === */
.navbar-nav {
  display: flex;
}
.navbar-nav a {
  color: var(--text-light);
  margin-left: 1rem;
  text-decoration: none;
  font-weight: 500;
}

/* === Botón Hamburguesa === */
.nav-toggle {
  display: none;        /* visible sólo en mobile */
  background: none;
  border: none;
  cursor: pointer;
  width: 2rem;
  height: 2rem;
  position: relative;
  z-index: 1003;        /* encima del nav desplegable */
}

/* Las 3 rayitas del ícono */
.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  background: var(--text-light);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle .hamburger {
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle .hamburger::before {
  top: -8px;
}
.nav-toggle .hamburger::after {
  bottom: -8px;
}

/* === Responsive === */

/* Desktop: siempre muestro la nav y oculto el toggle */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .navbar-nav { display: flex !important; }
}

/* Mobile: muestro toggle, despliego nav sólo con .nav-open */
@media (max-width: 767px) {
  .nav-toggle { display: block; }

  .navbar-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-dark);
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 1rem 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    z-index: 1001;
  }
  .navbar-nav a {
    margin: .5rem 0;
  }

  /* Al hacer click, añadimos .nav-open a <header> */
  header.nav-open .navbar-nav {
    display: flex;
  }

  /* Transformar hamburguesa en “X” */
  header.nav-open .hamburger {
    background: transparent;
  }
  header.nav-open .hamburger::before {
    transform: translateY(8px) rotate(45deg);
  }
  header.nav-open .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
  }
}


main > section {
  padding: 1rem 1rem;
}

/* Añade aquí más estilos por sección */
/* Hero */
.hero {
  background: url('../images/Slider/05.png') center/cover no-repeat; /* fallback */
  padding: 3rem 0;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6); /* overlay oscuro */
  z-index: 1;
}

.hero-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: var(--text-light);
  z-index: 2;
}

.hero-text {
  max-width: 600px;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text .highlight {
  color: var(--brand-yellow);
}

.hero-text p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--brand-yellow);
  color: var(--bg-dark);
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
}

.hero-image img {
  max-width: 400px;
  width: 100%;
  height: auto;
}
/* Sección Nosotros */
.section-nosotros {
  background: var(--bg-dark);
  padding: 4rem 0;
  color: var(--text-light);
}

.section-nosotros .section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;   /* espaciado extra debajo del título */
  color: var(--brand-cyan);
}
.nosotros-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.nosotros-text {
  flex: 1 1 400px;
  font-size: 1rem;
  line-height: 1.6;
  margin-left: 2rem;    /* separa el bloque de texto de la palabra nosotros */
}
.nosotros-text p {
  margin-bottom: 1rem;
}

.nosotros-image {
  flex: 1 1 300px;
  text-align: center;
}

.nosotros-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
/* Sección ¿Por qué? Diime */
.section-por-que {
  background: var(--bg-dark);
  padding: 4rem 0;
  color: var(--text-light);
}

.section-por-que .section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--brand-yellow);
}

.por-que-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.por-que-card {
  background: #222;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.por-que-card .card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  border: 2px solid var(--brand-yellow);
  border-radius: 50%;
}

/* Texto de tarjeta */
.por-que-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
  color: var(--brand-cyan);
}

.por-que-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-light);
}
/* Sección Servicios */
.section-servicios {
  background: var(--bg-dark);
  padding: 4rem 0;
  color: var(--text-light);
}

.section-servicios .section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--brand-blue);
}

/* Grid responsivo: ajusta columnas según espacio */
.servicios-list {
  display: grid;
  gap: 2rem 1.5rem; /* vertical gap: 2rem; horizontal gap: 1.5rem */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.servicio-card {
  background: #222;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  padding: 1.25rem;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.servicio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.servicio-icon {
  flex-shrink: 0;
}

.servicio-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.servicio-info {
  flex: 1;
}

.servicio-info h3 {
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
  color: var(--brand-yellow);
}

.servicio-info p {
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
  color: var(--text-light);
}
/* Sección Portafolio */
.section-portafolio {
  background: var(--bg-dark);
  padding: 4rem 0;
  color: var(--text-light);
}

.section-portafolio .section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--brand-red);
}

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.portfolio-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay p {
  color: var(--text-light);
  font-size: 1rem;
  padding: 0 1rem;
  text-align: center;
}
/* Sección Contacto */
.section-contacto {
  background: var(--bg-dark);
  padding: 4rem 0;
  color: var(--text-light);
}

.section-contacto .contacto-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contacto-info p {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto-form input,
.contacto-form textarea {
  padding: 0.75rem;
  border: 1px solid #444;
  border-radius: 4px;
  background: #111;
  color: var(--text-light);
  font-size: 0.95rem;
}

.contacto-form input::placeholder,
.contacto-form textarea::placeholder {
  color: #888;
}

.contacto-form button.btn {
  align-self: flex-start;
}

/* Footer */
.site-footer {
  background: #000;
  padding: 2rem 0;
  color: #777;
}

.site-footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-social a {
  margin-left: 1rem;
  text-decoration: none;
  color: #777;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--brand-yellow);
}
.section-eventos {
  padding: 4rem 0;
  background: var(--bg-light);
}
.section-eventos .eventos-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.evento-card {
  border: 1px solid var(--border-color);
  border-radius: .5rem;
  overflow: hidden;
  transition: transform .3s;
}
.evento-card img {
  width: 100%;
  display: block;
  height: auto;
}
.evento-card h3 {
  margin: 1rem;
  font-size: 1.25rem
  ;
  color: var(--brand-blue
  );
}
.evento-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
