* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-color: #0e0e0e;
  color: #fff;
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* HERO */
.hero {
  position: relative;
  background: url("../assets/img/Imagen_personal") center/cover no-repeat;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* fallback */
  /* efecto glassmorphism moderno */
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 2;
  animation: fadeIn 1.2s ease forwards;
}

.hero h1 {
  font-size: 3.5rem;
  color: #f1c40f;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.hero h1 span {
  color: #fff;
}

.hero p {
  margin: 15px 0 25px;
  font-size: 1.3rem;
}

.btn {
  background: linear-gradient(90deg, #f1c40f, #fff);
  color: #000;
  padding: 12px 28px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px #f1c40f;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  font-size: 1.5rem;
  color: #f1c40f;
  animation: bounce 2s infinite;
}

/* SECCIONES */
section {
  padding: 90px 10%;
  text-align: center;
}

h2 {
  color: #f1c40f;
  margin-bottom: 25px;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ABOUT */
.about-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.about-box > * {
  margin: 15px; /* reemplazo de gap para compatibilidad */
}

.profile {
  width: 220px;
  border-radius: 50%;
  border: 3px solid #f1c40f;
  box-shadow: 0 0 15px rgba(241,196,15,0.4);
}

/* SERVICES */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* moderno */
}

@supports not (grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))) {
  .service-grid {
    display: block; /* fallback antiguo */
  }
}

.service-grid > * {
  margin: 12px; /* reemplazo de gap para compatibilidad */
}

.card {
  background: #1a1a1a;
  border: 1px solid rgba(241,196,15,0.2);
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(241,196,15,0.5);
}


/* GALLERY */
.gallery-grid {
  display: flex; /* flex en lugar de grid para compatibilidad */
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.gallery-grid img {
  width: 250px;       /* ancho fijo */
  height: 250px;      /* alto fijo */
  object-fit: cover;  /* recorta la imagen para llenar el cuadro sin deformar */
  border-radius: 12px;
  transition: 0.3s;
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(241,196,15,0.4);
}

/* REVIEWS */
.review {
  background: #1a1a1a;
  border-left: 5px solid #f1c40f;
  padding: 25px;
  margin: 20px auto;
  max-width: 650px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* FOOTER */
footer {
  background: #111;
  padding: 50px 20px;
  text-align: center;
  position: relative;
}

.socials a {
  color: #f1c40f;
  margin: 0 10px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.socials a:hover {
  text-shadow: 0 0 10px #f1c40f;
}

.copy {
  margin-top: 15px;
  color: #aaa;
  font-size: 0.9rem;
}

/* ANIMACIONES */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.appear {
  opacity: 1;
  transform: translateY(0);
}
