:root {
  /* COLORES */
  --color-primary: #ff7700;
  --color-primary-hover: #f87400;

  --color-secondary: #f1f1f1;
  --color-secondary-hover: #e6e6e6;
  --color-celeste: #9af7fc;

  --color-bg: #ffffff;
  --color-bg-alt: #f7f7f5;

  --color-text: #121212;
  --color-text-alt: #5f5f5f;

  --color-border: #e4e4e4;

  /* TIPOGRAFÍA */

  --text-xs: 14px;
  --text-sm: 16px;
  --text-md: 20px;
  --text-lg: 32px;
  --text-xl: 48px;
  --text-hero: clamp(3rem, 6vw, 8rem);

  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.6;

  --radius-buttons: 12px;
}

@media (max-width: 768px) {
  /* TABLET */

  :root {
    --text-xs: 14px;
    --text-sm: 16px;
    --text-md: 18px;
    --text-lg: 28px;
    --text-xl: 40px;
  }
}

@media (max-width: 480px) {
  /* MOBILE */

  :root {
    --text-xs: 13px;
    --text-sm: 15px;
    --text-md: 17px;
    --text-lg: 24px;
    --text-xl: 32px;
  }
}

h2 {
  color: var(--color-primary);
}

.primary-button,
.secondary-button {
  border-radius: var(--radius-buttons);
  font-family: var(--font-sans);
  font-weight: 300;
  font-weight: var(--fw-light);
}

.primary-button {
  background: var(--color-primary);
  color: #fff;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

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

.secondary-button {
  background: var(--color-secondary);
  color: #222;
}

.secondary-button:focus {
  background: var(--color-secondary);
  color: #222;
}

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

.primary-button:hover,
.secondary-button:hover {
  transform: scale(1.02);
}

body {
  background: #fff !important;
}

.title-line-separator hr {
  background-color: rgba(0, 0, 0, 0.2) !important;
  border-top: 0 !important;
  border: none;
}

.title-line-separator h2 {
  font-size: 30px !important;
  font-family: var(--font-serif) !important;
}

@media (max-width: 480px) {
  .title-line-separator h2 {
    font-size: 24px !important;
  }
}

/* =========================================
   SECCIÓN: LIBROS DESTACADOS
   ========================================= */

/* --- DESKTOP (Estructura base) --- */
.libros-destacados .section-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  /* 1 fracción para título, 2 fracciones para libros */
  gap: 50px;
  align-items: center;
  /* Centra el título verticalmente con los libros */
}

/* Estilos básicos para el título */
.libros-destacados .section-title h2 {
  color: var(--color-primary);
  margin-bottom: 15px;
}

/* El contenedor del slider (necesario para el overlay en móvil) */
.libros-destacados .slider-container {
  position: relative;
  width: 100%;
}

/* Grilla de libros */
.libros-destacados .section-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Cada libro */
.libros-destacados .book-item {
  width: 100%;
  height: auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  /* Sombreado elegante */
  border-radius: 4px;
  transition: transform 0.3s ease;
  /* Transición suave */
}

/* Pequeña animación al pasar el mouse en Desktop */
.libros-destacados .book-item:hover {
  transform: translateY(-8px);
}

/* --- TABLET (768px o menor) --- */
/* (Usamos 768px que es el estándar donde las tablets suelen apilar contenido, pero puedes cambiarlo a 720px) */
@media (max-width: 768px) {
  .libros-destacados .section-layout {
    grid-template-columns: 1fr;
    /* Pasamos a una sola columna */
    gap: 40px;
  }

  .libros-destacados .section-title {
    text-align: center;
    /* Centramos el título arriba */
  }

  .libros-destacados .section-content {
    /* Mantenemos los 3 libros uno al lado del otro */
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- MOBILE (480px o menor) --- */
@media (max-width: 480px) {
  .libros-destacados .section-layout {
    gap: 30px;
  }

  /* Contenedor relativo que sostiene el degradado */
  .libros-destacados .slider-container {
    overflow: hidden;
    /* El ancho completo (Full Bleed) se maneja ahora con la clase .u-mobile-full-bleed */
  }

  /* Transformamos la grilla en un Flexbox con scroll horizontal */
  .libros-destacados .section-content {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 20px;
    padding-top: 15px;
    /* Espacio para que no se corte la sombra arriba */
    padding-bottom: 45px;
    /* Espacio para la sombra abajo + barra de scroll */
    padding-left: var(--content-side-padding);
    /* Devolvemos el padding izquierdo para que el primer libro alinee con el título */
    padding-right: calc(40px + var(--content-side-padding));
    /* Espacio extra al final para que el último libro no quede pegado al borde */

    /* Ocultar barra de scroll en navegadores (queda más limpio) */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
    scroll-snap-type: x mandatory;
    /* Opcional: hace que los libros se "imanten" al hacer scroll */
  }

  .libros-destacados .section-content::-webkit-scrollbar {
    display: none;
    /* Ocultar en Chrome/Safari/Opera */
  }

  /* Redimensionamos los libros para que se note que hay más a la derecha */
  .libros-destacados .book-item {
    flex: 0 0 65%;
    /* Cada libro ocupa el 65% del ancho de la pantalla */
    scroll-snap-align: center;
    /* Imantación al centro */
  }

  /* MAGIA: El overlay / degradado blanco a la derecha */
  .libros-destacados .slider-container::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    /* Ancho del degradado */
    height: calc(100% - 20px);
    /* Restamos el padding inferior */
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) 90%
    );
    pointer-events: none;
    /* IMPORTANTÍSIMO: Permite hacer scroll o tap a través del degradado */
    z-index: 2;
  }
}

/* =========================================
   SECCIÓN: HERO
   ========================================= */

.hero-section {
  position: relative;
  /* Necesario para el degradado inferior */
  min-height: 100vh;
  min-height: 100svh;
  /* Soporte moderno para pantallas móviles con barras de navegación dinámicas */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
  /* Reserva de espacio para el Header fijo. Lo ajustaremos luego. */
  text-align: center;
}
@media (max-width: 768px) {
  .hero-section video {
    object-fit: cover;
    object-position: left top;
  }
}
/* El degradado a blanco en la parte inferior para transición suave */
.hero-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  /* Altura del degradado, puedes aumentarlo o disminuirlo */
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
  /* Para que no interfiera si hay botones ahí */
  z-index: 1;
}

/* Tipografía del Hero */
.hero-section .hero-subtitle {
  font-family: "Playfair Display", serif;
  /* Asumo una fuente Serif basada en tu imagen */
  font-style: italic;
  font-size: var(--text-lg);
  margin-bottom: 0;
  font-weight: 400;
  color: var(--color-text);
  position: relative;
  z-index: 2;
  /* Para que quede sobre el video/fondo */
}

.hero-section .hero-title {
  font-family: "Playfair Display", serif;
  font-size: var(--text-hero);
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: var(--lh-tight);
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--color-text);
  position: relative;
  z-index: 2;
}

/* Descripción */
.hero-section .hero-desc {
  max-width: 500px;
  margin: 0 auto 0px;
  font-size: var(--text-md);
  color: var(--color-text);
  position: relative;
  z-index: 2;
  text-wrap: balance;
  margin-bottom: 30px;
}

/* Formulario de Suscripción (Adaptado para Contact Form 7) */
.hero-section .hero-form {
  width: 100%;
  max-width: 550px;
  margin: 12px auto;
  /* Centrar el bloque en caso de que CF7 lo tire a la izquierda */
  position: relative;
  z-index: 2;
}

/* CF7 suele meter los inputs dentro de form > p */
.hero-section .hero-form form {
  display: block;
  /* El form debe ser bloque para que el <p> no se encoja */
  width: 100%;
}

/* Neutralizar el inner-container de WordPress que inyecta en el grupo del form */
.hero-section .hero-form > .wp-block-group__inner-container {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}

/* Evitar que el spinner de CF7 rompa el layout de flexbox */
.hero-section .hero-form .wpcf7-spinner {
  position: absolute;
  visibility: hidden;
}

.hero-section .hero-form form p {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* CF7 div wrapper */
.hero-section .hero-form .wpcf7 {
  width: 100%;
}

/* Wrappers que añade CF7 (ej. span.wpcf7-form-control-wrap) */
.hero-section .hero-form .wpcf7-form-control-wrap {
  flex: 1;
  /* Esto obliga al input a estirarse y ocupar todo el espacio disponible */
  display: block;
  width: 100%;
}

.hero-section .hero-form input[type="email"] {
  width: 100%;
  height: 54px;
  /* Altura fija para que coincida exactamente con el botón */
  padding: 0 20px;
  margin: 0;
  border: none;
  border-radius: 14px;
  background: #f0f0f0;
  font-size: var(--text-sm);
  color: #333;
  box-sizing: border-box;
}

.hero-section .hero-form input[type="submit"],
.hero-section .hero-form button {
  height: 54px;
  /* Altura fija para que coincida exactamente con el input */
  padding: 0 30px;
  margin: 0;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
  white-space: nowrap;
  /* Evita que el texto del botón se rompa en dos líneas */
  box-sizing: border-box;
  transition: 0.25s ease all;
}

.hero-section .hero-form input[type="submit"]:hover,
.hero-section .hero-form button:hover {
  opacity: 0.8;
}

.hero-section .hero-form input[type="submit"]:hover {
  transform: scale(1.02);
}

/* Ajustes en Móvil para el Hero */
@media (max-width: 480px) {
  .hero-section .hero-form form,
  .hero-section .hero-form form p {
    flex-direction: column;
  }

  .hero-section .hero-form input[type="submit"],
  .hero-section .hero-form button {
    width: 100%;
  }
}

/* ---------------------------------------------------------------------------------------- */

.mc4wp-form,
.mc4wp-form-fields,
.mm-newsletter-form {
  width: 100%;
}

.mm-newsletter-form {
  display: flex;
  gap: 10px;
  width: 100%;
}

.mm-newsletter-form input[type="email"] {
  flex: 1;
  width: 100%;
  min-height: 54px;
  height: 54px;

  padding: 0 20px;

  border: none;
  border-radius: 14px;

  background: #f0f0f0;
  color: #333;

  font-size: 16px;
  line-height: 54px;

  box-sizing: border-box;

  appearance: none;
  -webkit-appearance: none;
}

.mm-newsletter-form input[type="email"]::placeholder {
  color: #777;
}

.mm-newsletter-form input[type="submit"],
.mm-newsletter-form button {
  height: 54px;
  padding: 0 30px;
  margin: 0;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  transition: 0.25s ease all;
}

.mm-newsletter-form input[type="submit"]:hover,
.mm-newsletter-form button:hover {
  opacity: 0.9;
  transform: scale(1.02);
  background: var(--color-primary);
}

.seccion-suscripcion .mm-newsletter-form input[type="submit"],
.seccion-suscripcion .mm-newsletter-form button {
  background: #1a1a1a;
  color: #fff;
}

.seccion-suscripcion .mm-newsletter-form input[type="submit"]:hover,
.seccion-suscripcion .mm-newsletter-form button:hover {
  background: #1a1a1a;
  color: #fff;
}

/* Mensaje éxito */
.mc4wp-success {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.25);
}

/* Mensaje error */
.mc4wp-error {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 480px) {
  .mm-newsletter-form {
    flex-direction: column;
  }

  .mm-newsletter-form input[type="submit"],
  .mm-newsletter-form button {
    width: 100%;
  }
  @media (max-width: 480px) {
    .mm-newsletter-form input[type="email"],
    .mm-newsletter-form input[type="submit"] {
      height: 56px;
      min-height: 56px;
    }
  }
}

/* Contenedor general del mensaje */
.mc4wp-response .mc4wp-alert {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 56px;
  padding: 14px 18px;
  margin-top: 16px;

  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;

  box-sizing: border-box;
}

/* Reset del <p> interno */
.mc4wp-response .mc4wp-alert p {
  margin: 0;
  padding: 0;
}

/* SUCCESS */
.mc4wp-response .mc4wp-success {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

/* ERROR */
.mc4wp-response .mc4wp-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

/* WARNING / NOTICE */
.mc4wp-response .mc4wp-notice {
  background: #fef9c3;
  border: 1px solid #fde047;
  color: #854d0e;
}

/* INFO */
.mc4wp-response .mc4wp-info {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e3a8a;
}

/* =========================================
   COUNTDOWN
   ========================================= */

.hero-section .hero-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 18px;

  margin-bottom: 30px;

  position: relative;
  z-index: 2;
  filter: drop-shadow(0 12px 30px rgba(255, 255, 255, 0.35));
}

/* -----------------------------------------
   Label
----------------------------------------- */

.hero-section .mm_countdown_label {
  font-size: var(--text-md);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;

  color: rgba(25, 35, 45, 0.75);

  text-align: center;
}

/* -----------------------------------------
   Grid
----------------------------------------- */

.hero-section .mm_countdown_grid {
  display: flex;
  align-items: flex-end;
  justify-content: center;

  gap: clamp(14px, 2vw, 30px);

  flex-wrap: wrap;
}

/* -----------------------------------------
   Item
----------------------------------------- */

.hero-section .mm_countdown_item {
  display: flex;
  align-items: flex-end;

  gap: 6px;
}

/* -----------------------------------------
   Número grande
----------------------------------------- */

.hero-section .mm_countdown_number {
  display: block;

  font-size: clamp(54px, 10vw, 120px);

  line-height: 0.95;

  font-weight: 300;

  letter-spacing: -4px;

  background: linear-gradient(to bottom, #24313c 0%, #182028 100%);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  text-shadow:
    0 10px 30px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(255, 255, 255, 0.25);
}

/* -----------------------------------------
   Unidad
----------------------------------------- */

.hero-section .mm_countdown_unit {
  font-size: clamp(12px, 1.3vw, 15px);

  text-transform: uppercase;

  letter-spacing: 1.5px;

  margin-bottom: 10px;

  color: rgba(20, 30, 40, 0.65);

  white-space: nowrap;
}

/* =========================================
   LIVE MODE
   ========================================= */

.hero-section .mm_countdown_live_label {
  font-size: clamp(28px, 5vw, 52px);

  font-weight: 300;

  letter-spacing: 2px;

  text-transform: uppercase;

  color: #18222c;

  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}

/* =========================================
   HERO LIVE MODE
   ========================================= */

.hero-section.is-live {
  transition: all 0.6s ease;
}

/* -----------------------------------------
   Subtitle
----------------------------------------- */

.hero-section.is-live .hero-subtitle {
  opacity: 0.72;

  letter-spacing: 3px;

  text-transform: uppercase;

  transition: all 0.5s ease;
}

/* -----------------------------------------
   Title
----------------------------------------- */

.hero-section.is-live .hero-title {
  font-size: clamp(48px, 9vw, 110px);

  line-height: 0.95;

  margin-bottom: 22px;

  color: #182028;

  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

  transition: all 0.6s ease;
}

/* -----------------------------------------
   Countdown
----------------------------------------- */

.hero-section.is-live .hero-counter {
  opacity: 0;

  transform: translateY(-10px);

  pointer-events: none;

  position: absolute;

  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

/* -----------------------------------------
   Description
----------------------------------------- */

.hero-section.is-live .hero-desc {
  margin-bottom: 34px;

  animation: mmHeroFadeUp 0.8s ease;
}

/* -----------------------------------------
   Book cover
----------------------------------------- */

.hero-book-cover {
  display: block;

  width: min(320px, 68vw);

  height: auto;

  margin: 0 auto;

  border-radius: 14px;

  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.14),
    0 10px 25px rgba(0, 0, 0, 0.08);

  transform: translateY(0);

  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;

  animation: mmHeroBookReveal 1s ease;
}

.hero-book-cover:hover {
  transform: translateY(-4px);

  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.18),
    0 14px 35px rgba(0, 0, 0, 0.1);
}

/* -----------------------------------------
   CTA Button
----------------------------------------- */

.hero-buy-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 240px;
  min-height: 58px;

  padding: 0 36px;

  border-radius: 999px;

  background: linear-gradient(to bottom, #22303c, #182028);

  color: #ffffff;

  text-decoration: none;

  font-size: 15px;
  font-weight: 600;

  letter-spacing: 0.5px;

  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.12),
    0 6px 18px rgba(0, 0, 0, 0.08);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;

  animation: mmHeroFadeUp 1s ease;
}

.hero-buy-button:hover {
  transform: translateY(-3px);

  opacity: 0.98;

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.16),
    0 8px 22px rgba(0, 0, 0, 0.1);
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes mmHeroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mmHeroBookReveal {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================
   MOBILE LIVE MODE COUNTDOWN
   ========================================= */

@media (max-width: 640px) {
  .hero-section.is-live .hero-title {
    font-size: clamp(42px, 13vw, 68px);
  }

  .hero-book-cover {
    width: min(260px, 72vw);

    border-radius: 10px;
  }

  .hero-buy-button {
    width: 100%;

    min-width: 0;
  }
}

/* =========================================
   MOBILE COUNTDOWN
   ========================================= */

@media (max-width: 640px) {
  .hero-section .hero-counter {
    gap: 14px;
  }

  .hero-section .mm_countdown_grid {
    gap: 10px;
  }

  .hero-section .mm_countdown_item {
    gap: 4px;
  }

  .hero-section .mm_countdown_number {
    font-size: clamp(42px, 14vw, 64px);

    letter-spacing: -2px;
  }

  .hero-section .mm_countdown_unit {
    font-size: 10px;

    margin-bottom: 6px;

    letter-spacing: 1px;
  }
}

/* =========================================
   SECCIÓN: SUSCRIPCIÓN (Antes del Footer)
   ========================================= */

.seccion-suscripcion {
  position: relative;
  padding: 120px 0 80px 0;
  /* Espacio para que respire la imagen */
  text-align: center;
  background-color: #ffffff;
  /* Si la página es blanca */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* La imagen de fondo con opacidad y máscara */
.seccion-suscripcion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://carloscarpintieri.com/wp-content/uploads/2026/05/email.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.44;
  /* Según el diseño de Framer */
  /* Máscara para que se difumine hacia arriba (transparente arriba, sólido abajo) */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
  z-index: 1;
}

/* Contenedor del contenido para que quede por encima del fondo */
.seccion-suscripcion > .wp-block-group__inner-container,
.seccion-suscripcion > * {
  position: relative;
  z-index: 2;
  max-width: 700px;
  /* Limita el ancho del texto y formulario */
  margin: 0 auto;
  width: 100%;
}

.seccion-suscripcion h2 {
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  margin-bottom: 24px;
}

.seccion-suscripcion p {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-family: var(--font-sans);
  line-height: 1.5;
  text-wrap: balance;
  font-weight: var(--fw-light);
}

/* Formulario de Suscripción (Clase: suscripcion-form) */
.seccion-suscripcion .suscripcion-form form {
  display: block;
  width: 100%;
}

.seccion-suscripcion .suscripcion-form form p {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0;
}

.seccion-suscripcion .suscripcion-form .wpcf7 {
  width: 100%;
}

.seccion-suscripcion .suscripcion-form .wpcf7-form-control-wrap {
  flex: 1;
  display: block;
  width: 100%;
}

.seccion-suscripcion .suscripcion-form input[type="email"] {
  width: 100%;
  height: 54px;
  padding: 0 20px;
  margin: 0;
  border: none;
  border-radius: 14px;
  background: #f3f3f3;
  /* Fondo sutil para que contraste con la imagen */
  font-size: var(--text-sm);
  color: #333;
  box-sizing: border-box;
}

.seccion-suscripcion .suscripcion-form input[type="submit"],
.seccion-suscripcion .suscripcion-form button {
  height: 54px;
  padding: 0 30px;
  margin: 0;
  background: #222;
  /* Botón oscuro, hace juego con el footer */
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-weight: var(--fw-light);
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.25s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.seccion-suscripcion .suscripcion-form input[type="submit"]:hover,
.seccion-suscripcion .suscripcion-form button:hover {
  background: var(--color-primary);
  /* Efecto hover en naranja */
}

.seccion-suscripcion .suscripcion-form input[type="submit"] {
  transition: transform 0.25s ease;
}

.seccion-suscripcion .suscripcion-form input[type="submit"]:hover {
  transform: scale(1.02);
}
.seccion-suscripcion .suscripcion-form .wpcf7-spinner {
  position: absolute;
  visibility: hidden;
}

/* Ajustes Móvil */
@media (max-width: 480px) {
  .seccion-suscripcion .suscripcion-form form p {
    flex-direction: column;
  }

  .seccion-suscripcion .suscripcion-form input[type="submit"],
  .seccion-suscripcion .suscripcion-form button {
    width: 100%;
  }
}

/* =========================================
   SECCIÓN: SOBRE MÍ
   ========================================= */

.seccion-sobre-mi {
  padding: var(--space-section) 0;
  /* Espaciado superior e inferior para la sección */
}

.tarjeta-sobre-mi {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  /* El texto ocupa un poco más de espacio que la imagen */
  background: #ffffff;
  border-radius: 8px;
  /* Bordes ligeramente redondeados */
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
  /* Sombra suave envolvente */
  overflow: hidden;
  /* Para que la imagen no se salga de los bordes redondeados */
  width: 100%;
  max-width: 1200px;
}

/* Truco mágico de CSS para "eliminar" el contenedor extra que inyecta WordPress
   sin romper la estructura, logrando que el Grid afecte a los grupos internos directamente */
.tarjeta-sobre-mi > .wp-block-group__inner-container {
  display: contents;
}

/* Columna de Texto */
.tarjeta-sobre-mi .sobre-mi-texto {
  padding: 60px 80px;
  /* Mucho aire interior como en tu diseño */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tarjeta-sobre-mi h2 {
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  margin-bottom: 25px;
}

.tarjeta-sobre-mi p {
  color: var(--color-text);
  font-size: var(--text-sm);
  line-height: var(--lh-body);
  margin-bottom: 20px;
}

.tarjeta-sobre-mi p:last-child {
  margin-bottom: 0;
}

/* Columna de Imagen (Fondo CSS) */
.tarjeta-sobre-mi .sobre-mi-imagen {
  width: 100%;
  height: 100%;
  min-height: 400px;
  /* Altura mínima para que no desaparezca si hay poco texto */
  background-image: url("https://carloscarpintieri.com/wp-content/uploads/2026/05/foto_apostol.jpg");
  background-size: cover;
  background-position: center 10%;
  /* Ajuste para enfocar la cara/torso superior */
  background-repeat: no-repeat;
  padding: 0 !important;
  /* Elimina cualquier padding por defecto de WP */
  margin: 0 !important;
  /* Elimina cualquier margen por defecto de WP */
}

/* Ajustes Responsive (Tablets y Móviles) */
@media (max-width: 900px) {
  .tarjeta-sobre-mi {
    grid-template-columns: 1fr;
    /* Pasa a una sola columna */
  }

  .tarjeta-sobre-mi .sobre-mi-texto {
    padding: 40px 30px;
  }

  .tarjeta-sobre-mi .sobre-mi-imagen {
    min-height: 350px;
    order: -1;
    /* Pone la imagen ARRIBA del texto en celulares */
  }
}

/* =========================================================
   LITESTORE
========================================================= */

.mm-book-stack-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 9px 14px;

  border-radius: 8px !important;

  background: var(--color-primary) !important;
  color: #fff;

  font-size: 12px;
  font-weight: 600;
  line-height: 1;

  white-space: nowrap;
  font-family: var(--font-sans);
}

/* ==================================================
*
* PÁGINA TÉRMINOS Y CONDICIONES
*
====================================================*/

body.page-id-167 {
  background: #fff !important;
}

.page-id-167 h2 {
  color: var(--color-primary) !important;
}

.page-id-167 h1 {
  color: #1a1a1a;
}

.page-id-167 .site-content {
  max-width: 95vw;
  padding: 20px;
}
.page-id-167 p {
  font-size: 16px !important;
  font-weight: var(--fw-light);
  font-family: var(--font-sans);
  color: #1a1a1a;
}

.page-id-167 .wp-block-separator {
  border: none;
  border-top: 1px solid #e4e4e4;
}

/* FIX HERO PRODUCT */

.hero-product {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-product .litestore-product {
  width: 100%;
  max-width: 300px;
}

/*
|--------------------------------------------------------------------------
| HIDE CARD TITLE + PRICE
|--------------------------------------------------------------------------
*/

.hero-product .litestore-product-title,
.hero-product .litestore-product-price {
  display: none;
}

/*
|--------------------------------------------------------------------------
| FIX BUTTONS
|--------------------------------------------------------------------------
*/

.hero-product .litestore-product-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-product .litestore-product-buttons a,
.hero-product .litestore-product-buttons button {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 44px;
  padding: 12px 16px;
  box-sizing: border-box;
}

/*
|--------------------------------------------------------------------------
| OPTIONAL
|--------------------------------------------------------------------------
*/

.hero-product .litestore-product-image img {
  display: block;
  width: 100%;
  height: auto;
}

/*
|--------------------------------------------------------------------------
| CARD CONTAINER
|--------------------------------------------------------------------------
*/

.hero-product .litestore-product {
  background: transparent;
  box-shadow: none;
  border: none;
  transform: none !important;
  transition: none !important;
}

/*
|--------------------------------------------------------------------------
| REMOVE CARD HOVER EFFECTS
|--------------------------------------------------------------------------
*/

.hero-product .litestore-product:hover {
  transform: none !important;
  box-shadow: none !important;
}

/*
|--------------------------------------------------------------------------
| IMAGE / COVER
|--------------------------------------------------------------------------
*/

.hero-product .litestore-product-image {
  border-radius: 6px;
  overflow: hidden;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

/*
|--------------------------------------------------------------------------
| COVER HOVER EFFECT
|--------------------------------------------------------------------------
*/

.hero-product .litestore-product-image:hover {
  transform: translateY(-4px);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/*
|--------------------------------------------------------------------------
| IMAGE
|--------------------------------------------------------------------------
*/

.hero-product .litestore-product-image img {
  display: block;
  width: 100%;
  height: auto;
}

/*
|--------------------------------------------------------------------------
| HIDE TITLE + PRICE
|--------------------------------------------------------------------------
*/

.hero-product .litestore-product-title,
.hero-product .litestore-product-price {
  display: none;
}

/*
|--------------------------------------------------------------------------
| BUTTONS LAYOUT
|--------------------------------------------------------------------------
*/

.hero-product .litestore-product-buttons {
  margin-top: 14px;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

/*
|--------------------------------------------------------------------------
| BUTTONS
|--------------------------------------------------------------------------
*/

.hero-product .litestore-product-buttons a,
.hero-product .litestore-product-buttons button {
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;

  min-height: 44px;
  padding: 12px 16px;

  text-align: center;
  text-decoration: none;
}

/*
|--------------------------------------------------------------------------
| HIDE "ADD TO CART"
|--------------------------------------------------------------------------
*/

.hero-product .litestore-product .litestore-add-to-cart {
  display: none !important;
}

/* MAILCHIMP */

.mc4wp-checkbox,
.mc4wp_checkbox,
input[name="_mc4wp_subscribe_contact-form-7"] {
  display: none !important;
}

.wpcf7 form .wpcf7-response-output {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35) !important;
  color: #41594c;
  backdrop-filter: blur(10px);

  font-size: 15px;
  font-weight: 500;
  text-align: center;
}

.wpcf7 form.invalid .wpcf7-response-output {
  background: rgba(197, 34, 34, 0.12);
  border: 1px solid rgba(197, 34, 34, 0.35) !important;
  color: #594141;
}
