/* ======================================================
   VARIABLES Y BASE
====================================================== */
:root {
  --negro: #0a0a0a;
  --dorado: #c8a951;
  --gris-plateado: #cfcfcf;
  --blanco: #ffffff;
  --fuente-titulo: 'Playfair Display', serif;
  --fuente-texto: 'Roboto', sans-serif;
}

body {
  background-color: var(--negro);
  color: var(--blanco);
  font-family: var(--fuente-texto);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--fuente-titulo);
  color: var(--dorado);
  letter-spacing: 1px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ======================================================
   NAVBAR
====================================================== */
.navbar {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(8px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(200,169,81,0.2);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.nav-content .logo img {
  height: 60px;
}

.nav-content .menu a {
  color: var(--gris-plateado);
  text-decoration: none;
  margin-left: 2rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-content .menu a:hover {
  color: var(--dorado);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  background: var(--dorado);
  height: 3px;
  width: 25px;
  margin: 4px 0;
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    background: var(--negro);
    position: absolute;
    top: 80px;
    right: 0;
    width: 60%;
    border-left: 2px solid var(--dorado);
  }

  .menu.active {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-content .menu a {
    margin: 1rem;
  }
}

/* ======================================================
   HERO (con zoom animado y texto con fade-in)
====================================================== */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: url('media/hero.webp') center/cover no-repeat;

}

/* Fondo animado con zoom suave */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('media/hero.webp') center/cover no-repeat;
  animation: heroZoom 20s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.12); }
}

.hero-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeHeroText 1.5s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fadeHeroText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dorado);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gris-plateado);
}

.btn-gold {
  display: inline-block;
  margin-top: 1.5rem;
  background: linear-gradient(90deg, #b8943a, #d9b55a);
  color: var(--negro);
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: transform 0.3s;
}

.btn-gold:hover {
  transform: scale(1.05);
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.6rem;
  }
}

/* ======================================================
   HERO LOGO
====================================================== */
.hero-logo {
  margin-bottom: 1.5rem;
  animation: fadeLogo 1.8s ease-out forwards;
  opacity: 0;
  transform: translateY(-20px);
  animation-delay: 0.3s;
}

.hero-logo img {
  width: 450px;
  max-width: 45vw;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.2));
}

/* Animación de entrada suave */
@keyframes fadeLogo {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .hero-logo img {
    margin-top: 70px;
    width: 300px;
    max-width: 80vw;
  }
}

/* ======================================================
   HERO NUMEROLOGÍA (visible arriba derecha)
====================================================== */
.hero-numerologia {
  position: absolute;
  margin-top: 90px;
  top: 25px;
  right: 40px;
  text-align: right;
  font-size: 0.9rem;
  line-height: 1.4;
  color: rgba(220, 220, 220, 0.85);
  letter-spacing: 1.5px;
  font-family: var(--fuente-texto);
  z-index: 5; /* 🔥 Asegura que quede encima del overlay */
  user-select: none;
  pointer-events: none; /* evita interferir con clics del hero */
}

.hero-numerologia .num-line {
  display: block;
}

.hero-numerologia:hover {
  color: var(--dorado);
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .hero-numerologia {
    right: 15px;
    top: 15px;
    font-size: 0.75rem;
    letter-spacing: 1px;
  }
}



/* ======================================================
   EFECTO DE BRILLO METÁLICO DORADO (Hero)
====================================================== */
.hero-title {
  position: relative;
  display: inline-block;
  background: linear-gradient(
    90deg,
    #c9b25a 0%,
    #f5d87c 20%,
    #c9b25a 40%,
    #a0832b 60%,
    #f5d87c 80%,
    #c9b25a 100%
  );
  background-size: 200% auto;
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  animation: shineGold 6s linear infinite;
}

@keyframes shineGold {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}




/* ======================================================
   SOBRE MÍ
====================================================== */
.sobre-mi {
  padding: 6rem 0;
  background-color: #111;
}

.sobre-mi-content {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.sobre-mi .imagen img {
  width: 100%;
  border-radius: 10px;
  border: 2px solid var(--dorado);
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .sobre-mi-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ======================================================
   SERVICIOS
====================================================== */
.servicios {
  padding: 6rem 0;
  text-align: center;
}

.servicios h2 {
  color: var(--dorado);
  font-family: var(--fuente-titulo);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  justify-items: stretch;
}

.servicio-card {
  background: #151515;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid rgba(200, 169, 81, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.servicio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 10px rgba(200,169,81,0.15);
}

.servicio-card h3 {
  color: var(--dorado);
  font-family: var(--fuente-titulo);
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
}

.servicio-card p {
  color: var(--gris-plateado);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Botón dentro de cada servicio */
.btn-servicio {
  display: inline-block;
  align-self: center;
  background: linear-gradient(90deg, #b8943a, #d9b55a);
  color: var(--negro);
  padding: 0.6rem 1.3rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-servicio:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(200,169,81,0.3);
}

/* ------------------- Responsive ------------------- */
@media (max-width: 1024px) {
  .servicios-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .servicios-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .servicio-card {
    padding: 1.5rem;
  }
}


/* ======================================================
   EXPERIENCIA
====================================================== */
.experiencia {
  background-color: #0e0e0e;
  padding: 6rem 0;
  text-align: center;
}

.experiencia-timeline {
  margin-top: 3rem;
}

.exp-item {
  border-left: 2px solid var(--dorado);
  padding-left: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.exp-item::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 5px;
  width: 14px;
  height: 14px;
  background: var(--dorado);
  border-radius: 50%;
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .exp-item {
    padding-left: 1rem;
  }
}

/* ======================================================
   FORMACIÓN Y EXPERIENCIA
====================================================== */
.formacion {
  background: #0e0e0e;
  color: var(--gris-plateado);
  line-height: 1.8;
  padding-top: 10px;
  padding-bottom: 30px;
  }

.formacion h2 {
  color: var(--dorado);
  font-family: var(--fuente-titulo);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}

.formacion h3 {
  color: var(--dorado);
  font-family: var(--fuente-titulo);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.formacion p {
  max-width: 950px;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
  text-align: justify;
}

.lista-fiscalias {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 2rem;
  max-width: 850px;
}

.lista-fiscalias li {
  margin-bottom: 0.8rem;
  padding-left: 1.2rem;
  position: relative;
}

.lista-fiscalias li::before {
  content: "⚖";
  color: var(--dorado);
  position: absolute;
  left: 0;
}

.division-dorada {
  border: none;
  border-top: 1px solid rgba(200, 169, 81, 0.4);
  width: 70%;
  margin: 3rem auto;
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .formacion {
    padding: 3.5rem 1rem;
  }

  .formacion h2 {
    font-size: 1.6rem;
  }

  .formacion p {
    text-align: left;
  }

  .lista-fiscalias li {
    padding-left: 1.5rem;
  }
}


/* ======================================================
   FOOTER
====================================================== */
.footer {
  background: #050505;
  color: var(--gris-plateado);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
}

.footer-info a {
  color: var(--dorado);
  text-decoration: none;
}

.footer-social a img {
  width: 28px;
  margin-right: 1rem;
  transition: opacity 0.3s;
}

.footer-social a:hover img {
  opacity: 0.8;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.9rem;
}

/* ------------------- Celular ------------------- */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-social {
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .footer-social a img {
    margin: 0 0.7rem;
  }
}

/* ======================================================
   ANIMACIONES GENERALES (fade-in en scroll)
====================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ======================================================
   FOOTER NUMEROLOGÍA (DISCRETA LATERAL)
====================================================== */
.footer-numerologia {
  color: rgba(207, 207, 207, 0.35);
  font-size: 0.8rem;
  letter-spacing: 2px;
  font-family: var(--fuente-texto);
  line-height: 1.6;
  user-select: none;
  position: absolute;
  right: 50px;
  bottom: 40px;
  text-align: right;
  z-index: 1;
}

.footer-numerologia span {
  display: block;
  transition: color 0.3s ease;
}

.footer-numerologia span:hover {
  color: var(--dorado);
}

/* ------------------- Desktop grande ------------------- */
@media (min-width: 992px) {
  .footer {
    position: relative; /* necesaria para posicionar la numerología dentro */
  }

  .footer-numerologia {
    right: 60px;
    bottom: 110px;
    opacity: 0.5;
  }

  .footer-numerologia span {
    font-size: 0.8rem;
  }
}

/* ------------------- Móvil ------------------- */
@media (max-width: 768px) {
  .footer-numerologia {
    position: static;
    text-align: right;
    margin-top: 2rem;
    opacity: 0.65; /* más visibles pero aún discretos */
    padding-right: 1.5rem; /* pequeño margen interno derecho */
  }

  .footer-numerologia span {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 1px;
  }
}

