/*
Theme Name: GeneratePress Child
Theme URI: https://generatepress.com
Description: Child theme for GeneratePress - Customize safely without losing changes on parent theme updates
Author: Your Name
Author URI: https://yoursite.com
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: generatepress-child
*/

/* ============================================================================
   CUSTOM STYLES - REORGANIZED FOR MAINTAINABILITY
   Add your custom CSS here. This file will not be overwritten on theme updates.
   
   Theme Color Variables (GeneratePress):
   --contrast: #222222 (Dark gray for text)
   --contrast-2: #7f957f (Muted green)
   --contrast-3: #b2b2be (Light gray)
   --base: #efe7e4 (Cream background)
   --base-2: #f7f8f9 (Light background)
   --base-3: #cfa9a2 (Accent cream)
   --accent: #6f9476 (Primary green)
   --color-hover: #4a5846 (Dark green for hover states)
   ============================================================================ */

audio,canvas,embed,iframe,img,object,svg,video,picture{
	display:block;
	vertical-align: middle;
	height:100%;
}

h1{
	line-height:normal !important;
}

/* Solo para el hero: wrapper con rounded-[2rem] + overflow-hidden */
.relative.rounded-\[2rem\].overflow-hidden.shadow-2xl > picture,
.relative.rounded-\[2rem\].overflow-hidden.shadow-2xl > img {
  display: block;
  width: 100%;
  height: 100%;
}

.relative.rounded-\[2rem\].overflow-hidden.shadow-2xl picture > img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.header-image{
	height: 81px;
	width: 270px;
}


/* Material Icons Local */
/* Forzar Material Icons Local */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/material-icons-v145-latin-regular.woff2') format('woff2');
  font-display: swap;
}

.material-icons {
  font-family: 'Material Icons' !important;
  font-style: normal;
  font-size: 30px;
  font-weight: 400;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
}

/* Open Sans Local */
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/open-sans-v44-latin-regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/open-sans-v44-latin-700.woff2') format('woff2');
  font-display: swap;
}

/* Playfair Display Local */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/playfair-display-v40-latin-700.woff2') format('woff2');
  font-display: swap;
}



/* ============================================================================
   1. VARIABLES & RESETS
   Custom CSS variables and global resets
   ============================================================================ */

/* Homepage specific: Hide entry header only on homepage */
.home .entry-header {
  display: none;
}

/* Remove top padding on homepage to eliminate white space */
.home .site-content {
  padding-top: 0;
}

/* ============================================================================
   2. HEADER & NAVIGATION
   Sticky header, navigation menu styling, and menu buttons
   ============================================================================ */

/* Make header sticky on scroll */
.site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 9999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  /* Subtle shadow to separate from content */
}

/* Center-align navigation items vertically */
.main-navigation .inside-navigation {
  display: flex;
  align-items: center;
}

/* Subscribe button styling in main menu */
.main-navigation .menu-item.boton-menu a {
  background-color: var(--contrast-2);
  color: var(--base-2) !important;
  border-radius: 20px;
  padding: 8px 20px !important;
  margin-left: 15px;
  /* Separate from other menu items */
  line-height: normal;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.main-navigation .menu-item.boton-menu a:hover {
  background-color: var(--color-hover);
  transform: translateY(-2px);
}

/* ============================================================================
   3. FOOTER
   Footer widgets styling - logo, links, social icons
   ============================================================================ */

/* Footer Widget 1 - Fertilidad Pro logo and description */
.footer-widget-1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-widget-1 img {
  margin-bottom: 10px;
  max-width: 150px;
  height: auto;
}

.footer-widget-1 aside{
	margin-bottom:0px !important;
}

.footer-widget-1 p {
  margin-top: 0 !important;
  line-height: 1.5;
  font-size: 0.9rem;
  color: var(--contrast);
}

/* Footer Widget 2 - Centered links and subscribe button */
.footer-widget-2 {
  text-align: center;
}

.footer-widget-2 ul {
  list-style-position: inside;
  padding: 0;
}

.footer-widget-2 a {
    color: var(--contrast) !important;
	font-size:18px !important;
	font-weight:500;
}

.footer-widget-2 a:hover {
    color: var(--accent) !important;
	font-size:18px !important;
	text-decoration:underline;
}

/* Convert subscribe links in footer to button style */
.footer-widget-2 a[href*="comunidad"],
.footer-widget-2 a[href*="newsletter"] {
  display: inline-block;
  background-color: var(--accent);
  color: var(--base-2) !important;
  border-radius: 20px;
  padding: 8px 20px !important;
  margin-top: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-widget-2 a[href*="comunidad"]:hover,
.footer-widget-2 a[href*="newsletter"]:hover {
  background-color: var(--color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Footer Widget 3 - Social media icons */
.footer-widget-3 .wp-block-social-links {
  justify-content: center !important;
  gap: 20px;
}

.footer-widget-3 .wp-block-social-link {
  transform: scale(1.1);
  transition: all 0.3s ease;
}

.footer-widget-3 .wp-block-social-link:hover {
  transform: scale(1.2) translateY(-3px);
  /* Levitation effect on hover */
  background: var(--color-hover);
}

.wp-block-social-links .wp-social-link span:not(.screen-reader-text) {
    font-size: 18px;
	color: #fff !important;
}

.wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor, .wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor svg, .wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:active, .wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:hover, .wp-block-social-links .wp-block-social-link.wp-social-link .wp-block-social-link-anchor:visited
{
    color: #fff !important;
    fill: #fff !important;
}

:root :where(.wp-block-social-links.is-style-pill-shape .wp-social-link a) {
    padding: 10px !important;
}

/* ============================================================================
   4. BLOG & POST LISTING
   Category lists, post badges, and blog archive styling
   ============================================================================ */

/* Category badges on individual posts (pastilla-categoria-post) */
.pastilla-categoria-post a {
  display: inline-block;
  margin-right: 8px;
  margin-top: 8px;
  padding: 5px 14px !important;
  border-radius: 20px;
  background-color: var(--accent);
  color: white !important;
  text-decoration: none;
  font-family: "Open Sans", sans-serif !important;
}

.pastilla-categoria-post a:last-child {
  margin-right: 0;
}

.pastilla-categoria-post a:hover {
  background-color: var(--color-hover);
}

/* Blog category list - horizontal button layout */
.wp-block-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  list-style-type: none;
  padding: 0;
  justify-content: flex-start;
}

.wp-block-categories li a {
  background-color: var(--base-2);
  color: #333;
  padding: 6px 15px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--accent);
  transition: all 0.3s ease;
  margin-top: 15px;
}

.wp-block-categories li a:hover {
  background-color: var(--color-hover);
  color: white;
}

/* ============================================================================
   5. SINGLE POST
   Single post layout, hero, TOC, and related posts
   ============================================================================ */

body.single-post .entry-header,
body.single-post .inside-article>.entry-meta,
body.single-post .inside-article>footer.entry-meta,
body.single-post .featured-image.page-header-image-single {
  display: none;
}

body.single-post .inside-article {
  padding-top: 26px;
}


/* CSS para las migas en el post */
.fp-single-breadcrumbs {
  margin-bottom: 24px;
  font-size: 15px;
}

.fp-single-breadcrumbs a,
.fp-single-breadcrumbs span {
  color: var(--contrast);
}

.fp-single-breadcrumbs a {
  text-decoration: underline;
}

.fp-single-breadcrumbs a:hover {
  color: var(--accent);
  font-weight: 600;
}

/* Estilo para el último elemento (el post actual) */
.rank-math-breadcrumb .last {
  font-weight: 600;
  /* Para que resalte un poco más */
  text-decoration: none;
  /* Por si el tema le pone subrayado */
}

.rank-math-breadcrumb .separator {
  margin: 0 8px;
  color: var(--contrast-2);
}

/* Estilos de las pastillas de categoría */
.fp-single-category-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.fp-single-category-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--base-2);
  font-size: 15px;
  line-height: 1.1;
  text-decoration: none;
}

.fp-single-category-badge:hover {
  background: var(--contrast-2);
  color: var(--base-2);
  font-weight: 500;
  text-decoration: underline;
}

/* Estilos del título y los metadatos del post*/
.fp-single-title {
  margin: 0 0 10px;
  color: var(--contrast);
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
}

.fp-single-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--contrast-2);
  font-size: 14px;
  line-height: 26px;
  margin-bottom: 25px;
}

.fp-reading-time-wrapper {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.fp-meta-icon {
  margin-right: 6px;
  opacity: 0.8;
  /* Para que no brille tanto como el texto */
  font-size: 20px !important;
}

/* Contenedor principal del Hero */
.fp-single-hero-columns {
  display: flex;
  gap: 50px;
  align-items: center;
  margin: 40px 0;
}

/* Columna de la Imagen (40% de ancho aprox) */
.fp-column-image {
  flex: 0 0 550px;
  /* Ancho fijo para la columna de la imagen */
}

/* Forzar imagen cuadrada con bordes redondeados */
.fp-hero-square-image {
  width: 550px;
  height: 550px;
  object-fit: cover;
  /* Recorta la imagen para que sea cuadrada sin deformar */
  border-radius: 20px;
  display: block;
}

/* Columna del Índice */
.fp-column-toc {
  flex: 1;
  min-width: 300px;
}

.fp-toc-title h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 500;
}

.fp-toc-title h3 span {
  font-size: 18px;
  margin-bottom: 20px;
}

.fp-toc {
  width: 100%;
  padding: 20px;
  margin: 0 0 28px;
  border: 1px solid var(--contrast-2);
  border-radius: 12px;
  background: var(--base-2);
}

div#ez-toc-container {
  width: 100%;
  border: none !important;
  box-shadow: none !important;
  background: var(--base-2);
  color: var(--contrast);
}

/* Forzamos opacidad total y color sólido en todos los niveles del índice */
#ez-toc-container ul li,
#ez-toc-container ul li a {
  opacity: 1 !important;
  color: var(--contrast) !important;
  /* Pon aquí el color oscuro que prefieras */
  text-decoration: none;
}

/* Sección Puntos Clave*/
.fp-key-takeaways {
  padding: 20px;
  background-color: var(--base-2);

  /* BORDE IZQUIERDO: Línea verde sólida */
  border-left: 8px solid var(--accent);

  /* ESQUINAS: Superior-izq | Superior-der | Inferior-der | Inferior-izq */
  /* 0 para cuadradas, valor en px para redondeadas */
  border-radius: 0 15px 15px 0;

  /* Sombra suave para dar profundidad (opcional) */
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.05);
}

.fp-key-takeaways h3 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 500;
}

.fp-key-takeaways h3 span {
  font-size: 18px;
  margin-bottom: 20px;
}

.fp-key-takeaways ul {
  list-style: none !important;
  font-size: 15px;
  font-family: "Open Sans", sans-serif;
  padding: 10px;
}

.fp-key-takeaways ul>li {
  position: relative;
  padding-left: 55px;
  /* Espacio para el icono */
  margin-bottom: 12px;
  display: block;
  align-items: flex-start;
  line-height: 1.6;
}

.fp-key-takeaways ul>li::before {
  /* Cargamos la fuente de Material Icons */
  font-family: 'Material Icons';
  content: 'star';
  /* Aquí pones el nombre del icono de Google */

  /* Posicionamiento y Estilo */
  position: absolute;
  left: 0;
  top: 0px;
  display: flex;
  align-items: center;

  width: 25px;
  height: 1em;
  /* Alineado con el line-height del li */

  font-size: 20px;
  padding-left: 25px;
  color: var(--accent);
  /* El verde de tu marca */

  /* Suavizado de fuente para iconos */
  overflow: visible !important;
  font-variant: normal;
  text-transform: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* Responsivo para móviles: una columna */
@media (max-width: 1280px) {
  .fp-single-hero-columns {
    flex-direction: column;
    /* Imagen arriba, TOC abajo en móvil */
  }

  .fp-column-image,
  .fp-hero-square-image {
    width: 100%;
    height: 350px;
    /* Un poco más baja en móvil para que no ocupe todo */
  }

  .fp-column-image {
    flex: 0 0 350px;
  }
}


/*********************************************
*  SECCIONES DEL FOOTER
**************************************************/
.fp-single-footer-sections {
  display: flex;
  flex-direction: column;
  /* Apilado vertical, más seguro que grid en móvil */
  gap: 28px;
  margin-top: 36px;
  width: 100%;
  /* El truco: evitar que cualquier hijo crezca más que el padre */
  max-width: 100%;
  overflow: hidden;
}

/* Forzamos a que los wrappers de patrones sincronizados no tengan anchos fijos */
.fp-single-share-wrapper,
.fp-single-newsletter-wrapper,
.fp-single-related-wrapper {
  width: 100%;
  max-width: 100%;
}

/* Atacamos al contenedor de los botones */
.fp-single-share-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow: visible !important;
  /* Eliminamos el scroll */
}

/* Forzamos a que el lugar donde viven los botones permita el salto de línea */
.fp-single-share-wrapper>div,
.fp-single-share-wrapper .gb-container {
  display: flex !important;
  flex-wrap: wrap !important;
  /* Permite que los botones bajen a la siguiente fila */
  gap: 10px !important;
  /* Espacio entre botones */
  justify-content: flex-start;
  /* Alineados a la izquierda (o 'center' si prefieres) */
}

/* Ajuste para los botones individuales */
.fp-single-share-wrapper a[href*="twitter"],
.fp-single-share-wrapper a[href*="facebook"],
.fp-single-share-wrapper a {
  flex-shrink: 0 !important;
  /* Que no se deformen */
  max-width: fit-content;
  /* Que solo ocupen lo que necesiten */
}

.fp-single-related-title {
  margin: 0 0 16px;
  color: var(--contrast);
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.fp-single-related-wrapper .gb-looper {
  margin-top: 0;
}

/* Si GenerateBlocks está metiendo un ancho fijo en el interior */
.fp-single-footer-sections .gb-container {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 10px !important;
  /* Un poco de aire para que no toque el borde */
  padding-right: 10px !important;
}

/* Ajuste específico para móvil (Media Query) */
@media (max-width: 768px) {
  .fp-single-footer-sections {
    gap: 20px;
    /* Reducimos el hueco en móvil */
    padding: 0 15px;
    /* Damos un pequeño margen interno para que no pegue al borde de la pantalla */
  }

  /* Si el Query Loop de GenerateBlocks tiene columnas, forzamos a 1 columna en móvil */
  .fp-single-related-wrapper .gb-query-loop-wrapper {
    display: flex;
    flex-direction: column;
  }
}

/* 1. Blindamos los títulos dentro del cuerpo del post */
.contenido-post h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem) !important;
  line-height: 1.2 !important;
  margin-top: 1.5em !important;
  margin-bottom: 0.8em !important;
  color: var(--contrast);
  font-weight: 700;
  font-family: "Playfair Display", serif;
}

.contenido-post h3 {
  font-size: clamp(1.4rem, 3vw, 1.7rem) !important;
  line-height: 1.3 !important;
  margin-top: 1.2em !important;
  margin-bottom: 0.6em !important;
  color: var(--contrast);
  font-weight: 600;
  font-family: "Playfair Display", serif;
}

.contenido-post h4 {
  font-size: clamp(1.2rem, 3vw, 1.5rem) !important;
  line-height: 1.3 !important;
  margin-top: 1.2em !important;
  margin-bottom: 0.6em !important;
  color: var(--contrast);
  font-weight: 500;
  font-family: "Playfair Display", serif;
}

/* 2. Aseguramos que el texto de los párrafos sea legible */
.contenido-post p {
  font-size: 16.5px !important;
  line-height: 1.7 !important;
  margin-bottom: 1.5em !important;
  color: var(--contrast);
  font-weight: 350;
}

.contenido-post ul {
  list-style-type: disc !important;
  /* Activamos el punto */
  margin-left: 20px !important;
  /* Damos espacio para que se vea el punto */
  padding-left: 0;
  margin-bottom: 20px;
}

.contenido-post li {
  font-size: 16.5px !important;
  line-height: 1.5 !important;
  color: var(--contrast);
  font-weight: 350;
  display: list-item !important;
  /* Forzamos que se comporte como lista */
  padding-left: 10px;
  /* Espacio entre el bullet y el icono/texto */
  margin-bottom: 10px;
}


/* ============================================================================
   6. LEGAL PAGES
   Privacy policy, terms of service, and legal pages styling
   ============================================================================ */

/* Reserved for legal pages specific styles */

/* ============================================================================
   7. FORMS (CF7 styling)
   Contact Form 7 and other form styling
   ============================================================================ */

/* Reserved for form-specific styles */

/* ============================================================================
   8. COMPONENTS (CookieYes, categories, badges)
   Third-party components and reusable UI elements
   ============================================================================ */

/* CookieYes cookie consent banner customization */
.cky-btn-accept {
  background-color: var(--accent) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  border: none !important;
}

.cky-btn-reject,
.cky-btn-customize,
.cky-btn-preferences {
  background-color: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  border-radius: 9999px !important;
}

.cky-banner-text,
.cky-banner-text * {
  color: var(--contrast) !important;
}

.cky-consent-container .cky-consent-bar {
  background-color: var(--base) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cky-btn-revisit-wrapper {
  background-color: var(--accent) !important;
}

/* Category archive page title and description */
.category .gb-cat-title {
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 700;
  color: var(--contrast);
}

.category .cat-description {
  font-size: 1.1rem;
  opacity: .8;
  color: var(--contrast);
}

/* ============================================================================
   9. GENERATEBLOCKS OVERRIDES
   Specific overrides for GenerateBlocks elements
   ============================================================================ */

/* Reserved for GenerateBlocks specific overrides */

/* ============================================================================
   10. RESPONSIVE
   Media queries and responsive adjustments
   ============================================================================ */

@media (max-width: 768px) {
  body.single-post .inside-article {
    padding-top: 20px;
  }

  .fp-single-intro {
    margin-bottom: 24px;
  }

  .fp-single-hero {
    gap: 14px;
  }

  .fp-single-hero-image {
    max-height: 300px;
    border-radius: 12px;
  }

  .fp-single-title {
    font-size: clamp(30px, 8vw, 40px);
  }

  .fp-single-meta {
    font-size: 13px;
    gap: 6px;
  }

  .fp-single-share-wrapper .gb-element-a3b5c7d9 {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .fp-single-share-wrapper .gb-element-a3b5c7d9 a {
    white-space: nowrap;
  }

  body.single-post .ez-toc-container {
    margin-bottom: 20px;
  }

  body.single-post .ez-toc-title {
    font-size: 20px;
  }
}


/* ============================================================================
   11. NEWSLETTER FORM
   Formulario newsletter de contact-form-7.
   ============================================================================ */
/* ===== NEWSLETTER (CF7) - look como la imagen ===== */

/* Contenedor flex */
.cf7-tailwind-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  max-width: 520px;
  margin: 0 auto;
  height: 55px;
}

.cf7-tailwind-wrapper p,
.cf7-tailwind-wrapper .wpcf7-form-control-wrap {
  margin: 0 !important;
  height: 44px !important;
}

/* CF7 suele envolver el input en un span (wpcf7-form-control-wrap) */
.cf7-tailwind-wrapper .wpcf7-form-control-wrap {
  display: block !important;
  flex: 0 1 260px;
  /* <- ancho “caja” como en la imagen */
}

/* INPUT: cajita recta (no pill) */
.cf7-tailwind-wrapper input[type="email"] {
  width: 100% !important;
  height: 44px !important;
  padding: 0 18px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px !important;
  /* <- esquinas suaves */
  background: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 14px !important;
  color: #111827 !important;
}

/* Placeholder con tono suave (como en la imagen) */
.cf7-tailwind-wrapper input[type="email"]::placeholder {
  color: #94a3b8 !important;
}

/* Focus discreto */
.cf7-tailwind-wrapper input[type="email"]:focus {
  border-color: #cbd5e1 !important;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, .25) !important;
}

/* 3) Misma altura real + box model igual */
.cf7-tailwind-wrapper input[type="email"],
.cf7-tailwind-wrapper input[type="submit"] {
  height: 44px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  display: block !important;
  /* <- evita baseline raro */
}

/* 4) Si el botón sigue "subido", suele ser line-height */
.cf7-tailwind-wrapper input[type="submit"] {
  line-height: 44px !important;
  /* <- lo centra verticalmente sí o sí */
  padding: 0 28px !important;
  /* importante: 0 vertical, altura manda */
}

/* BOTÓN: pill + sombra */
.cf7-tailwind-wrapper input[type="submit"] {
  height: 44px !important;
  padding: 0 28px !important;
  border-radius: 9999px !important;
  border: none !important;
  background: #111111 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  cursor: pointer !important;
  box-shadow: 0 10px 18px rgba(0, 0, 0, .18) !important;
  /* <- “floating” */
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease !important;
}

.cf7-tailwind-wrapper input[type="submit"]:hover {
  background: #000 !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .22) !important;
}

/* Título newsletter: quitar tracking raro del tema */
.cf7-newsletter h2,
.newsletter-card h2,
.max-w-4xl h2 {
  letter-spacing: -0.02em !important;
  word-spacing: normal !important;
  font-kerning: normal;
  font-variant-ligatures: normal;
  font-family: "Playfair Display", serif;
}

/* Si el tema aplica tracking por clase (muy típico) */
.cf7-newsletter h2 *,
.newsletter-card h2 * {
  letter-spacing: -0.02em !important;
}


/* Móvil: apila */
@media (max-width: 640px) {
  .cf7-tailwind-wrapper {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .cf7-tailwind-wrapper .wpcf7-form-control-wrap {
    flex: 1 1 auto;
  }

  .cf7-tailwind-wrapper input[type="submit"] {
    width: 100% !important;
  }

  .respetamos-privacidad {
    margin-top: 50px !important;
  }
}

/* ====================================================
   Contact Form 7 - FORMULARIO DE CONTACTO
   ===================================================== */

/* Quitar margen que CF7 añade con <p> */
.fp-cf7 p {
  margin-bottom: 0 !important;
}

/* CF7: anular el autop (<p> y <br>) dentro de tu wrapper */
.fp-cf7 .fp-field>p {
  margin: 0 !important;
  padding: 0 !important;
}

.fp-cf7 .fp-field br {
  display: none !important;
}

/* Asegura que el wrap del control no mete huecos */
.fp-cf7 .wpcf7-form-control-wrap {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

.fp-cf7.fp-card {
  background: #fff;
  border-radius: 22px;
  padding: 34px 34px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Layout */
.fp-cf7 .fp-row {
  margin-bottom: 10px;
}

.fp-cf7 .fp-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

@media (max-width: 700px) {
  .fp-cf7.fp-card {
    padding: 26px 20px 22px;
    border-radius: 18px;
  }

  .fp-cf7 .fp-row-2 {
    grid-template-columns: 1fr;
  }
}

/* Labels */
.fp-cf7 .fp-label {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.55);
  margin: 0 0 8px !important;
  font-family: "Open Sans", sans-serif;
}

/* Inputs */
.fp-cf7 input.fp-input,
.fp-cf7 textarea.fp-textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  background: #fafafa;
  outline: none;
  box-shadow: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.fp-cf7 textarea.fp-textarea {
  min-height: 120px;
  max-height: 160px;
  resize: vertical;
  padding-top: 16px;
}

/* Placeholder */
.fp-cf7 input.fp-input::placeholder,
.fp-cf7 textarea.fp-textarea::placeholder {
  color: rgba(0, 0, 0, 0.40);
}

/* Focus */
.fp-cf7 input.fp-input:focus,
.fp-cf7 textarea.fp-textarea:focus {
  background: #fff;
  border-color: rgba(102, 128, 110, 0.55);
  /* tono verdoso suave */
  box-shadow: 0 0 0 4px rgba(102, 128, 110, 0.18);
}

/* Botón */
.fp-cf7 .fp-row-submit {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

.fp-cf7 input.fp-btn.wpcf7-submit {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: #6B866F;
  /* verde similar a tu captura */
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  font-family: "Open Sans", sans-serif;
  margin-bottom: 0px !important;
}

.fp-cf7 input.fp-btn.wpcf7-submit:hover {
  filter: brightness(0.97);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.fp-cf7 input.fp-btn.wpcf7-submit:active {
  transform: translateY(1px);
}

/* Mensajes CF7 */
.fp-cf7 .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
}

.fp-cf7 .wpcf7-not-valid-tip {
  font-size: 13px;
  margin-top: 8px;
}

/* Quitar estilos raros de algunos themes */
.fp-cf7 .wpcf7-form-control {
  margin: 0;
}

.no-gap {
  column-gap: 0px !important;
  gap: 0px !important;
}

/* ====================================================
   Contact Form 7 - FORMULARIO DE NEWSLETTER EN COMUNIDAD
   ===================================================== */
/* Layout */
.fp-nwl-cf7 .fp-nwl-row {
  margin-bottom: 25px;
}

.fp-nwl-cf7 input.fp-input::placeholder {
  color: rgba(0, 0, 0, 0.40);
}

.fp-nwl-cf7 .wpcf7-response-output {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 14px;
}

/* Botón */
.fp-nwl-cf7 .fp-nwl-row-submit {
  margin-top: 0px !important;
  margin-bottom: 0px !important;
}

.fp-nwl-cf7 input.fp-btn.wpcf7-submit {
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 16px 18px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
  font-family: "Open Sans", sans-serif;
  margin-bottom: 0px !important;
  margin-top: 15px !important;
}

.fp-nwl-cf7 input.fp-btn.wpcf7-submit:hover {
  filter: brightness(0.97);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
  background: var(--color-hover);
}

.fp-nwl-cf7 input.fp-btn.wpcf7-submit:active {
  transform: translateY(1px);
}

/* Labels */
.fp-nwl-cf7 .fp-nwl-label {
  display: block;
  font-size: 15px;
  line-height: 1.2;
  color: rgba(0, 0, 0, 0.9);
  margin-bottom: 10px !important;
  font-family: "Open Sans", sans-serif;
  font-weight: 500;
}

/* Inputs */
.fp-nwl-cf7 input.fp-input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 15px;
  background: #fafafa;
  outline: none;
  box-shadow: none;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

/* Focus */
.fp-nwl-cf7 input.fp-input:focus {
  background: #fff;
  border-color: rgba(102, 128, 110, 0.55);
  /* tono verdoso suave */
  box-shadow: 0 0 0 4px rgba(102, 128, 110, 0.18);
}

/* Quitar margen que CF7 añade con <p> */
.fp-nwl-cf7 p {
  margin-bottom: 0 !important;
}

/* CF7: anular el autop (<p> y <br>) dentro de tu wrapper */
.fp-nwl-cf7 .fp-nwl-field>p {
  margin: 0 !important;
  padding: 0 !important;
}

.fp-nwl-cf7 .fp-nwl-field br {
  display: none !important;
}

/* Asegura que el wrap del control no mete huecos */
.fp-nwl-cf7 .wpcf7-form-control-wrap {
  display: block;
  margin: 0 !important;
  padding: 0 !important;
}

.fp-nwl-subtitle>p {
  display: block;
  font-size: 13px;
  text-align: center;
  color: rgba(0, 0, 0, 0.65);
}

.wp-faq-details {
  width: 100%;
}

/* ====================================================
   FORMATO PÁGINAS LEGALES
   ===================================================== */

.legal-page {
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left: 40px;
  padding-right: 40px;
}

.legal-page h2 {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  padding-top: 20px;
  padding-bottom: 20px;
  font-weight: 500;
}

.legal-page p {
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.legal-page ul {
  padding-top: 20px;
  padding-bottom: 20px;
}

.legal-page a {
  text-decoration: underline;
  color: var(--contrast-2);
}

/* ====================================================
   QUITAR TAILWIND
   ===================================================== */
.grid-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 1500px !important;
}