/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ==========================================================================
   Coworking Terrassa · CSS mínimo
   Todo lo que se puede configurar desde Elementor está en Elementor.
   Aquí solo queda lo que el panel no permite hacer.
   Puntos de corte: Portátil ≤1439 · iPad horizontal ≤1279 · iPad ≤1024 · Móvil horizontal ≤767 · Móvil ≤575
   ========================================================================== */

/* 1. Desplazamiento suave a las secciones, dejando hueco para la cabecera fija */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.elementor [id] { scroll-margin-top: 96px; }
@media (max-width: 1024px) { .elementor [id] { scroll-margin-top: 80px; } }

/* 2. Sin margen extra debajo del último párrafo de los textos */
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* 3. Margen lateral fluido en pantallas grandes (108 px a 1440 px, contenido hasta 1600 px).
      Elementor solo admite valores fijos por punto de corte. */
:root { --ct-gutter: clamp(48px, 7.5vw, 160px); --ct-max: 1600px; }
@media (min-width: 1025px) {
  [data-elementor-type="header"] > .e-con,
  [data-elementor-type="footer"] > .e-con,
  [data-elementor-type="wp-page"] > .e-con.e-con-boxed {
    --content-width: var(--ct-max) !important;
    --padding-left: var(--ct-gutter) !important;
    --padding-right: var(--ct-gutter) !important;
  }
}

/* 4. Partes de un título con otro peso o color (Elementor aplica un solo estilo a todo el título) */
.ct-light { font-weight: 300; }
.ct-dot { color: var(--e-global-color-cmost70); }
.ct-accent { color: var(--e-global-color-accent); }

/* 5. Hero: corte diagonal con filo Mostaza e imagen a sangre a la derecha */
.ct-hero__media { clip-path: polygon(32% 0, 100% 0, 100% 100%, 0 100%); }
.ct-hero__media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--e-global-color-accent);
  clip-path: polygon(32% 0, calc(32% + 12px) 0, 12px 100%, 0 100%);
}
@media (min-width: 1025px) {
  .ct-hero { position: relative; }
  .ct-hero__text {
    --width: 100% !important; width: 100%; position: relative; z-index: 2;
    --padding-left: max(var(--ct-gutter), calc((100% - var(--ct-max)) / 2)) !important;
    --padding-right: 0px !important;
  }
  .ct-hero__text > .elementor-widget,
  .ct-hero__text > .e-con { max-width: clamp(480px, 39vw, 640px) !important; }
  .ct-hero__media { position: absolute !important; top: 0 !important; bottom: 0 !important; right: 0 !important; left: auto !important; --width: 57% !important; width: 57%; z-index: 1; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  .ct-hero__media { --width: 50% !important; width: 50%; }
  .ct-hero__text > .elementor-widget,
  .ct-hero__text > .e-con { max-width: 42vw !important; }
}
@media (max-width: 1024px) {
  .ct-hero__media { clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%); }
  .ct-hero__media::after { clip-path: polygon(0 10%, 100% 0, 100% 10px, 0 calc(10% + 10px)); }
}

/* 6. Tablas de precio: estructura del Figma (alineadas a la izquierda y precio debajo del título),
      misma altura y botón abajo. Colores, tipografías y rellenos: en los controles de cada tabla. */
.ct-plan, .ct-plan > .elementor-widget-container { height: 100%; }
.ct-plan .elementor-price-table { height: 100%; display: flex; flex-direction: column; text-align: left; }
.ct-plan .elementor-price-table__header { display: contents; }
.ct-plan .elementor-price-table__heading { order: 0; margin: 0; padding: 40px 32px 0; }
.ct-plan .elementor-price-table__price { order: 1; justify-content: flex-start; margin: 0 32px; padding: 16px 0 24px !important; border-bottom: 1px solid var(--e-global-color-ccarb60); }
.ct-plan--destacado .elementor-price-table__price { border-bottom-color: var(--e-global-color-primary); }
.ct-plan .elementor-price-table__period { text-align: left; }
.ct-plan .elementor-price-table__currency { margin-left: .15em; }
.ct-plan .elementor-price-table__subheading { order: 2; display: block; padding: 24px 32px 16px; }
.ct-plan .elementor-price-table__features-list { order: 3; }
.ct-plan .elementor-price-table__feature-inner svg,
.ct-plan .elementor-price-table__feature-inner i { width: 6px; height: 6px; font-size: 6px; }
.ct-plan .elementor-price-table__footer { order: 4; margin-top: auto; text-align: left; }
.ct-plan .elementor-price-table__button { display: block; width: 100%; text-align: center; }

/* 7. Acordeón de preguntas: línea solo debajo de cada pregunta e icono «+ / −» de Montserrat Light 24 px
      en una caja de 32 × 32 (Elementor no tiene control de tamaño para este icono) */
.ct-faq .elementor-accordion .elementor-accordion-item { border-bottom: 1px solid var(--e-global-color-carenao) !important; }
.ct-faq .elementor-accordion .elementor-tab-title .elementor-accordion-icon { width: 32px !important; height: 32px; display: flex; align-items: center; justify-content: center; }
.ct-faq .elementor-accordion .elementor-tab-title .elementor-accordion-icon > span { line-height: 1; }
.ct-faq .elementor-accordion-icon svg,
.ct-faq .elementor-accordion-icon i { display: none !important; }
.ct-faq .elementor-accordion-icon-closed::before,
.ct-faq .elementor-accordion-icon-opened::before {
  font-family: var(--e-global-typography-cth4-font-family), Sans-serif; font-weight: 300; font-size: 24px; line-height: 1;
}
.ct-faq .elementor-accordion-icon-closed::before { content: "+"; }
.ct-faq .elementor-accordion-icon-opened::before { content: "−"; }

/* 8. Flechas del carrusel como en Figma: glifo ← → de Montserrat SemiBold 24 px en círculos de 56 px,
      la siguiente rellena de Mostaza. Posición, borde y radio: en los controles del carrusel. */
.ct-carrusel .elementor-swiper-button { box-sizing: border-box; width: 56px; height: 56px; padding: 0 !important; display: flex; align-items: center; justify-content: center; }
.ct-carrusel .elementor-swiper-button svg,
.ct-carrusel .elementor-swiper-button i { display: none !important; }
.ct-carrusel .elementor-swiper-button::before {
  font-family: var(--e-global-typography-cth4-font-family), Sans-serif; font-weight: 600; font-size: 24px; line-height: 1;
  color: var(--e-global-color-primary);
}
.ct-carrusel .elementor-swiper-button-prev::before { content: "←"; }
.ct-carrusel .elementor-swiper-button-next::before { content: "→"; }
.ct-carrusel .elementor-swiper-button-next { background-color: var(--e-global-color-accent) !important; border-color: var(--e-global-color-accent) !important; }
.ct-carrusel .elementor-swiper-button-next:hover { background-color: var(--e-global-color-cmost70) !important; border-color: var(--e-global-color-cmost70) !important; }
/* Barra de progreso debajo de las fotos (Elementor la coloca arriba y no tiene control de posición) */
.ct-carrusel .swiper-pagination-progressbar {
  position: relative !important; top: auto !important; bottom: auto !important; width: 100% !important;
  margin-top: 48px; background: var(--e-global-color-carenao);
}
@media (max-width: 767px) { .ct-carrusel .swiper-pagination-progressbar { margin-top: 32px; } }

/* ==========================================================================
   Formulario de contacto (Contact Form 7) · «Formulario moderno» del Figma
   Campos sin caja con línea inferior, foco Mostaza y botón Mostaza a todo el ancho.
   CF7 no tiene controles de estilo en Elementor, por eso va aquí.
   ========================================================================== */
.wpcf7 form { display: flex; flex-direction: column; gap: 8px; }
.wpcf7 form > p { margin: 0; }
.wpcf7 .wpcf7-form-control-wrap { display: block; }
/* Las columnas del formulario (.form-row / .column-half) van flotadas: se cierran los flotados
   para que la casilla de privacidad quede debajo de los campos y no tape los clics */
.wpcf7 .form-row::after,
.wpcf7 .clearfix::after { content: ""; display: table; clear: both; }
.wpcf7 .wpcf7-form-control-wrap[data-name^="acceptance"] { clear: both; }
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%; box-sizing: border-box; margin: 0;
  padding: 16px 0 12px; border: 0; border-bottom: 1px solid var(--e-global-color-ccarb60); border-radius: 0;
  background: transparent; box-shadow: none; outline: none;
  font-family: var(--e-global-typography-ctcuer-font-family), Sans-serif; font-size: var(--e-global-typography-ctcuer-font-size);
  font-weight: 400; line-height: 1.5; color: var(--e-global-color-primary);
  transition: border-color .2s;
}
.wpcf7 textarea { min-height: 120px; resize: vertical; }
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder { color: var(--e-global-color-ccarb60); opacity: 1; }
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus { border-bottom: 2px solid var(--e-global-color-accent); padding-bottom: 11px; }
.wpcf7 select {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231F1F1F' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center;
}
/* Casilla de privacidad */
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { margin: 12px 0 0; }
.wpcf7 .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  font-family: var(--e-global-typography-ctcues-font-family), Sans-serif; font-size: var(--e-global-typography-ctcues-font-size); line-height: 1.5; color: var(--e-global-color-ccarb80); }
.wpcf7 .wpcf7-acceptance input[type="checkbox"] { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--e-global-color-primary); cursor: pointer; }
.wpcf7 .wpcf7-acceptance a { color: var(--e-global-color-primary) !important; text-decoration: underline; text-decoration-color: var(--e-global-color-accent); text-underline-offset: 3px; }
/* Botón de envío */
.wpcf7 input[type="submit"] {
  width: 100%; margin-top: 16px; padding: 18px 24px; border: 0; border-radius: 6px; cursor: pointer;
  background: var(--e-global-color-accent); color: var(--e-global-color-primary);
  font-family: var(--e-global-typography-ctboto-font-family), Sans-serif; font-size: var(--e-global-typography-ctboto-font-size);
  font-weight: 600; line-height: 1; transition: background .2s;
}
.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus-visible { background: var(--e-global-color-cmost70); }
.wpcf7 input[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }
.wpcf7 .wpcf7-spinner { display: block; margin: 12px auto 0; }
/* Mensajes */
.wpcf7 .wpcf7-not-valid { border-bottom-color: #B3261E; }
.wpcf7 .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; line-height: 1.4; color: #B3261E; }
.wpcf7 form .wpcf7-response-output {
  margin: 16px 0 0; padding: 14px 16px; border: 0; border-left: 4px solid var(--e-global-color-primary); border-radius: 6px;
  background: var(--e-global-color-ccrema); font-size: var(--e-global-typography-ctcues-font-size); line-height: 1.5; color: var(--e-global-color-primary);
}
.wpcf7 form.sent .wpcf7-response-output { border-left-color: var(--e-global-color-accent); }
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output { border-left-color: #B3261E; }

/* ==========================================================================
   Páginas legales (Aviso legal, Política de privacidad, Política de cookies)
   Texto en una caja de lectura de 800 px, centrada; cabecera alineada con el texto
   ========================================================================== */
[data-elementor-type="wp-page"] > .e-con.ct-legal-head,
[data-elementor-type="wp-page"] > .e-con.ct-legal-body { --content-width: 800px !important; }
.ct-legal-head .elementor-widget-heading .elementor-heading-title { max-width: 900px; }

/* Texto legal */
.ct-legal-content { width: 100%; }
.ct-legal-content h2 {
  margin: 56px 0 16px; padding-top: 32px; border-top: 1px solid var(--e-global-color-carenao); scroll-margin-top: 120px;
  font-family: var(--e-global-typography-cth4-font-family), Sans-serif; font-size: var(--e-global-typography-cth4-font-size);
  font-weight: 600; line-height: 1.3; letter-spacing: -0.005em; color: var(--e-global-color-primary);
}
.ct-legal-content h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.ct-legal-content h3 {
  margin: 32px 0 8px; font-family: var(--e-global-typography-ctcuer-font-family), Sans-serif;
  font-size: var(--e-global-typography-ctcuer-font-size); font-weight: 600; line-height: 1.4; color: var(--e-global-color-primary);
}
.ct-legal-content h4 {
  margin: 24px 0 6px; font-family: var(--e-global-typography-ctcues-font-family), Sans-serif;
  font-size: var(--e-global-typography-ctcues-font-size); font-weight: 600; line-height: 1.4; color: var(--e-global-color-primary);
}
.ct-legal-content p { margin: 0 0 16px; }
.ct-legal-content strong { font-weight: 600; color: var(--e-global-color-primary); }
.ct-legal-content ul { list-style: none; margin: 0 0 20px; padding: 0; }
.ct-legal-content ul li { position: relative; margin: 0 0 8px; padding-left: 18px; }
.ct-legal-content ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--e-global-color-primary); }
.ct-legal-content a {
  color: var(--e-global-color-primary); text-decoration: underline; text-decoration-color: var(--e-global-color-accent);
  text-decoration-thickness: 2px; text-underline-offset: 3px; word-break: break-word; transition: text-decoration-color .2s;
}
.ct-legal-content a:hover { text-decoration-color: var(--e-global-color-primary); }
@media (max-width: 767px) {
  .ct-legal-content h2 { margin-top: 40px; padding-top: 24px; }
}
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/*form*/
#responsive-form {
	/* max-width:600px; -- cambiar esto para conseguir el ancho de la forma deseada -- */
	margin: 0 auto;
	width: 100%;
	color: #fffbeb;
	font-family: 'Montserrat', sans-serif;
}

.form-row {
	width: 100%;
}

.wpcf7-textarea {
	overflow: auto;
	resize: vertical;
	height: 110px;
}

.column-half, .column-full {
	float: left;
	position: relative;
	padding: 0.45rem;
	width: 100%;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

.clearfix:after {
	content: "";
	display: table;
	clear: both;
}

#responsive-form p {
	font-size: 16px;
	font-weight: 400;
	font-family: 'Montserrat', sans-serif;
	color: #1F1F1F;
}

#responsive-form input, 
#responsive-form textarea, 
#responsive-form select {
	font-family: 'Montserrat', sans-serif !important;
	border: 0px;
	border-bottom: 2px solid #1F1F1F !important;
	border-radius: 0px;
	padding: .5rem 1rem;
	transition: all .3s;
	background: transparent;
	margin-top: 4px;
}

#responsive-form input::placeholder, 
#responsive-form textarea::placeholder {
	font-family: 'Montserrat', sans-serif !important;
}

#responsive-form select {
	padding: 0.6rem 1rem !important;
}
#responsive-form input:focus, 
#responsive-form textarea:focus, 
#responsive-form select:focus {
    border-bottom: 2px solid #E9B92F !important;
    outline: none !important;
    box-shadow: none !important;
}
.wpcf7-acceptance {
	font-size: 12px;
}

#responsive-form .wpcf7-submit {
	width: 100%;
	background: #E9B92F;
	color: #1F1F1F;
	font-weight: 600;
	font-size: 18px;
	border: 0px !important;
	padding: 17px;
    border-radius: 8px;
}
 
/**---------------- Media query ----------------**/
@media only screen and (min-width: 48em) { 
	.column-half {
		width: 50%;
	}
}