/* =========================
   RESET + VARIABLES GLOBALES
========================= */
:root {
  /* 🎨 Modo oscuro (por defecto) */
  --color-fondo: #0d1117;
  --color-superficie: #161b22;
  --color-acento: #ff7b00;
  --color-acento-hover: #ff9940;
  --color-texto: #e6eef8;
  --color-secundario: #9baec8;
  --radio: 0.8rem;
  --sombra: 0 8px 24px rgba(0, 0, 0, 0.25);
  --transicion: all 0.35s ease;
  --fuente: "Montserrat", sans-serif;
}

/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente);
  background: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
  overflow-x: hidden;
}

/* =========================
   HERO
========================= */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25) blur(4px);
  transform: scale(1.05);
  transition: transform 8s ease-in-out;
  z-index: -1;
}

.hero:hover .hero-bg {
  transform: scale(1.1);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.2rem;
  color: var(--color-secundario);
  margin-top: 1rem;
}

/* Botón principal */
.btn-main {
  background: var(--color-acento);
  color: #000000;
  padding: 14px 30px;
  border-radius: var(--radio);
  text-decoration: none;
  font-weight: 600;
  margin-top: 2rem;
  display: inline-block;
  transition: var(--transicion);
  box-shadow: 0 4px 20px rgba(255, 122, 0, 0.3);
}

.btn-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 25px rgba(255, 122, 0, 0.4);
}

/* =========================
   SECCIONES CON FONDO DE IMAGEN
========================= */
.section {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
}

.bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.25) blur(6px);
  z-index: -1;
  transition: filter 0.5s ease;
}

.section-content {
  position: relative;
  z-index: 1;
  backdrop-filter: blur(4px);
  max-width: 900px;
  margin: 0 auto;
}

.section-content h2 {
  font-size: 2.3rem;
  color: var(--color-acento);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
    letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(226, 136, 0, 0.6);
}

.section-content p {
  color: var(--color-secundario);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* =========================
   TARJETAS DE SERVICIOS
========================= */
.card-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 2rem;
}

.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radio);
  padding: 2rem;
  width: 260px;
  transition: var(--transicion);
  backdrop-filter: blur(6px);
  box-shadow: var(--sombra);
}

.card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
}

.card h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

/* =========================
   GALERÍA DE PROYECTOS
========================= */
.project-preview-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.project-preview-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radio);
  overflow: hidden;
  width: 230px;
  transition: var(--transicion);
  box-shadow: var(--sombra);
}

.project-preview-item:hover {
  transform: scale(1.05);
}

.project-preview-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.project-preview-item p {
  padding: 12px;
  color: white;
  font-weight: 600;
}

/* =========================
   CONTACTO
========================= */
.contacto {
  position: relative;
  text-align: center;
  padding: 100px 20px;
  background-color: rgba(255, 255, 255, 0.02);
}

.contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgb(15, 184, 77);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 10px 24px;
  border-radius: 100px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700; /* 🔹 Texto en negrita */
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
  min-width: 180px;
  position: relative;
  overflow: hidden;
}


/* Glow animado */
.contact-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1px;
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity 0.4s ease, background-position 2s linear;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
}

.contact-btn:hover::before {
  opacity: 1;
  background-position: 200% 0;
}

.contact-btn:hover {
  background: rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 0 12px rgba(3, 196, 51, 0.671);
}

.instagram {
  background:  #ee2a7b;
}

.instagram:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 12px #ee2a7b;
}

.contact-btn img.icon-btn {
  width: 18px;
  height: 18px;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.contact-btn:hover img.icon-btn {
  opacity: 1;
}

.tiktok {
  background: #010101; /* color base tipo TikTok */
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tiktok:hover {
  filter: brightness(1.2);
    box-shadow:
    0 0 12px rgba(0, 167, 161, 0.8); /* celeste */
  background: rgba(0, 0, 0, 0.2);
}


/* =========================
   FOOTER
========================= */
footer {
  background: var(--color-superficie);
  color: var(--color-secundario);
  padding: 25px 15px;
  text-align: center;
  font-size: 0.95rem;
}

/* =========================
   ANIMACIONES
========================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

section {
  animation: fadeIn 0.8s ease-in-out;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .hero h1 { font-size: 3rem; }
  .section { padding: 80px 40px; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .section { padding: 70px 20px; }
  .card-container,
  .project-preview-gallery { flex-direction: column; align-items: center; }
  .card, .project-preview-item { width: 90%; max-width: 320px; }
  .contact-btn { min-width: 140px; padding: 10px 18px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .section-content h2 { font-size: 1.6rem; }
  .btn-main { padding: 10px 22px; font-size: 0.9rem; }
  .section { padding: 60px 15px; }
}
