/* Global theme styles */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* {
  font-family: 'Roboto', sans-serif;
}

:root {
  --brand-blue: #004a8f;
  --brand-red: #e70033;
  --brand-white: #ffffff;
  --surface-light: #f8faff;
  --text-default: #272833;
  --container-max: 1200px;
  --container-padding-desktop: 2.5rem;
  --container-padding-tablet: 2rem;
  --container-padding-mobile: 1.5rem;
  --section-spacing-desktop: 4rem;
  --section-spacing-tablet: 3rem;
  --section-spacing-mobile: 2.5rem;
  --stack-gap-desktop: 2.5rem;
  --stack-gap-tablet: 2rem;
  --stack-gap-mobile: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-default);
  background-color: var(--surface-light);
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.body-wrapper {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  background-color: transparent;
  display: flex;
  flex-direction: column;
}

.body-wrapper > * {
  margin: 0;
}

main,
.dnd-section,
.dnd-row,
.dnd-column {
  margin: 0;
  padding: 0;
}

/* HubSpot DnD Column Layout Styles - Sistema de 12 columnas con Flexbox */
.row-fluid-wrapper {
  width: 100%;
}

.row-fluid {
  display: flex;
  flex-wrap: wrap;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
}

.dnd-row .row-fluid {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

/* Widget span base */
.widget-span {
  box-sizing: border-box;
  min-height: 1px;
  position: relative;
}

/* Sistema de 12 columnas de HubSpot usando flexbox */
.span12 {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
}

.span11 {
  flex: 0 0 91.66666667%;
  max-width: 91.66666667%;
}

.span10 {
  flex: 0 0 83.33333333%;
  max-width: 83.33333333%;
}

.span9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.span8 {
  flex: 0 0 66.66666667%;
  max-width: 66.66666667%;
}

.span7 {
  flex: 0 0 58.33333333%;
  max-width: 58.33333333%;
}

.span6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.span5 {
  flex: 0 0 41.66666667%;
  max-width: 41.66666667%;
}

.span4 {
  flex: 0 0 33.33333333%;
  max-width: 33.33333333%;
}

.span3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.span2 {
  flex: 0 0 16.66666667%;
  max-width: 16.66666667%;
}

.span1 {
  flex: 0 0 8.33333333%;
  max-width: 8.33333333%;
}

/* Asegurar que las columnas dnd-column funcionen correctamente */
.dnd-column {
  box-sizing: border-box;
}

/* Cuando hay múltiples columnas en una fila, deben mostrarse lado a lado */
.row-fluid > .widget-span {
  box-sizing: border-box;
}

/* Responsive: Stack columns on mobile */
@media (max-width: 768px) {
  .span12,
  .span11,
  .span10,
  .span9,
  .span8,
  .span7,
  .span6,
  .span5,
  .span4,
  .span3,
  .span2,
  .span1 {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
  }
}

.content-wrapper,
.page-content {
  width: 100%;
}

.dnd-section .tvs-container,
.dnd-section .tvs-stack,
.dnd-section .tvs-grid {
  width: 100%;
}

/* Ensure containers inside columns are properly centered */
.dnd-column .tvs-container,
.widget-span .tvs-container {
  margin-inline: auto;
}

/* Asegurar que las secciones y filas ocupen el ancho completo */
.dnd-section,
.dnd-row {
  width: 100%;
}

.tvs-container {
  width: min(var(--container-max), 100%);
  margin-inline: auto;
  padding-inline: var(--container-padding-desktop);
}

.tvs-section {
  padding-block: var(--section-spacing-desktop);
}

.tvs-stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap-desktop);
}

.hs-form {
  font-family: 'Roboto', sans-serif;
  width: 100%;
  max-width: clamp(360px, 68vw, 860px);
  margin-inline: auto;
  padding: clamp(1.75rem, 1.5vw + 1.5rem, 2.5rem)
    clamp(1.5rem, 1.2vw + 1.25rem, 2.25rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  box-shadow: 0 32px 55px rgba(11, 24, 49, 0.18);
  border: 1px solid rgba(4, 74, 143, 0.08);
}

.hs-form .form-columns-2,
.hs-form .form-columns-3,
.hs-form .form-column {
  width: 100%;
  margin: 0 !important;
}

.hs-form .hs-form-field {
  width: 100%;
  margin-bottom: 1.25rem;
}

.hs-form label {
  display: block !important;
  margin-bottom: 0.35rem !important;
  font-weight: 600 !important;
  color: var(--text-default, #272833) !important;
  text-align: left !important;
  font-size: 0.95rem;
}

.hs-form input,
.hs-form select,
.hs-form textarea {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.75rem 1rem !important;
  border-radius: 6px !important;
  border: 1px solid rgba(4, 74, 143, 0.25) !important;
  font-size: 1rem !important;
  line-height: 1.4 !important;
  background: #fff !important;
  font-family: inherit !important;
  color: var(--text-default, #272833) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hs-form input:focus,
.hs-form select:focus,
.hs-form textarea:focus {
  border-color: var(--brand-blue, #004a8f) !important;
  box-shadow: 0 0 0 2px rgba(0, 74, 143, 0.15) !important;
  outline: none !important;
}

.hs-form textarea {
  min-height: 140px !important;
  resize: vertical;
}

.hs-form .hs-form-field input[type='checkbox'],
.hs-form .hs-form-field input[type='radio'] {
  width: auto !important;
  height: auto !important;
  margin-right: 0.5rem !important;
}

.hs-form .hs-form-field .input {
  width: 100%;
}

.hs-form .hs-form-field .hs-input {
  margin: 0 !important;
}

.hs-form .hs-error-msg {
  color: var(--brand-red, #e70033) !important;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

@media screen and (min-width: 768px) {
  .hs-form.hs-form-two-column .hs-form-field {
    width: calc(50% - 1rem);
    display: inline-block;
    margin-right: 2rem;
    vertical-align: top;
  }

  .hs-form.hs-form-two-column .hs-form-field:nth-of-type(2n) {
    margin-right: 0;
  }

  .hs-form.hs-form-two-column .hs-form-field-full {
    width: 100% !important;
    margin-right: 0;
  }
}

.hs-form .legal-consent-container {
  background: #fff;
  border-left: 4px solid var(--brand-blue, #004a8f);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-default, #272833) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-radius: 6px;
}

.hs-form .legal-consent-container p {
  margin-bottom: 0.75rem;
}

.hs-form input[type='submit'],
.hs-form .hs-button {
  background-color: var(--brand-blue, #004a8f) !important;
  color: var(--brand-white, #ffffff) !important;
  padding: 0.9rem 2.2rem !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hs-form input[type='submit']:hover,
.hs-form .hs-button:hover {
  background-color: #00386a !important;
  box-shadow: 0 12px 24px rgba(0, 74, 143, 0.25);
  transform: translateY(-1px);
}

.hs-form input[type='submit']:focus,
.hs-form .hs-button:focus {
  outline: 3px solid rgba(231, 0, 51, 0.35);
  outline-offset: 2px;
}

.hs-form input[type='submit']:active,
.hs-form .hs-button:active {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(0, 74, 143, 0.2);
}

.hs-form .actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.hs-form .submitted-message {
  padding: 1.5rem;
  border-radius: 8px;
  background: rgba(0, 74, 143, 0.08);
  color: var(--text-default, #272833);
  font-size: 1rem;
}

.tvs-grid {
  display: grid;
  gap: 2rem;
}

.tvs-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tvs-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tvs-text-center {
  text-align: center;
}

.tvs-hide-desktop {
  display: none !important;
}

.tvs-show-mobile {
  display: none !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--brand-blue);
}

h1 {
  font-size: clamp(2rem, 2vw + 1.5rem, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.75rem, 1.8vw + 1.2rem, 2.4rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.5rem, 1.5vw + 1rem, 2rem);
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

p,
li {
  font-size: clamp(0.95rem, 1vw + 0.75rem, 1.1rem);
}

@media (max-width: 1280px) {
  :root {
    --container-max: 1080px;
  }
}

@media (max-width: 1024px) {
  :root {
    --container-padding-desktop: var(--container-padding-tablet);
    --section-spacing-desktop: var(--section-spacing-tablet);
    --stack-gap-desktop: var(--stack-gap-tablet);
  }

  .tvs-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tvs-hide-desktop {
    display: initial !important;
  }

  .tvs-hide-tablet {
    display: none !important;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding-desktop: var(--container-padding-mobile);
    --section-spacing-desktop: var(--section-spacing-mobile);
    --stack-gap-desktop: var(--stack-gap-mobile);
  }

  .tvs-container {
    padding-inline: var(--container-padding-mobile);
  }

  .tvs-grid {
    gap: 1.5rem;
  }

  .tvs-grid--2,
  .tvs-grid--3 {
    grid-template-columns: 1fr;
  }

  .tvs-stack {
    gap: var(--stack-gap-mobile);
  }

  .tvs-hide-mobile {
    display: none !important;
  }

  .tvs-show-mobile {
    display: block !important;
  }
}
