/* =====================================================
   HABLO A LAS PAREDES
   Estilos principales
   Paleta: negro + blanco + azul
   ===================================================== */

:root {
  --black: #050505;
  --black-soft: #0c0c0c;
  --white: #f7f7f5;
  --gray: #b9b9b9;
  --gray-dark: #222;
  --blue: #4d8cff;
  --max-width: 1180px;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.narrow {
  max-width: 820px;
}

.section-light {
  background: var(--white);
  color: var(--black);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

/* ---------- HEADER ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid #222;
}

.logo {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 0.95;
  letter-spacing: 2px;
  color: var(--white);
}

.logo .blue,
.blue {
  color: var(--blue);
}

.logo small {
  margin-top: 7px;
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.5px;
  color: #aaa;
}

.nav {
  display: flex;
  gap: 28px;
  align-items: center;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

.nav a {
  color: #eee;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  background: transparent;
  color: white;
  border: 0;
  font-size: 25px;
  cursor: pointer;
}

/* ---------- HERO ---------- */

.hero {
  min-height: 760px;
  padding: 150px 7% 70px;
  background: var(--black);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-label {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: bold;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(58px, 7vw, 105px);
  line-height: 0.84;
  letter-spacing: 4px;
  margin: 25px 0;
}

.hero h1 span {
  color: var(--blue);
}

.hero h2 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: normal;
  margin: 22px 0 12px;
}

.blue-line {
  width: 38px;
  height: 3px;
  background: var(--blue);
  margin: 18px 0;
}

.lead {
  color: #d2d2d2;
  max-width: 510px;
  font-size: 16px;
}

.author-name {
  font-family: var(--serif);
  color: var(--blue);
  font-size: 17px;
  letter-spacing: 1px;
  margin: 18px 0 25px;
}

.button {
  display: inline-block;
  border: 1px solid var(--blue);
  color: var(--blue);
  background: transparent;
  padding: 12px 23px;
  font-size: 11px;
  letter-spacing: 1.8px;
  transition: 0.2s ease;
  cursor: pointer;
}

.button:hover {
  background: var(--blue);
  color: var(--black);
}

.hero-button {
  padding: 13px 28px;
  font-size: 11px;
  letter-spacing: 2px;
}

.hero-image {
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-image {
  width: 70%;
  height: 85%;
  object-fit: cover;
  object-position: center center;
  filter: grayscale(100%) contrast(115%);
  display: block;
}
.portrait-placeholder {
  width: 90%;
  height: 100%;
  background:
    radial-gradient(circle at 55% 38%, #555 0, #222 17%, #0a0a0a 52%, #050505 72%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portrait-placeholder::after {
  content: "";
  position: absolute;
  width: 55%;
  height: 75%;
  right: 10%;
  bottom: 0;
  border-radius: 48% 48% 0 0;
  background: linear-gradient(110deg, #050505, #222, #050505);
  opacity: 0.9;
}

.portrait-placeholder span {
  position: relative;
  z-index: 2;
  margin-bottom: 25px;
  color: #777;
  font-size: 12px;
  text-align: center;
  letter-spacing: 1px;
}

/* ---------- INTRO ---------- */

.intro {
  padding: 125px 0;
}

.intro h2 {
  font-family: var(--serif);
  font-weight: normal;
  font-size: clamp(42px,5.5vw,64px);
  line-height: 1.02;
  max-width: 700px;
}
.think h2,
.contact h2 {
  font-family: var(--serif);
  font-size: clamp(35px, 5vw, 58px);
  font-weight: normal;
  line-height: 1.05;
  margin: 10px 0;
}
.think h2 {
  font-size: clamp(42px, 5.5vw, 64px);
  line-height: 1;
  max-width: 800px;
}

.intro p:not(.section-label),
.contact p:not(.section-label) {
  font-size: 17px;
  margin: 14px 0;
  color: #333;
}

/* ---------- YOUTUBE ---------- */

.youtube {
  padding: 90px 0;
  border-top: 1px solid #ddd;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.8fr 1.7fr;
  gap: 55px;
}

.youtube h2 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: normal;
}

.youtube h2 span {
  color: var(--blue);
}

.youtube .button {
  margin-top: 25px;
}

.button-outline {
  color: var(--black);
}

.button-outline:hover {
  color: var(--white);
}

.video-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, #050505, #151515 45%, #030303);
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 10px;
  letter-spacing: 2px;
}
.video-thumbnail {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050505;
  border: 1px solid #333;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.video-card a:hover .video-thumbnail img {
  transform: scale(1.03);
}
.video-card h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: 21px;
}

.video-card p {
  color: #555;
  font-size: 13px;
}

/* ---------- BOOK ---------- */

.book {
  padding: 90px 0;
}

.book-grid {
  display: grid;
  grid-template-columns: 250px 1fr 180px;
  gap: 55px;
  align-items: center;
}

.book-cover {
  width: 280px;
  aspect-ratio: 0.66;
  background: #050505;
  border: 1px solid #333;
  box-shadow: 12px 15px 35px rgba(0,0,0,0.5);
  padding: 24px 18px;
  position: relative;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.book-eyes {
  position: absolute;
  left: 0;
  right: 0;
  top: 35%;
  height: 28%;
  background:
    radial-gradient(ellipse at 32% 50%, #ddd 0 3%, #555 4% 8%, transparent 9%),
    radial-gradient(ellipse at 68% 50%, #ddd 0 3%, #555 4% 8%, transparent 9%),
    linear-gradient(#111, #222);
  opacity: 0.7;
  filter: blur(1px);
}

.book-title {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  color: white;
  font-size: 21px;
  line-height: 1;
  letter-spacing: 1px;
}

.book-subtitle {
  position: absolute;
  z-index: 2;
  top: 82px;
  font-family: var(--serif);
  color: #ccc;
  font-size: 8px;
  line-height: 1.25;
}

.book-blue-line {
  position: absolute;
  z-index: 3;
  left: 18px;
  right: 18px;
  top: 52%;
  height: 2px;
  background: var(--blue);
}

.book-author {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 18px;
  color: #aaa;
  font-size: 8px;
}

.book-copy h2 {
  font-family: var(--serif);
  font-size: clamp(36px, 5vw, 55px);
  line-height: 0.95;
  font-weight: normal;
}

.book-copy h3 {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: normal;
  color: var(--blue);
  margin: 10px 0;
}

.book-copy p:not(.section-label):not(.author-name) {
  color: #d0d0d0;
  margin: 13px 0;
  font-size: 14px;
}

.book-copy .author-name {
  margin: 12px 0 20px;
}

.blue-text {
  color: var(--blue);
}

.book-data {
  border-left: 1px solid #333;
  padding-left: 20px;
  font-size: 12px;
}

.book-data div {
  margin-bottom: 20px;
}

.book-data strong {
  display: block;
  color: #777;
  font-size: 9px;
  letter-spacing: 1.5px;
}

.book-data span {
  display: block;
  color: white;
  font-size: 12px;
}

/* ---------- QUOTE ---------- */

.quote {
  padding: 140px 0;
  text-align: center;
}

blockquote {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 58px);
  line-height: 1.2;
  color: #151515;
  max-width: 900px;
  margin: 0 auto;
}

/* ---------- THINK ---------- */

.think {
  padding: 95px 0;
  border-top: 1px solid #ddd;
}

.topics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 65px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.topics article {
  padding: 30px 20px;
  border-right: 1px solid #ccc;
  text-align: center;
}

.topics article:last-child {
  border-right: 0;
}

.topic-icon {
  color: var(--blue);
  font-size: 34px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: normal;
}

.topics h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 10px 0;
}

.topics p {
  font-size: 12px;
  color: #555;
}



/* ---------- CONTACT ---------- */

.contact {
  padding: 120px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.5fr;
  gap: 60px;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 12px 0 5px;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #ccc;
  padding: 13px;
  font: inherit;
  background: white;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  align-self: flex-start;
  margin-top: 15px;
}

.form-note {
  display: none;
  font-size: 10px !important;
  color: #777 !important;
}

.social a {
  display: block;
  border-bottom: 1px solid #ccc;
  padding: 12px 0;
  font-size: 13px;
}

.social a:hover {
  color: var(--blue);
}

/* ---------- FOOTER ---------- */

.footer {
  background: var(--black);
  color: #aaa;
  padding: 25px 0;
  font-size: 11px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-logo {
  font-size: 12px;
}

.footer-logo span {
  color: white;
}

.footer-logo b {
  color: var(--blue);
  font-weight: normal;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a:hover {
  color: var(--blue);
}

/* ---------- DETALLE DEL LIBRO ---------- */

.book-detail {
  padding: 100px 0;
  border-top: 1px solid #ddd;
}

.book-detail h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 66px);
  font-weight: normal;
  line-height: 1;
  margin: 15px 0 18px;
  max-width: 750px;
}

.book-detail p:not(.section-label) {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin: 20px 0;
}

.book-detail-data {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 40px;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
}

.book-detail-data span {
  padding: 18px 25px;
  border-right: 1px solid #ccc;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.book-detail-data span:first-child {
  padding-left: 0;
}




/* ---------- COMPRA DEL LIBRO ---------- */

.book-purchase {
  margin-top: 55px;
  padding-top: 35px;
  border-top: 1px solid #ccc;
}

.book-purchase h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: normal;
  margin-bottom: 10px;
}

.book-purchase p {
  max-width: 650px;
  margin-bottom: 22px !important;
}
/* ---------- CIERRE DEL LIBRO ---------- */

.book-closing {
  margin-top: 95px;
  padding: 70px 0 80px;
  border-top: 1px solid #ccc;
  text-align: center;
}

.book-closing p {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px) !important;
  color: #151515 !important;
  margin: 0 !important;
}

.book-closing strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: normal;
  color: var(--blue);
  line-height: 1;
  margin-top: 12px;
}
/* ---------- SOBRE MÍ ---------- */

.about {
  padding: 160px 0 110px;
  scroll-margin-top: 110px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.about-content {
  max-width: 720px;
}

.about h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 66px);
  font-weight: normal;
  line-height: 1;
  margin: 15px 0 18px;
}
.about h2 span {
  color: var(--blue);
}

.about p:not(.section-label) {
  font-size: 17px;
  line-height: 1.8;
  color: #333;
  margin: 20px 0;
}

.about strong {
  color: var(--black);
  font-family: var(--serif);
  font-weight: normal;
}

.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-photo {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(100%) contrast(115%);
}
.about-photo-placeholder {
  width: 55%;
  max-width: 230px;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(145deg, #111, #050505);
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.about-photo-placeholder span {
  color: #777;
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1.6;
}
/* ---------- RESPONSIVE ---------- */

@media (max-width: 900px) {
  .site-header {
    padding: 15px 5%;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid #333;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 15px 7%;
    border-top: 1px solid #222;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 135px;
  }

  .hero-image {
    height: 400px;
    margin-top: 30px;
  }

  .section-heading,
.book-grid,
.contact-grid,
.about-grid {
  grid-template-columns: 1fr;
}

  .video-cards {
    margin-top: 35px;
  }

  .book-data {
    border-left: 0;
    border-top: 1px solid #333;
    padding: 25px 0 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .topics {
    grid-template-columns: 1fr;
  }

  .topics article {
    border-right: 0;
    border-bottom: 1px solid #ccc;
  }

  .topics article:last-child {
    border-bottom: 0;
  }

  
 
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 65px;
  }

  .video-cards {
    grid-template-columns: 1fr;
  }

  .book-cover {
    margin: 0 auto;
  }
}
/* =========================
   PROYECTOS
========================= */

.projects {
  padding: 110px 0;
}
.projects h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.5vw, 66px);
  font-weight: normal;
  line-height: 1;
  margin: 15px 0 18px;
  max-width: 750px;
}
.projects-block {
  margin-top: 70px;
}

.projects-label {
  color: var(--blue);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  font-weight: 600;
  margin-bottom: 14px;
}

.projects-block h3 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 50px;
}

.books-list {
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.book-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.book-info {
  max-width: 760px;
}

.book-info h4 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.35;
}

.book-info p {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.book-info span {
  font-size: 0.85rem;
  color: #555;
}

.book-status {
  flex-shrink: 0;
  color: var(--blue);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-align: right;
}

.book-published {
  padding-top: 35px;
  padding-bottom: 35px;
}

.book-published .book-info h4 {
  font-size: 1.4rem;
}


/* Adaptación para pantallas pequeñas */

@media (max-width: 700px) {

  .book-item {
    display: block;
    padding: 26px 0;
  }

  .book-status {
    margin-top: 14px;
    text-align: left;
  }

  .projects-block {
    margin-top: 55px;
  }

}
/* =========================
   SERIES DOCUMENTALES
========================= */

.documentary-block {
  margin-top: 110px;
}

.documentary-list {
  border-top: 1px solid rgba(0, 0, 0, 0.18);
}

.documentary-item {
  padding: 35px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.documentary-info {
  max-width: 850px;
}

.documentary-info h4 {
  margin: 0 0 24px;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.documentary-info p {
  margin: 0 0 13px;
  font-size: 1rem;
  line-height: 1.7;
}

.documentary-info p:last-child {
  margin-bottom: 0;
}


/* Adaptación para pantallas pequeñas */

@media (max-width: 700px) {

  .documentary-block {
    margin-top: 80px;
  }

  .documentary-item {
    padding: 28px 0;
  }

  .documentary-info h4 {
    font-size: 1.15rem;
  }

  .documentary-info p {
    font-size: 0.95rem;
  }

}
/* =========================
   ARCHIVO — PSICOANÁLISIS
========================= */

.psychoarchive {
  margin-top: 45px;
  grid-column: 1 / -1;
}

.psychoarchive-header {
  max-width: 560px;
  margin-bottom: 28px;
}

.psychoarchive-label {
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.psychoarchive-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
}

.psychoarchive-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.psychoarchive-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.psychoarchive-number {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.psychoarchive-item h4 {
  margin: 0 0 7px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.psychoarchive-link {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.25s ease;
}

.psychoarchive-link:hover {
  opacity: 0.65;
}



/* Adaptación para pantallas pequeñas */

@media (max-width: 700px) {

  .psychoarchive {
  margin-top: 25px;
}

.psychoarchive-header {
  margin-bottom: 18px;
}

.psychoarchive-item {
  padding: 11px 0;
}

.psychoarchive-item h4 {
  margin-bottom: 4px;
  font-size: 0.78rem;
}

.psychoarchive-link {
  font-size: 0.58rem;
}

}

/* =========================
   ARCHIVO — FILOSOFÍA
========================= */

.philosophyarchive {
  margin-top: 45px;
  grid-column: 1 / -1;
}

.philosophyarchive-header {
  max-width: 560px;
  margin-bottom: 28px;
}

.philosophyarchive-label {
  margin-bottom: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--blue);
}

.philosophyarchive-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
}

.philosophyarchive-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.16);
}

.philosophyarchive-item:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.16);
}

.philosophyarchive-number {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.philosophyarchive-item h4 {
  margin: 0 0 7px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.philosophyarchive-link {
  display: inline-block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--blue);
  text-decoration: none;
  transition: opacity 0.25s ease;
}


.philosophyarchive-link:hover {
  opacity: 0.65;
}

/* Adaptación para pantallas pequeñas */

@media (max-width: 700px) {

  .philosophyarchive {
    margin-top: 25px;
  }

  .philosophyarchive-header {
    margin-bottom: 18px;
  }

  .philosophyarchive-item {
    padding: 11px 0;
  }

  .philosophyarchive-item h4 {
    margin-bottom: 4px;
    font-size: 0.78rem;
  }

  .philosophyarchive-link {
    font-size: 0.58rem;
  }

}