/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/
/* =======================================================
   GRAVITY FORMS — ESTILO OSCURO CORPORATIVO (ID 1)
   ======================================================= */

/* Ocultar texto de campos obligatorios */
.gform_required_legend {
  display: none !important;
}

/* Contenedor principal */
#gform_wrapper_1 {
  background: transparent !important;
  padding: 0 !important;
  font-family: var(--gp-font--inter), Inter, sans-serif;
}

/* TÍTULOS */
#gform_wrapper_1 .gform_heading h2,
#gform_wrapper_1 h3 {
  color: #ffffff !important;
  font-weight: 700;
  margin-bottom: 24px;
}

/* LABELS */
#gform_wrapper_1 .gfield_label {
  color: #ffffff !important;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 15px;
}

/* CAMPOS */
#gform_wrapper_1 input[type="text"],
#gform_wrapper_1 input[type="email"],
#gform_wrapper_1 input[type="tel"],
#gform_wrapper_1 select,
#gform_wrapper_1 textarea {
  width: 100%;
  border-radius: 0.25rem;
  border: 1px solid #e0e3e7;
  background-color: #ffffff;
  padding: 12px 14px;
  color: #2c3e50 !important;
  font-size: 15px;
  transition: 0.2s ease;
}

/* Placeholder */
#gform_wrapper_1 ::placeholder {
  color: #7d7d7d;
}

/* Focus */
#gform_wrapper_1 input:focus,
#gform_wrapper_1 select:focus,
#gform_wrapper_1 textarea:focus {
  border-color: #a01659;
  box-shadow: 0 0 0 3px rgba(160,22,89,0.25);
  outline: none;
}


/* =======================================================
   🔥 CONSENTIMIENTO
   ======================================================= */

/* Casilla checkbox */
#gform_wrapper_1 #field_1_8 input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #a01659;
}

/* Texto del consentimiento */
#gform_wrapper_1 #field_1_8 .gfield_consent_label {
  color: #ffffff !important;
  font-size: 15px;
  line-height: 1.5;
}

/* Todo su contenido interno excepto links */
#gform_wrapper_1 #field_1_8 .gfield_consent_label *:not(a) {
  color: #ffffff !important;
}

/* Enlaces */
#gform_wrapper_1 #field_1_8 .gfield_consent_label a {
  color: #a01659 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

/* Hover: mismo color */
#gform_wrapper_1 #field_1_8 .gfield_consent_label a:hover {
  color: #a01659 !important;
  text-decoration: underline !important;
}


/* =======================================================
   BOTÓN
   ======================================================= */

#gform_wrapper_1 .gform_footer input[type="submit"] {
  background-color: #a01659;
  color: #ffffff;
  border: none;
  border-radius: 0.25rem;
  padding: 1.2rem 2rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.5s ease;
}

#gform_wrapper_1 .gform_footer input[type="submit"]:hover {
  filter: brightness(150%);
}


/* =======================================================
   VALIDACIONES
   ======================================================= */

#gform_wrapper_1 .gform_validation_errors {
  background: #fff3f3;
  border-left: 4px solid #a01659;
  border-radius: 4px;
  padding: 12px 16px;
}

#gform_wrapper_1 .gfield.gfield_error input,
#gform_wrapper_1 .gfield.gfield_error select,
#gform_wrapper_1 .gfield.gfield_error textarea {
  border-color: #a01659 !important;
  box-shadow: 0 0 0 3px rgba(160,22,89,0.25);
}

#gform_wrapper_1 .validation_message {
  color: #a01659 !important;
  font-size: 13px;
}


/* =======================================================
   ESPACIADO
   ======================================================= */

#gform_wrapper_1 .gfield {
  margin-bottom: 18px;
}

@media (max-width: 768px) {
  #gform_wrapper_1 .gfield {
    margin-bottom: 14px;
  }
}


/* =======================================================
   BOTONES GENERALES GRAVITY FORMS
   ======================================================= */

.gform_wrapper .gform_footer input[type="submit"],
.gform_wrapper .gform_page_footer input[type="button"],
.gform_wrapper .gform_page_footer input[type="submit"],
.gform_wrapper button {
  background-color: #a01659;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 14px 28px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.gform_wrapper .gform_footer input[type="submit"]:hover,
.gform_wrapper .gform_page_footer input[type="button"]:hover,
.gform_wrapper .gform_page_footer input[type="submit"]:hover,
.gform_wrapper button:hover {
  background-color: #f02185;
  color: #ffffff;
}


/* =======================================================
   RESPONSIVE + GENERATEBLOCKS
   ======================================================== */

@media (max-width: 768px) {

  /* GenerateBlocks grid/container */
  .gb-container,
  .gb-grid-wrapper,
  .gb-grid-column {
    display: block !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Gravity Forms layout */
  .gform_wrapper,
  .gform_wrapper form,
  .gform_wrapper .gform_body,
  .gform_wrapper .gform_fields {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Todos los campos a una columna */
  .gform_wrapper .gfield,
  .gform_wrapper .gfield[class*="gfield--width"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    grid-column: 1 / -1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Inputs */
  .gform_wrapper input,
  .gform_wrapper select,
  .gform_wrapper textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* ⚠️ FIX CRÍTICO
     min-width SOLO para GenerateBlocks */
  .gb-container * {
    min-width: 0 !important;
  }

  /* Botón a ancho completo */
  .gform_wrapper .gform_footer input[type="submit"] {
    width: 100% !important;
  }
}


/* =======================================================
   PREVENIR SCROLL HORIZONTAL
   ======================================================= */

html,
body {
  overflow-x: hidden;
}

}
/* ==============================
   TABLA DE CONTENIDOS
============================== */

.tabla-contenido {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin: 32px 0;
  background: #f9fafb;
}

.toc-toggle {
  all: unset;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 16px;
  color: #111827;
}

.toc-toggle .flecha {
  transition: transform 0.3s ease;
}

.toc-toggle .flecha.rotada {
  transform: rotate(180deg);
}

.toc-contenido {
  margin-top: 12px;
}

.toc-oculto {
  display: none;
}

.toc-contenido ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.toc-contenido a {
  text-decoration: none;
  color: #a01659;
  font-size: 14px;
}

.toc-contenido a:hover {
  text-decoration: underline;
}

.toc-h3 {
  margin-left: 16px;
}

.toc-h4 {
  margin-left: 32px;
}

@media (max-width: 768px) {
  .tabla-contenido {
    padding: 14px;
  }

  .toc-toggle {
    font-size: 15px;
  }
}
/* NOTA IMPORTANTE – TIPOGRAFÍA (GeneratePress + GenerateBlocks) GeneratePress (v3.6+) utiliza variables CSS para gestionar las fuentes (por ejemplo: --gp-font-inter).GenerateBlocks aplica font-family: inherit a sus textos, por lo que TODO el contenido hereda la fuente definida en el <body>. Tras una actualización, el <body> puede no tener asignada explícitamente la variable de fuente, provocando que todo el sitio herede la fuente por defecto del navegador (Arial/serif). Estas reglas fuerzan correctamente las fuentes base y de encabezados usando las variables de GeneratePress. No eliminar salvo que se cambie el sistema tipográfico global o se deje de usar GenerateBlocks.*/
body {
    font-family: var(--gp-font-inter);
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--gp-font-playfair-display);
}
/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
}

.whatsapp-float:hover {
    background-color: #1ebea5;
    transform: scale(1.1);
}

.whatsapp-float a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}