* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', Arial, sans-serif;
}

:root {
  --bg-dark: #0d0d0d;
  --bg-card: rgba(20, 20, 30, 0.85);
  --color-accent: #f0a500;
  --text-light: #ffffff;
  --text-gray: #b5b5b5;
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

/* ========== HEADER GLASS ========== */
header {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.logo img {
  height: 55px;
  width: auto;
  max-width: 100%;
}

.logo h1 {
  font-size: 24px;
  letter-spacing: 2px;
}

.contacto {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 20px;
  border-radius: 40px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
  white-space: nowrap;
}

.whatsapp { background: #25D366; }
.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.behance { background: #1769ff; }

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* ========== BANNER HERO ========== */
.banner {
  width: 100%;
  min-height: 500px;
  background-image: url("imagenes/banner%20mio/banner%20mio%201.png");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 80px 20px;
}
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.banner-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.banner h2 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 15px;
}
.typed-text {
  color: var(--color-accent);
}
.cursor-blink {
  display: inline-block;
  width: 3px;
  background-color: var(--color-accent);
  animation: blink 0.7s infinite;
  margin-left: 5px;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.banner p {
  font-size: 20px;
  letter-spacing: 2px;
  font-weight: 300;
}

/* ========== ABOUT ========== */
.about {
  padding: 100px 8%;
  background: #0f0f0f;
}
.about-container {
  max-width: 900px;
  margin: auto;
  text-align: center;
}
.about h2 {
  font-size: 34px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, var(--color-accent));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.about p {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-gray);
}

/* ========== ESTADÍSTICAS ========== */
.stats {
  padding: 80px 8%;
  background: linear-gradient(135deg, #0a0a0a, #111);
}
.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}
.stat-item {
  flex: 1;
  min-width: 150px;
}
.stat-number {
  font-size: 48px;
  font-weight: 800;
  color: var(--color-accent);
  display: block;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 18px;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== PORTFOLIO ========== */
.portfolio {
  padding: 90px 8%;
}
.portfolio > h2 {
  text-align: center;
  font-size: 42px;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  width: 100%;
}
.portfolio > h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: var(--color-accent);
  margin: 15px auto 0;
}
.filtros {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.filtro-btn {
  background: rgba(34,34,34,0.8);
  backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 10px 24px;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  font-size: 14px;
}
.filtro-btn.active,
.filtro-btn:hover {
  background: var(--color-accent);
  color: #000;
  transform: translateY(-3px);
  border-color: var(--color-accent);
}
.proyectos-container {
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.proyecto {
  background: var(--bg-card);
  backdrop-filter: blur(8px);
  border-radius: 24px;
  padding: 30px;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.proyecto:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(0,0,0,0.5);
  border-color: var(--color-accent);
}
.proyecto h3 {
  font-size: 28px;
  margin-bottom: 25px;
  color: var(--color-accent);
  letter-spacing: 1px;
}
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.galeria img {
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  filter: brightness(0.92);
  width: 100%;
  height: auto;
}
.galeria img:hover {
  transform: scale(1.03) rotate(0.5deg);
  filter: brightness(1.05);
  box-shadow: 0 12px 20px rgba(0,0,0,0.4);
}

/* ========== LIGHTBOX ========== */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  backdrop-filter: blur(5px);
}
#lightbox img {
  max-width: 85%;
  max-height: 85%;
  border-radius: 12px;
}
#cerrar {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 50px;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}
#cerrar:hover {
  transform: scale(1.1);
  color: var(--color-accent);
}
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 50px;
  color: white;
  cursor: pointer;
  padding: 12px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  width: 60px;
  text-align: center;
  transition: 0.2s;
}
.flecha:hover {
  background: var(--color-accent);
  color: #000;
}
#prev { left: 25px; }
#next { right: 25px; }
#contador-lightbox {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.7);
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  color: white;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 40px;
  background: #000;
  color: #777;
  margin-top: 60px;
  font-size: 14px;
}
.footer-social {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 20px;
}
.footer-social a {
  color: #aaa;
  text-decoration: none;
  transition: 0.2s;
}
.footer-social a:hover {
  color: var(--color-accent);
}

/* ========== BOTONES FLOTANTES ========== */
.floating-whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: 0.2s;
  text-decoration: none;
}
.floating-whatsapp:hover {
  transform: scale(1.1);
  background: #20b858;
}
@media (min-width: 769px) {
  .floating-whatsapp { display: none; }
}

.go-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-accent);
  color: #000;
  border: none;
  border-radius: 50%;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.go-top.show {
  opacity: 1;
  visibility: visible;
}
.go-top:hover {
  transform: translateY(-5px);
  background: #fff;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .contacto {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .banner {
    min-height: 350px;
    padding: 50px 15px;
  }
  .banner h2 {
    font-size: 32px;
  }
  .banner p {
    font-size: 16px;
  }
  .portfolio {
    padding: 50px 5%;
  }
  .portfolio > h2 {
    font-size: 32px;
  }
  .proyecto h3 {
    font-size: 24px;
    text-align: center;
  }
  .galeria {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .flecha {
    font-size: 30px;
    width: 45px;
  }
  .about h2 {
    font-size: 26px;
  }
  .about p {
    font-size: 15px;
  }
  .filtro-btn {
    padding: 6px 16px;
    font-size: 12px;
  }
  .stat-number {
    font-size: 36px;
  }
  .go-top {
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
@media (max-width: 480px) {
  .contacto {
    flex-direction: column;
    gap: 8px;
  }
  .flecha {
    font-size: 24px;
    width: 40px;
  }
  #prev { left: 10px; }
  #next { right: 10px; }
  .proyecto {
    padding: 20px;
  }
  .galeria {
    grid-template-columns: 1fr;
  }
}
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}