/* ------------------------------
   VARIABLES
------------------------------ */
:root {
  --bg: #0d0d0d;
  --text: #f5f5f5;
  --accent: #d4a373;
  --accent-light: #e9c7a1;
  --transition: 0.35s ease;
  --font-title: "Marcellus", serif;
  --font-body: "Inter", sans-serif;
}

/* ------------------------------
   GLOBAL
------------------------------ */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  letter-spacing: 1px;
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 40px;
  color: var(--accent);
}

/* ------------------------------
   HEADER
------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  z-index: 9999;
  box-sizing: border-box;
  overflow: visible;
}

/* LOGO HEADER */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--text);
  flex-shrink: 1; /* permite que el texto se adapte */
  white-space: nowrap; /* evita saltos raros en desktop */
}

.logo-text {
  white-space: nowrap;
}

.logo-img {
  width: auto;
  height: 40px;
  object-fit: contain;
  filter: brightness(1.3);
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.08);
  filter: brightness(1.6);
}

/* NAV DESKTOP */
.nav {
  display: flex;
  align-items: center;
}

.nav a {
  margin-left: 22px;
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
}

.nav a:hover {
  color: var(--accent);
}

/* MENÚ HAMBURGUESA */
.menu-toggle {
  display: none;
  font-size: 32px;
  color: var(--accent);
  cursor: pointer;
  z-index: 10000;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.15);
}

/* ------------------------------
   RESPONSIVE HEADER
------------------------------ */
@media (max-width: 900px) {
  /* 🔥 FIX CRÍTICO: evitar que el logo ensanche el header */
  .logo {
    max-width: 60%;
    flex-wrap: wrap;
    white-space: normal;
    font-size: 1rem;
  }

  .logo-text {
    display: none; /* oculta el texto largo en móvil */
  }

  /* MENÚ LATERAL */
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    padding: 90px 20px 40px;
    gap: 25px;

    /* 🔥 Esto elimina el scroll horizontal */
    transform: translateX(100%);
    transition: transform 0.4s ease;

    z-index: 9998;
  }

  .nav a {
    font-size: 1.4rem;
    margin-left: 0;
  }

  .nav.active {
    transform: translateX(0);
  }

  .menu-toggle {
    display: block;
  }

  .logo-img {
    width: 28px;
    height: 28px;
  }
}

/* ------------------------------
   HERO
------------------------------ */
.hero {
  height: 55vh; /* un poco más alto para respirar */

  display: flex;
  flex-direction: column; /* asegura que el logo + textos no se desplacen */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 0; /* compensación por header fijo */
  box-sizing: border-box;
}

/* HERO LOGO + EXPERIENCIA */
.hero-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
}

.hero-logo-img {
  width: 600px; /* tamaño del logo */
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
}

.hero-experience {
  font-size: 1.1rem;
  color: var(--accent);
  opacity: 0.9;
  margin: 0;
  font-family: var(--font-title);
  letter-spacing: 0.5px;
}

/* TEXTOS */
.hero-title {
  font-size: clamp(2.4rem, 6vw, 2rem);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  opacity: 0.8;
}

/* BOTÓN */
.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: var(--accent);
  color: #000;
  border-radius: 4px;
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-light);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero {
    padding-top: 100px; /* header más pequeño en móvil */
    height: auto;
    padding-bottom: 40px;
  }

  .hero-logo-img {
    width: 120px; /* antes 90px → demasiado pequeño */
  }

  .hero-experience {
    font-size: 1rem;
  }
}

/* ------------------------------
   SERVICIOS
------------------------------ */
.services {
  padding: 120px clamp(20px, 5vw, 40px);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
}

.service-card {
  background: #111;
  padding: 25px;
  border-radius: 8px;
  transition: var(--transition);
  border: 1px solid #222;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

/* ------------------------------
   PORTFOLIO
------------------------------ */
.portfolio {
  padding: 120px clamp(20px, 5vw, 40px);
}
.portfolio-page {
  padding: 120px clamp(20px, 5vw, 40px);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.gallery-item {
  width: 100%;
  border-radius: 6px;
  transition: var(--transition);
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.05);
  filter: brightness(1.2);
}

/* ------------------------------
   SOBRE MI
------------------------------ */
.about {
  padding: 120px clamp(20px, 5vw, 40px);
  text-align: center;
  max-width: 800px;
  margin: auto;
  line-height: 1.7;
}

/* ------------------------------
   CONTACTO
------------------------------ */
.contact {
  padding: 120px clamp(20px, 5vw, 40px);
}

.contact-form {
  max-width: 650px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: #111;
  padding: 40px;
  border-radius: 12px;
  border: 1px solid #222;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon i {
  position: absolute;
  left: 14px;
  font-size: 1.2rem;
  color: var(--accent);
  opacity: 0.8;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border-radius: 6px;
  border: none;
  background: #1a1a1a;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border: 1px solid var(--accent);
  background: #222;
}

.contact-form select {
  appearance: none;
  cursor: pointer;
}

.textarea-icon textarea {
  height: 150px;
  resize: none;
}

.contact-form button {
  margin-top: 10px;
  padding: 14px 28px;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

/* ------------------------------
   CONFÍAN EN NOSOTROS
------------------------------ */
.trust {
  padding: 100px clamp(20px, 5vw, 40px);
  text-align: center;
}

.trust-title {
  color: var(--accent);
  margin-bottom: 50px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
}

.trust-logos img {
  height: 45px;
  opacity: 0.75;
  filter: grayscale(100%);
  transition:
    opacity 0.3s ease,
    filter 0.3s ease,
    transform 0.3s ease;
}

.trust-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .trust-logos img {
    height: 35px;
  }
}

/* ------------------------------
   CURSOR PINCEL PREMIUM (sin blend-mode)
------------------------------ */
.brush-cursor {
  position: fixed;
  width: 60px;
  height: 60px;
  background: radial-gradient(
    circle,
    rgba(212, 163, 115, 0.45) 0%,
    rgba(212, 163, 115, 0.18) 40%,
    rgba(212, 163, 115, 0.04) 75%,
    transparent 100%
  );
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.9;
  filter: blur(12px);
  transition: transform 0.05s linear;
  z-index: 999999;
}

/* Sparkles sin blend-mode */
.sparkle {
  position: fixed;
  width: 18px;
  height: 18px;
  background: radial-gradient(
    circle,
    rgba(233, 199, 161, 0.85) 0%,
    rgba(233, 199, 161, 0.35) 40%,
    transparent 100%
  );
  border-radius: 50%;
  pointer-events: none;
  filter: blur(6px);
  animation: sparkleFade 1.2s ease-out forwards;
  z-index: 999998;
}

@keyframes sparkleFade {
  0% {
    opacity: 1;
    transform: scale(0.6);
  }
  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

/* ------------------------------
   FOOTER
------------------------------ */
.footer {
  text-align: center;
  padding: 40px;
  opacity: 0.6;
}
.footer-credit {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  opacity: 0.75;
  letter-spacing: 0.5px;
}

.footer-credit a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.3s ease;
}

.footer-credit a:hover {
  color: var(--accent-light);
  text-shadow: 0 0 8px rgba(212, 163, 115, 0.6);
}

/* ------------------------------
   LÍNEA DE PROGRESO DE LECTURA
------------------------------ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: radial-gradient(
    circle,
    rgba(212, 163, 115, 0.9) 0%,
    rgba(212, 163, 115, 0.5) 40%,
    rgba(212, 163, 115, 0.2) 70%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(212, 163, 115, 0.7);
  transition: width 0.15s linear;
  z-index: 99999;
  mix-blend-mode: screen;
}

/* ------------------------------
   BOTÓN SUBIR ARRIBA
------------------------------ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: radial-gradient(
    circle,
    rgba(212, 163, 115, 0.9) 0%,
    rgba(212, 163, 115, 0.5) 40%,
    rgba(212, 163, 115, 0.2) 70%,
    transparent 100%
  );
  box-shadow: 0 0 15px rgba(212, 163, 115, 0.6);
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.3s ease;
  z-index: 99999;
  mix-blend-mode: screen;
}

.scroll-top i {
  font-size: 26px;
  color: var(--accent);
}

.scroll-top:hover {
  transform: scale(1.12);
}

/* Mostrar botón */
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ------------------------------
   PREMIOS – BODAS.NET (FONDO BLANCO)
------------------------------ */
.awards-white {
  background: #ffffff;
  color: #000;
}

.awards-white .section-title,
.awards-white .awards-subtitle {
  color: #000;
}

.awards-single {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  margin-top: 30px;
}

/* Logo principal */
.awards-main-logo {
  height: 90px;
  object-fit: contain;
  opacity: 0.9;
}

/* Premio */
.awards-badge {
  height: 200px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(100%);
  transition:
    opacity 0.3s ease,
    filter 0.3s ease,
    transform 0.3s ease;
}

.awards-badge:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* Nota aclaratoria */
.awards-note {
  max-width: 750px;
  margin: 25px auto 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #444;
  text-align: center;
  opacity: 0.85;
  font-family: var(--font-body);
}

.awards-note strong {
  color: #000;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .awards-main-logo {
    height: 70px;
  }
  .awards-badge {
    height: 80px;
  }
  .awards-note {
    font-size: 0.9rem;
    padding: 0 20px;
  }
}

.awards-subtitle {
  font-size: 1.2rem;
  font-family: var(--font-title);
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin-bottom: 35px;
  color: #000;
  text-align: center;
  position: relative;
}

.awards-subtitle::after {
  content: "";
  width: 60px;
  height: 2px;
  background: var(--accent);
  display: block;
  margin: 10px auto 0;
  opacity: 0.7;
}

/* Imagen de prensa */
.about-press {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.about-press-img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.about-press-img:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

/* Botón biografía */
.about-btn {
  margin-top: 25px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ------------------------------
   PORTFOLIO PREMIUM
------------------------------ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portfolio-card {
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #222;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 25px rgba(212, 163, 115, 0.25);
}

.portfolio-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.portfolio-info {
  padding: 20px;
  text-align: center;
}

.portfolio-info h3 {
  font-family: var(--font-title);
  color: var(--accent);
  margin-bottom: 8px;
}

.portfolio-info p {
  opacity: 0.8;
  margin-bottom: 15px;
}

/* Botón secundario */
.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 4px;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent);
  color: #000;
}

/*------------------------------
   PORTFOLIO PREMIUM - RESPONSIVE
------------------------------ */
.portfolio-more {
  margin-top: 40px;
  text-align: center;
}

.portfolio-btn {
  padding: 12px 28px;
  font-size: 1rem;
}

.portfolio-btn i {
  margin-right: 6px;
  font-size: 18px;
}
/* El enlace ocupa todo el card sin alterar el layout */
.service-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  border-radius: 12px;
}

/* Hover aplicado al card completo (no al contenido interno) */
.service-card:hover {
  transform: translateY(-4px);
  background: rgba(212, 163, 115, 0.08);
  transition: 0.3s ease;
}
