:root {
  --verde: #062f2b;
  --verde2: #041f1c;
  --dorado: #d4af37;
  --blanco: #ffffff;
  --gris: #a8b0ae;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--verde);
  color: var(--blanco);
  font-family: 'Poppins', sans-serif;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: #021816;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
}

/* LOGO */
.logo img {
  height: 40px;
}

/* NAV DESKTOP */
nav {
  display: flex;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--blanco);
  font-size: 14px;
  position: relative;
}

nav a::after {
  content: "";
  width: 0;
  height: 1px;
  background: var(--dorado);
  position: absolute;
  bottom: -4px;
  left: 0;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 2001;
}

.menu-toggle span {
  height: 2px;
  width: 25px;
  background: var(--blanco);
  margin: 5px 0;
  transition: 0.3s;
}

/* ANIMACIÓN HAMBURGUESA */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* HERO */
.hero-cinematic {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background: linear-gradient(180deg, #111111, #050505);
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  margin-bottom: 20px;
}

.hero-content p {
  color: var(--blanco);
  margin-bottom: 40px;
}

/* BOTÓN */
.btn-cinematic {
  padding: 15px 40px;
  border: 1px solid var(--dorado);
  color: var(--dorado);
  text-decoration: none;
  transition: 0.3s;
}

.btn-cinematic:hover {
  background: var(--dorado);
  color: var(--verde);
}

/* ===== MOBILE ===== */
@media(max-width: 900px){

  /* MOSTRAR HAMBURGUESA */
  .menu-toggle {
    display: flex;
  }

  /* OCULTAR NAV NORMAL */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;

  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(20px);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: 0.4s ease;

  z-index: 999; /* 👈 menor que hamburguesa */
}

header {
  z-index: 1000;
}

.menu-toggle {
  z-index: 2000; /* 👈 siempre arriba */
  position: relative;
}

nav ul {
  margin-top: 80px; /* 👈 baja el menú para que no choque con header */
}

.close-menu {
  top: 25px;
  right: 25px;
  font-size: 24px;
  z-index: 2001;
}

  nav.active {
    opacity: 1;
    pointer-events: all;
  }

  nav ul {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  nav ul li a {
    font-size: 28px;
    opacity: 0;
    transform: translateY(30px);
    transition: 0.4s;
  }

  /* ANIMACIÓN */
  nav.active ul li a {
    opacity: 1;
    transform: translateY(0);
  }

  /* BOTÓN CERRAR */
  .close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 28px;
    cursor: pointer;
  }
}

/* BLOQUEAR SCROLL */
.no-scroll {
  overflow: hidden;
}

/* RESPONSIVE EXTRA */
@media(max-width: 600px){
  .hero-content h1 {
    font-size: 34px;
  }
}

/* SECCIÓN */
.group-editorial {
  padding: 20px 20px;
  max-width: 900px;
  margin: auto;
}

/* HEADER */
.editorial-header {
  text-align: center;
  margin-bottom: 80px;
}

.editorial-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 10px;
}

.editorial-header p {
  color: var(--gris);
  max-width: 600px;
  margin: auto;
}

/* LISTA */
.editorial-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ITEM */
.editorial-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}

/* LOGO */
.editorial-item img {
  height: 65px;
  filter: grayscale(100%) brightness(0.9);
  transition: 0.3s;
}

/* TEXTO */
.editorial-item span {
  color: var(--gris);
  font-size: 14px;
  letter-spacing: 1px;
}

/* LÍNEA DORADA */
.editorial-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--dorado);
  transition: 0.4s;
}

/* HOVER */
.editorial-item:hover {
  padding-left: 40px;
}

.editorial-item:hover::after {
  width: 100%;
}

.editorial-item:hover img {
  filter: grayscale(0%) brightness(1.1);
}

.editorial-item:hover span {
  color: var(--dorado);
}

/* RESPONSIVE */
@media(max-width: 600px){
  .editorial-item {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* SECCIÓN */
.about-apple {
  background: #ffffff;
  color: #111;
  padding: 160px 20px;
  position: relative;
}

/* DETALLE SUPERIOR (lujo sutil) */
.about-apple::before {
  content: "";
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
}

/* CONTENEDOR */
.about-container {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

/* IZQUIERDA */
.about-left {
  position: sticky;
  top: 140px;
}

.about-label {
  font-size: 12px;
  letter-spacing: 4px;
  color: #aaa;
  margin-bottom: 20px;
}

.about-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  line-height: 1.2;
}

/* TEXTO */
.about-right p {
  font-size: 18px;
  line-height: 2;
  margin-bottom: 28px;
  color: #444;
  max-width: 720px;
}

/* BLOQUES */
.about-boxes {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* CAJAS PREMIUM */
.box {
  padding: 35px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* LÍNEA DORADA SUPERIOR */
.box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #d4af37;
  transition: 0.5s;
}

/* TITULO */
.box h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 12px;
  font-size: 20px;
}

/* TEXTO */
.box p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

/* HOVER FINO */
.box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  background: #ffffff;
}

.box:hover::before {
  width: 100%;
}

/* ANIMACIÓN MEJORADA */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media(max-width: 900px){
  .about-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-boxes {
    grid-template-columns: 1fr;
  }

  .about-left {
    position: relative;
    top: auto;
  }
}

/* SECCIÓN */
.about-apple {
  background: #ffffff;
  padding: 140px 20px;
}

/* CONTENEDOR */
.about-container {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 70px;
  align-items: center;
}

/* IMAGEN */
.about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* OVERLAY PREMIUM */
.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

/* CONTENIDO */
.about-content {
  max-width: 700px;
}

.about-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: #999;
  display: block;
  margin-bottom: 10px;
}

.about-content h2 {
  color: black;
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 20px;
}

/* TEXTO */
.about-content p {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 20px;
  color: #444;
}

/* BLOQUES */
.about-boxes {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* CAJAS */
.box {
  padding: 30px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.06);
  transition: 0.4s;
}

.box h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.box p {
  font-size: 14px;
  color: #555;
}

/* HOVER */
.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: #d4af37;
}

/* RESPONSIVE */
@media(max-width: 900px){
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-boxes {
    grid-template-columns: 1fr;
  }
}

/* BOTÓN PREMIUM */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  width: 0;
  height: 100%;
  left: 0;
  top: 0;
  background: var(--dorado);
  transition: 0.4s;
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

/* CARDS MÁS PRO */
.card {
  backdrop-filter: blur(10px);
}

.card:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

/* ANIMACIÓN SCROLL */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 40px;
}

.logo span {
  font-family: 'Playfair Display', serif;
  color: var(--dorado);
  font-size: 20px;
}

/* NAV */
nav {
  display: flex;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--blanco);
  font-size: 14px;
  position: relative;
}

nav a::after {
  content: "";
  width: 0;
  height: 1px;
  background: var(--dorado);
  position: absolute;
  bottom: -4px;
  left: 0;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle span {
  height: 2px;
  width: 25px;
  background: var(--blanco);
  margin: 5px 0;
  transition: 0.3s;
}

/* HERO */
.hero {
  text-align: center;
  padding: 120px 20px;
  max-width: 900px;
  margin: auto;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  color: var(--gris);
  line-height: 1.7;
  margin-bottom: 30px;
}

.btn {
  padding: 14px 35px;
  border: 1px solid var(--dorado);
  color: var(--dorado);
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: var(--dorado);
  color: var(--verde);
}

/* VALORES */
.values {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  flex-wrap: wrap;
}

.value {
  max-width: 250px;
  text-align: center;
}

.value h3 {
  color: var(--dorado);
}

/* SERVICIOS */
.services {
  padding: 80px 20px;
  background: var(--verde2);
}

.services h2 {
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  margin-bottom: 50px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  padding: 25px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--dorado);
}

.card h4 {
  color: var(--dorado);
}

/* FOOTER */
footer {
  background: #021816;
  padding: 50px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 30px;
}

.footer-col h4 {
  color: var(--dorado);
  margin-bottom: 10px;
}

.footer-col a, .footer-col p {
  color: var(--gris);
  font-size: 14px;
  display: block;
  margin-bottom: 6px;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 12px;
  color: #6f7a78;
}

.footer-bottom2 {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  opacity: 50%;
  color: #6f7a78;
}

.footer-bottom3 {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #6f7a78;
}

@media(max-width: 900px){

  /* NAV OVERLAY ULTRA PREMIUM */
  nav {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,255,255,0.05), transparent),
                linear-gradient(180deg, #0a0a0a 0%, #000000 100%);
    backdrop-filter: blur(30px);

    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    pointer-events: none;
    transition: 0.5s ease;
    z-index: 1500;
  }

  nav.active {
    opacity: 1;
    pointer-events: all;
  }

  /* CONTENEDOR CENTRADO */
  nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding-top: 40px;
  }

  /* LINKS ESTILO BANCA */
  nav ul li a {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    position: relative;

    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* LÍNEA MINIMALISTA */
  nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;
    width: 0;
    height: 1px;
    background: var(--dorado);
    transform: translateX(-50%);
    transition: 0.4s;
  }

  /* HOVER ELEGANTE */
  nav ul li a:hover {
    color: #fff;
    letter-spacing: 2px;
  }

  nav ul li a:hover::after {
    width: 40%;
  }

  /* ANIMACIÓN ESCALONADA (APPLE STYLE) */
  nav.active ul li:nth-child(1) a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
  }

  nav.active ul li:nth-child(2) a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
  }

  nav.active ul li:nth-child(3) a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
  }

  nav.active ul li:nth-child(4) a {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
  }

  /* BOTÓN CERRAR PRO */
  .close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 22px;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: 0.4s;
  }

  .close-menu:hover {
    color: var(--dorado);
    transform: rotate(90deg) scale(1.1);
  }

}

/* BLOQUEO SCROLL */
.no-scroll {
  overflow: hidden;
}

/* SUAVIZAR TODO */
nav, nav ul li a {
  will-change: transform, opacity;
}

@media(max-width: 900px){

  .menu-toggle {
    display: flex;
    z-index: 2000; /* 👈 para que esté encima del menú */
  }

}

@media(max-width: 500px) {

  .hero h1 {
    font-size: 32px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* SECCIÓN */
.group-editorial {
  padding: 20px 20px;
  max-width: 900px;
  margin: auto;
}

/* HEADER */
.editorial-header {
  text-align: center;
  margin-bottom: 80px;
}

.editorial-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 10px;
}

.editorial-header p {
  color: var(--gris);
  max-width: 600px;
  margin: auto;
}

/* LISTA */
.editorial-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* ITEM */
.editorial-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: 0.3s;
  position: relative;
}

/* LOGO */
.editorial-item img {
  height: 65px;
  filter: grayscale(100%) brightness(0.9);
  transition: 0.3s;
}

/* TEXTO */
.editorial-item span {
  color: var(--gris);
  font-size: 14px;
  letter-spacing: 1px;
}

/* LÍNEA DORADA */
.editorial-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--dorado);
  transition: 0.4s;
}

/* HOVER */
.editorial-item:hover {
  padding-left: 40px;
}

.editorial-item:hover::after {
  width: 100%;
}

.editorial-item:hover img {
  filter: grayscale(0%) brightness(1.1);
}

.editorial-item:hover span {
  color: var(--dorado);
}

/* RESPONSIVE */
@media(max-width: 600px){
  .editorial-item {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}

/* SECCIÓN */
.about-apple {
  background: #ffffff;
  color: #111;
  padding: 160px 20px;
  position: relative;
}

/* DETALLE SUPERIOR (lujo sutil) */
.about-apple::before {
  content: "";
  width: 80px;
  height: 2px;
  background: linear-gradient(to right, transparent, #d4af37, transparent);
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
}

/* CONTENEDOR */
.about-container {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
}

/* IZQUIERDA */
.about-left {
  position: sticky;
  top: 140px;
}

.about-label {
  font-size: 12px;
  letter-spacing: 4px;
  color: #aaa;
  margin-bottom: 20px;
}

.about-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  line-height: 1.2;
}

/* TEXTO */
.about-right p {
  font-size: 18px;
  line-height: 2;
  margin-bottom: 28px;
  color: #444;
  max-width: 720px;
}

/* BLOQUES */
.about-boxes {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* CAJAS PREMIUM */
.box {
  padding: 35px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.06);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* LÍNEA DORADA SUPERIOR */
.box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #d4af37;
  transition: 0.5s;
}

/* TITULO */
.box h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 12px;
  font-size: 20px;
}

/* TEXTO */
.box p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

/* HOVER FINO */
.box:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  background: #ffffff;
}

.box:hover::before {
  width: 100%;
}

/* ANIMACIÓN MEJORADA */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media(max-width: 900px){
  .about-container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .about-boxes {
    grid-template-columns: 1fr;
  }

  .about-left {
    position: relative;
    top: auto;
  }
}

/* SECCIÓN */
.about-apple {
  background: #ffffff;
  padding: 140px 20px;
}

/* CONTENEDOR */
.about-container {
  max-width: 1150px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 70px;
  align-items: center;
}

/* IMAGEN */
.about-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* OVERLAY PREMIUM */
.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
}

/* CONTENIDO */
.about-content {
  max-width: 700px;
}

.about-label {
  font-size: 12px;
  letter-spacing: 3px;
  color: #999;
  display: block;
  margin-bottom: 10px;
}

.about-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 20px;
}

/* TEXTO */
.about-content p {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 20px;
  color: #444;
}

/* BLOQUES */
.about-boxes {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

/* CAJAS */
.box {
  padding: 30px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid rgba(0,0,0,0.06);
  transition: 0.4s;
}

.box h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.box p {
  font-size: 14px;
  color: #555;
}

/* HOVER */
.box:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: #d4af37;
}

/* RESPONSIVE */
@media(max-width: 900px){
  .about-container {
    grid-template-columns: 1fr;
  }

  .about-boxes {
    grid-template-columns: 1fr;
  }
}