/* =========================
   VARIABLES GLOBALES
========================= */
:root {
  --color-primario: #023171;
  --color-secundario: #0056b4;
  --color-acento: #e2a615;
  --color-texto: #0F172A;
  --color-fondo: #F8FAFC;
  --color-gris: #f4f6fb;
  --color-oscuro: #152342;
}

* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}


/* =========================
   RESET + BASE
========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Proxima Nova", Arial, sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

/* =========================
   HEADER
========================= */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; 
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}

/* NAV DESKTOP */
.nav {
  display: flex;
  gap: 30px;
}

/* LINKS */
.nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-texto);
  position: relative;
  padding: 5px 0;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: #fff;
    flex-direction: column;
    gap: 0;

    display: none;
    z-index: 999;

    /* SIN bordes redondos */
    border-radius: 0;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
  }

  .nav a:last-child {
    border-bottom: none;
  }
}

/* =========================
   HERO
========================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(135deg, var(--color-primario), var(--color-secundario));
  color: #fff;
  padding-top: calc(120px + 82px);
}

.hero-content {
  max-width: 1100px;
  margin: auto;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 25px;
}

.hero p {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  max-width: 900px;
  margin: auto;
  opacity: 0.95;
}

.hero-actions {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}


/* =========================
   BOTONES
========================= */

.btn-primary,
.btn-secondary {
  min-height: 56px;               
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 0 36px;                
  border-radius: 999px;

  font-weight: 600;
  font-size: 16px;
  text-decoration: none;

  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--color-acento);
  color: var(--color-oscuro);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0,0,0,0.3);
}

.btn-secondary {
  border: 2px solid currentColor;
  background: transparent;
  color: #fff; /* default para fondos oscuros */
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
}

.btn-secondary.dark {
  color: var(--color-primario);
  border-color: var(--color-primario);
}

.btn-secondary.dark:hover {
  background: rgba(2,49,113,0.08);
}




/* =========================
   SECCIONES
========================= */
section {
  padding: 100px 60px;
}

section h2 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  margin-bottom: 30px;
  text-align: center;
}

/* =========================
   SERVICIOS
========================= */
.services {
  background: #fff;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
  margin-top: 60px;
}

.card {
  background: #fff;
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
  transition: all 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,.15);
}

.card h3 {
  margin: 20px 0 10px;
  font-size: 32px;
}

/* =========================
   SERVICIOS – INDEX
========================= */

.services {
  background: #ffffff;
  position: relative;
}

.services h2 {
  text-align: center;
  margin-bottom: 20px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 35px;
  max-width: 1200px;
  margin: 60px auto 0;
}

/* CARD SERVICIO */
.card {
  background: #ffffff;
  padding: 45px 35px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Línea superior elegante */
.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--color-primario),
    var(--color-secundario)
  );
}

/* Hover */
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.15);
}

/* Título */
.card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  margin-top: 10px;
}

/* Texto */
.card p {
  font-size: 1.05rem;
  color: #374151;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .card {
    padding: 35px 25px;
  }
}


/* =========================
   ABOUT / HISTORIA
========================= */
.about,
.history {
  background: linear-gradient(180deg, #fff, var(--color-gris));
}

.about-content,
.history-content {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.about p,
.history p {
  font-size: 1.2rem;
  margin-top: 20px;
  color: #333;
}

/* =========================
   MISION / VISION
========================= */
.mv-editorial {
  max-width: 900px;
  margin: auto;
}

.mv-line {
  display: flex;
  gap: 30px;
  padding: 40px 0;
  border-bottom: 1px solid #e5e7eb;
}

.mv-line:last-child {
  border-bottom: none;
}

.mv-line span {
  font-size: 42px;
  margin-top: 5px;
}

.mv-line h3 {
  font-size: 34px;
  margin-bottom: 10px;
  color: var(--color-primario);
}

.mv-line p {
  font-size: 1.2rem;
  color: #333;
}


/* =========================
   VALORES
========================= */
.values {
  background: #fff;
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.value-card {
  padding: 30px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, var(--color-gris));
  box-shadow: 0 12px 35px rgba(0,0,0,.08);
}

.value-card h4 {
  font-size: 26px;
  margin-bottom: 10px;
  color: var(--color-primario);
}

.value-card p {
  font-size: 1.1rem;
}

/* =========================
   CONTACTO
========================= */
.contact {
  background: linear-gradient(180deg, #ffffff, var(--color-gris));
}

.form-box {
  max-width: 520px;
  margin: auto;
  background: #fff;
  padding: 3rem;
  border-radius: 22px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
}

input,
select,
textarea {
  width: 100%;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  border: 1px solid #CBD5E1;
  font-size: 16px;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: var(--color-acento);
  box-shadow: 0 0 0 3px rgba(226,166,21,0.3);
  outline: none;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: var(--color-oscuro);
  color: #fff;
  text-align: center;
  padding: 40px;
  font-size: 18px;
}

/* =========================
   ANIMACIONES
========================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  section {
    padding: 70px 25px;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.4rem;
  }
}

/* =========================
   NUESTRA FORMA DE TRABAJO
========================= */

.work-editorial {
  max-width: 900px;
  margin: auto;
}

.work-item {
  display: flex;
  gap: 25px;
  padding: 25px 0;
  border-bottom: 1px solid #e5e7eb;
}

.work-item:last-child {
  border-bottom: none;
}

.work-icon {
  font-size: 34px;
  margin-top: 5px;
}

.work-item h3 {
  font-size: 28px;
  margin-bottom: 6px;
}

.work-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: center;
}

.work-row.reverse {
  direction: rtl;
}

.work-row.reverse > * {
  direction: ltr;
}

.work-highlight {
  padding: 50px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f4f6fb);
  margin-bottom: 40px;
}

/* =========================
   CTA
========================= */

.cta-premium {
  background: linear-gradient(135deg,
    var(--color-primario),
    var(--color-secundario));
  padding: 120px 40px;
  text-align: center;
}

.cta-box {
  max-width: 900px;
  margin: auto;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  border-radius: 40px;
  padding: 80px 60px;
  color: white;
  box-shadow: 0 40px 90px rgba(0,0,0,0.25);
}

.cta-box h2 {
  font-size: clamp(2.8rem, 5vw, 4rem);
  margin-bottom: 25px;
}

.cta-box p {
  font-size: 1.4rem;
  max-width: 700px;
  margin: auto;
  opacity: 0.95;
}

.cta-actions {
  margin-top: 50px;
}

.btn-secondary.dark {
  border-color: white;
  color: white;
}


/* =========================
   menu inicial
========================= */

.nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-texto);
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 3px;
  background: var(--color-acento);
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--color-primario);
}

.nav a:hover::after,
.nav a.active::after {
  width: 100%;
}

.nav a.active {
  font-weight: 600;
  color: var(--color-primario);
}

/* =========================
   SERVICIOS – PÁGINA EDITORIAL
========================= */

.services-page {
  background: #fff;
}

.services-page h1 {
  font-size: clamp(3rem, 5vw, 4rem);
  margin-bottom: 80px;
  text-align: left;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.services-layout {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px 100px;
}

.service-block h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--color-primario);
}

.service-intro {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #374151;
}

.service-block ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

.service-block li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.service-note {
  font-size: 0.95rem;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 900px) {
  .services-layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .services-page h1 {
    text-align: center;
  }
}
