/* RESET */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #0f0f0f;
  color: #e5e5e5;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;

  background: rgba(15, 15, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: 0.3s;
}

/* HEADER SCROLLED */
header.scrolled {
  background: rgba(0, 0, 0, 0.98);
  padding: 10px 40px;
  border-bottom: 1px solid rgba(201,169,110,0.3);
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
  border-radius: 50%;
}

.logo span {
  font-weight: 600;
  color: #c9a96e;
  letter-spacing: 1px;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
}

nav a {
  margin: 0 10px;
  text-decoration: none;
  color: #ccc;
  position: relative;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  padding: 6px 14px;
  border-radius: 20px;
}

nav a::after {
  content: "";
  width: 0;
  height: 2px;
  background: #c9a96e;
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  background: #c9a96e;
  color: black;
  box-shadow: 0 5px 15px rgba(201,169,110,0.3);
}

nav a.active {
  background: #c9a96e;
  color: black;
}

.nav-home {
  border: 1px solid #c9a96e;
}

/* HERO */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.85)),
    url('fopodord.png');

  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;

  background:
    radial-gradient(circle at center,
    transparent 40%,
    rgba(0,0,0,0.85));

  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h2,
.hero-content p {
  color: #f5f5f5;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-content h2 {
  font-size: 60px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 20px;
}

/* SECCIONES */
section {
  padding: 100px 20px;
  text-align: center;
}

/* TITULOS */
h2 {
  margin-bottom: 30px;
  color: #c9a96e;
  font-size: 38px;
}

/* GRID */
.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}

/* CARDS */
.card {
  background: #1c1c1c;
  padding: 20px;
  width: 280px;
  border-radius: 14px;
  border-left: 3px solid #c9a96e;

  box-shadow:
    0 10px 25px rgba(0,0,0,0.5);

  opacity: 0;
  transform: translateY(50px);

  transition:
    opacity 0.6s ease,
    transform 0.4s ease,
    box-shadow 0.4s ease,
    border 0.4s ease;
}

.card.show {
  opacity: 1;
  transform: translateY(0);
}

.card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  border-left: 3px solid #e0c48f;
}

/* ========================= */
/* 🔥 SERVICIOS 🔥 */
/* ========================= */

.servicio-card {
  position: relative;
}

.servicio-card.active-card {
  transform: translateY(-8px);
  border-left: 3px solid #e0c48f;

  box-shadow:
    0 20px 40px rgba(0,0,0,0.6);
}

/* INFO EXTRA */
.info-extra {
  max-height: 0;
  overflow: hidden;
  opacity: 0;

  margin-top: 0;

  transition:
    max-height 0.5s ease,
    opacity 0.4s ease,
    margin-top 0.4s ease;
}

.info-extra.active {
  max-height: 500px;
  opacity: 1;
  margin-top: 20px;
}

/* TEXTO INTERNO */
.info-extra p {
  color: #bdbdbd;
  line-height: 1.6;
  text-align: left;
  margin-bottom: 15px;
}

.info-extra strong {
  color: #c9a96e;
}

/* BOTÓN VER MÁS */
.toggle-btn {
  width: 100%;
  margin-top: 15px;

  background: transparent;
  border: 1px solid #c9a96e;
  color: #c9a96e;

  padding: 10px;
  border-radius: 10px;

  font-weight: 600;

  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: #c9a96e;
  color: black;
  transform: translateY(-2px);
}

/* BOTÓN INTERNO */
.info-extra button {
  width: 100%;
  margin-top: 10px;
}

/* -------- PRECIOS -------- */

#precios {
  background: linear-gradient(to right, #111, #1c1c1c);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.precio-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.precio-card::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 0;
  background: rgba(201, 169, 110, 0.1);
  top: 0;
  left: 0;
  transition: 0.4s;
}

.precio-card:hover::before {
  height: 100%;
}

.precio {
  font-size: 32px;
  font-weight: 600;
  color: #c9a96e;
  margin: 10px 0;
  transition: 0.3s;
}

.precio-card:hover .precio {
  transform: scale(1.1);
}

.subtitulo {
  color: #aaa;
  margin-bottom: 20px;
}

.nota-precio {
  margin-top: 25px;
  font-size: 14px;
  color: #999;
  max-width: 500px;
}

/* NOSOTROS */
.nosotros-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.texto {
  max-width: 400px;
  text-align: left;
}

.imagen img {
  width: 300px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* MAPA */
.mapa-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.mapa-container iframe {
  width: 90%;
  max-width: 700px;
  height: 350px;
  border-radius: 15px;
  border: none;
}

/* BOTONES */
button {
  background: #c9a96e;
  color: black;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
  font-weight: 600;
}

button:hover {
  background: #b8965a;
  box-shadow: 0 5px 20px rgba(201,169,110,0.4);
}

/* WHATSAPP */
.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #1f1f1f;
  padding: 15px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.whatsapp:hover {
  background: #c9a96e;
  color: black;
  transform: scale(1.1);
}

/* FOOTER */
footer {
  background: #111;
  color: #ccc;
  padding: 20px;
}

/* ANIMACIONES */
.fade {
  opacity: 0;
  transform: translateY(60px) scale(0.98);
  transition: all 0.8s ease;
}

.fade.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* RESPONSIVE */
@media (max-width: 768px) {

  nav {
    display: none;
  }

  .hero-content h2 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .nosotros-container {
    flex-direction: column;
  }

  .imagen img {
    width: 90%;
  }

  .card {
    width: 90%;
  }

}