/* --- RESETEO GENERAL --- */
* {
  margin: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  box-sizing: border-box;
}

/* --- ESTILO "APPLE" BASE Y FUENTE --- */
body {
  /* La tipografía exacta de Apple (San Francisco) y alternativas perfectas para Windows */
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #ffffff;
  color: #1d1d1f;
  line-height: 1.47;
  letter-spacing: -0.022em;
  overflow-x: hidden;
  transition: background-color 0.8s ease, color 0.8s ease;
}

/* --- SECCIONES COMO PANTALLAS --- */
section,
header {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 50px;
  position: relative;
}

/* --- ANIMACIÓN APPLE DE LOS TÍTULOS --- */
h2 {
  width: 100%;
  max-width: 1000px;
  margin-bottom: 50px;
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: left;
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

h2.titulo-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- TEXTOS PRINCIPALES --- */
header h1 {
  font-size: 80px;
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-align: center;
}

header p {
  font-size: 24px;
  color: #86868b;
  font-weight: 400;
  text-align: center;
}

header .frase-inspiradora {
  font-size: 19px;
  font-style: italic;
  color: #a1a1a6;
  font-weight: 300;
  max-width: 650px;
  margin-top: 5px;
}

p {
  font-size: 21px;
  max-width: 700px;
  text-align: center;
  color: #1d1d1f;
  margin-bottom: 20px;
}

p,
#servicios li,
h2 {
  transition: color 0.8s ease;
}

/* --- CABECERA Y MENÚ --- */
header {
  background-color: transparent !important;
}

nav {
  position: absolute;
  top: 30px;
  width: 100%;
}

nav ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #1d1d1f;
  font-weight: 400;
  font-size: 14px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

nav a:hover {
  opacity: 1;
}

/* --- IMAGEN PREMIUM --- */
.imagen-premium {
  width: 100%;
  max-width: 350px;
  border-radius: 40px;
  margin-bottom: 30px;
  object-fit: cover;
}

/* --- TARJETAS Y EFECTO CASCADA --- */
.grid-tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 1000px;
  margin-top: 20px;
}

/* El motor del fundido desde abajo para las tarjetas */
@keyframes aparecerCascada {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tarjeta {
  background-color: rgba(134, 134, 139, 0.05);
  border: 1px solid rgba(134, 134, 139, 0.2);
  border-radius: 24px;
  padding: 40px 30px;
  text-align: left;
  opacity: 0; /* Invisibles por defecto hasta que saltan */
  /* El transition ahora solo se encarga del efecto hover al pasar el ratón */
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Cuando el contenedor de tarjetas es visible, disparamos la animación */
.grid-visible .tarjeta {
  animation: aparecerCascada 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Los retrasos: la primera tarjeta sale rápido, la segunda espera un poco, la tercera más... */
.grid-visible .tarjeta:nth-child(1) {
  animation-delay: 0.1s;
}
.grid-visible .tarjeta:nth-child(2) {
  animation-delay: 0.3s;
}
.grid-visible .tarjeta:nth-child(3) {
  animation-delay: 0.5s;
}

.tarjeta:hover {
  transform: translateY(-5px);
  background-color: rgba(134, 134, 139, 0.1);
}

.tarjeta h3 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.tarjeta p {
  font-size: 16px;
  text-align: left;
  opacity: 0.8;
  margin-bottom: 0;
}

.precio {
  font-size: 28px !important;
  font-weight: 600;
  margin-top: 20px !important;
  color: #0071e3 !important;
}

/* --- BOTONES DE CONTACTO --- */
.botones-contacto {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-whatsapp {
  display: inline-block;
  background-color: #25d366;
  color: white !important;
  padding: 16px 32px;
  text-decoration: none;
  border-radius: 980px;
  font-weight: 600;
  font-size: 17px;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-whatsapp:hover {
  background-color: #128c7e;
  transform: scale(1.03);
}

.btn-instagram {
  display: inline-block;
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  color: white !important;
  padding: 16px 32px;
  text-decoration: none;
  border-radius: 980px;
  font-weight: 600;
  font-size: 17px;
  transition: transform 0.2s, filter 0.3s;
}

.btn-instagram:hover {
  transform: scale(1.03);
  filter: brightness(1.1);
}

/* --- FOOTER Y LEGAL --- */
footer {
  background-color: #1d1d1f;
  color: #86868b;
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  z-index: 10;
  position: relative;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.enlaces-legales {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.enlaces-legales a {
  color: #86868b;
  text-decoration: none;
  transition: color 0.3s ease;
}

.enlaces-legales a:hover {
  color: #f5f5f7;
}

/* --- ADAPTACIÓN A MÓVILES (Responsive) --- */
@media (max-width: 768px) {
  .enlaces-legales {
    flex-direction: column;
    gap: 10px;
  }

  header h1 {
    font-size: 42px;
  }

  header p {
    font-size: 18px;
  }

  header .frase-inspiradora {
    font-size: 16px;
  }

  h2 {
    font-size: 36px;
    margin-bottom: 30px;
  }

  p {
    font-size: 17px;
  }

  section,
  header {
    padding: 80px 20px;
  }

  nav ul {
    gap: 20px;
  }
}
