/*
Theme Name: SHAPYPRO Child
Theme URI: https://elementor.com/hello-theme/
Description: Tema hijo oficial de SHAPYPRO basado en Hello Elementor
Author: Zaira Bravo
Author URI: https://www.zairabravo.es/
Template: hello-elementor
Version: 1.0.0
Text Domain: shapypro-child
*/

/* ==================================================
   VARIABLES
================================================== */
:root {
    /* Colores corporativos */
    --shapy-color-primary: #006072;
    --shapy-color-primary-dark: #004f5d;
    --shapy-color-accent: #60d1e0;
    --shapy-color-accent-hover: #3fb7c7;

    /* Colores de texto */
    --shapy-color-text: #454545;
    --shapy-color-text-strong: #333333;
    --shapy-color-text-muted: #666666;
    --shapy-color-placeholder: #747474;
    --shapy-color-language: #77808e;
    --shapy-color-language-active: #007b8c;
    --shapy-color-separator: #aeb5bc;

    /* Colores de estado */
    --shapy-color-error: #8a1f1f;
    --shapy-color-error-background: #fff2f2;
    --shapy-color-error-border: #f2caca;

    /* Colores neutros */
    --shapy-color-white: #ffffff;

    /* Valores RGB para transparencias */
    --shapy-color-primary-rgb: 0, 96, 114;
    --shapy-color-accent-rgb: 96, 209, 224;
    --shapy-color-white-rgb: 255, 255, 255;
}

/* ==================================================
   GENERALES
================================================== */
body.home {
    overflow-x: clip;
}

/* Firefox */
html {
    scrollbar-width: thin;
    scrollbar-color: var(--shapy-color-accent) transparent;
}

/* Chrome, Edge y Safari */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--shapy-color-accent);
    background-clip: padding-box;
    border: 2px solid transparent;
    border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--shapy-color-accent-hover);
}

.broken_link, a.broken_link {
    text-decoration: none !important;
}

/* ==================================================
   MENÚ Y MEGA MENÚ
================================================== */
.header-menu {
    background: rgba(var(--shapy-color-white-rgb), 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--shapy-color-white-rgb), 0.2);
}

/* Glass del megamenú */
.wpr-sub-mega-menu {
    background: rgba(var(--shapy-color-white-rgb), 0.94) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(var(--shapy-color-white-rgb), 0.2);
    border-radius: 0 0 12px 12px;
}

/* Fondos interiores transparentes */
.wpr-sub-mega-menu > .elementor,
.wpr-sub-mega-menu > .elementor > .glass-megamenu {
    background: transparent !important;
    background-image: none !important;
}

/* Selector de idiomas */
.shapypro-languages {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

.shapypro-languages a {
    color: var(--shapy-color-language);
    text-decoration: none;
    transition: color 0.2s ease;
}

.shapypro-languages a:hover,
.shapypro-languages a:focus-visible,
.shapypro-languages a.is-current {
    color: var(--shapy-color-language-active);
    font-weight: bold;
}

.shapypro-languages .language-separator {
    color: var(--shapy-color-separator);
    font-size: 12px;
}

/* Enlace activo del mega menú personalizado */
.mega-menu-links
.elementor-icon-list-item.mega-menu-current
.elementor-icon-list-text {
    color: var(--shapy-color-accent) !important;
    font-weight: 600;
}

.mega-menu-links
.elementor-icon-list-item.mega-menu-current
.elementor-icon-list-icon i {
    color: var(--shapy-color-accent) !important;
}

.mega-menu-links
.elementor-icon-list-item.mega-menu-current
.elementor-icon-list-icon svg {
    fill: var(--shapy-color-accent) !important;
}

/* ==================================================
   BUSCADOR HEADER SAHPYPRO
================================================== */

.sahpypro-search-wrapper {
    display: flex;
    align-items: center;
}


/* -----------------------------------
   BOTÓN LUPA
----------------------------------- */

.sahpypro-search-toggle,
.sahpypro-search-toggle:hover,
.sahpypro-search-toggle:focus,
.sahpypro-search-toggle:active {
    width: 36px !important;
    height: 36px !important;

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

    padding: 0 !important;
    margin: 0 !important;

    min-width: 0 !important;
    min-height: 0 !important;

    border: none !important;
    border-radius: 0 !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    box-shadow: none !important;

    cursor: pointer;
}


/* SVG lupa */

.sahpypro-search-toggle svg {
    display: block;

    width: 22px;
    height: 22px;

    fill: none !important;

    stroke: #263b40 !important;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        stroke 0.2s ease,
        transform 0.2s ease;
}


.sahpypro-search-toggle:hover svg {
    stroke: #006072 !important;
    transform: scale(1.08);
}


/* -----------------------------------
   PANEL DESPLEGABLE
----------------------------------- */

.sahpypro-search-panel {
    position: fixed;

    /*
     * Mismo margen aproximadamente
     * que el menú superior
     */
    left: 4.7%;
    width: 90.6%;

    /*
     * Ajustaremos esto si hiciera falta
     */
    top: 100px;

    padding: 0 30px;

    background: rgba(248, 251, 253, 0.97);

    border-radius: 28px;

    box-shadow:
        0 15px 35px rgba(28, 62, 74, 0.08);

    max-height: 0;

    opacity: 0;
    visibility: hidden;

    overflow: hidden;

    transform: translateY(-8px);

    transition:
        max-height 0.35s ease,
        opacity 0.25s ease,
        transform 0.3s ease,
        padding 0.35s ease,
        visibility 0.25s ease;

    z-index: 9998;
}


/* PANEL ABIERTO */

.sahpypro-search-wrapper.is-open .sahpypro-search-panel {
    max-height: 120px;

    padding-top: 18px;
    padding-bottom: 18px;

    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}


/* -----------------------------------
   FORMULARIO
----------------------------------- */

.sahpypro-search-form {
    width: 100%;

    margin: 0;

    display: flex;
    align-items: center;

    gap: 12px;
}


/* INPUT */

.sahpypro-search-field {
    flex: 1;

    width: 100%;

    height: 48px;
    min-height: 48px;

    padding: 0 18px !important;

    border: 1px solid rgba(0, 96, 114, 0.18) !important;

    border-radius: 12px !important;

    background: #ffffff !important;

    color: #263b40 !important;

    font: inherit !important;

    outline: none !important;

    box-shadow: none !important;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.sahpypro-search-field:focus {
    border-color: #60d1e0 !important;

    box-shadow:
        0 0 0 3px rgba(96, 209, 224, 0.13) !important;
}


.sahpypro-search-field::placeholder {
    color: #829095;
}


/* -----------------------------------
   BOTÓN SEARCH
----------------------------------- */

.sahpypro-search-submit,
.sahpypro-search-submit:hover,
.sahpypro-search-submit:focus {
    height: 48px !important;

    min-height: 48px !important;
    min-width: 115px !important;

    padding: 0 24px !important;

    border: none !important;
    border-radius: 14px !important;

    background: #006072 !important;

    color: #ffffff !important;

    font: inherit !important;
    font-weight: 400 !important;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}


.sahpypro-search-submit:hover {
    background: #004f5e !important;
}


/* ==================================================
   RESULTADOS DE BÚSQUEDA SAHPYPRO
   Estilo similar al grid de Royal Addons
================================================== */

.sahpypro-search-results-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}


/* CARD
----------------------------------- */

.sahpypro-search-card {
    display: flex;
    flex-direction: column;

    min-width: 0;
    height: 100%;

    padding: 20px;

    background: #ffffff;

    border: 1px solid rgba(96, 209, 224, 0.45);
    border-radius: 18px;

    overflow: hidden;
}


/* IMAGEN
----------------------------------- */

.sahpypro-search-card-image {
    display: block;

    width: 100%;

    margin-bottom: 14px;

    border-radius: 14px;
    overflow: hidden;
}


.sahpypro-search-card-image img {
    display: block;

    width: 100%;
    height: 165px;

    object-fit: cover;

    border-radius: 14px;

    transition: transform 0.3s ease;
}


.sahpypro-search-card:hover
.sahpypro-search-card-image img {
    transform: scale(1.025);
}


/* CONTENIDO
----------------------------------- */

.sahpypro-search-card-content {
    display: flex;
    flex-direction: column;

    flex: 1;
}


/* TÍTULO
----------------------------------- */

.sahpypro-search-card-title {
    margin: 0 0 5px !important;

    font-size: 22px !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;

    letter-spacing: 0 !important;
}


.sahpypro-search-card-title a {
    color: #006072 !important;

    text-decoration: none !important;
}


.sahpypro-search-card-title a:hover {
    color: #60d1e0 !important;
}


/* FECHA
----------------------------------- */

.sahpypro-search-card-date {
    margin-bottom: 13px;

    font-size: 10px !important;
    line-height: 1.2;

    color: #006072;
}


/* EXTRACTO
----------------------------------- */

.sahpypro-search-card-excerpt {
    margin-bottom: 17px;

    font-size: 16px !important;
    line-height: 1.45 !important;

    color: #666666;
}


.sahpypro-search-card-excerpt p {
    margin: 0;
}


/* READ MORE
----------------------------------- */

.sahpypro-search-card-more {
    display: inline-flex;
    align-items: center;

    gap: 5px;

    width: fit-content;

    margin-top: auto;

    color: #006072 !important;

    font-size: 14px !important;
    line-height: 1;

    text-decoration: none !important;
}


.sahpypro-search-card-more span {
    display: inline-block;

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

    transition: transform 0.2s ease;
}


.sahpypro-search-card-more:hover span {
    transform: translateX(3px);
}


/* SIN RESULTADOS
----------------------------------- */

.sahpypro-no-results {
    width: 100%;

    padding: 35px;

    background: #ffffff;

    border: 1px solid rgba(96, 209, 224, 0.4);
    border-radius: 18px;

    text-align: center;
}

/* ==================================================
   NEWS CARDS
================================================== */
.news-cards article.wpr-grid-item.elementor-clearfix {
    padding: 32px !important;
}

.news-cards .wpr-grid-media-wrap img {
    height: 180px !important;
    object-fit: cover !important;
}

/* ==================================================
   POSTS
================================================== */
.imagen-news img {
    height: 600px;
    object-fit: cover;
    object-position: center center;
}

.texto-post h2,
.texto-post h3,
.texto-post h4 {
    color: var(--e-global-color-primary);
    margin-top: 40px;
}

.texto-post tbody td strong {
    color: var(--e-global-color-primary);
}

/* Tablas dentro del contenido de los posts */
.texto-post table {
    width: 100%;
    margin: 25px 0 35px !important;
    overflow: hidden !important;
    border: 0 solid rgba(var(--shapy-color-primary-rgb), 0.18) !important;
    border-collapse: collapse !important;
    border-radius: 8px !important;
}

/* Celdas */
.texto-post table th,
.texto-post table td {
    padding: 15px 12px;
    border: 1px solid rgba(var(--shapy-color-primary-rgb), 0.16) !important;
    text-align: left;
    vertical-align: top;
}

/* Cabecera */
.texto-post table th {
    color: var(--shapy-color-primary) !important;
    background-color: rgba(var(--shapy-color-primary-rgb), 0.1) !important;
    font-weight: 700;
}

/* Fondo base */
.texto-post table tbody td {
    color: var(--shapy-color-text);
    background-color: var(--shapy-color-white) !important;
}

/* Filas alternas */
.texto-post table tbody tr:nth-child(even) td {
    background-color: rgba(var(--shapy-color-accent-rgb), 0.07) !important;
}

/* Efecto al pasar el ratón */
.texto-post table tbody tr:hover td {
    background-color: rgba(var(--shapy-color-accent-rgb), 0.14) !important;
}

/* ==================================================
   PRODUCTO
================================================== */
.hero-product h1 {
    color: var(--e-global-color-primary);
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
    font-size: var(--e-global-typography-primary-font-size);
    font-weight: var(--e-global-typography-primary-font-weight);
    line-height: var(--e-global-typography-primary-line-height);
}

.product-shapy button.single_add_to_cart_button {
    width: 100% !important;
}

.product-shapy .wpr-simple-qty-wrap {
    width: 100%;
}

/* ==================================================
   FORMULARIO NEWSLETTER SHAPYPRO
================================================== */
.shapy-newsletter .shapy-newsletter__select-label {
    position: static;
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 7px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    color: var(--shapy-color-text-muted);
    font-size: 16px;
    line-height: 1.3;
}

.shapy-newsletter {
    width: 100%;
    padding: 48px;
    background: rgba(var(--shapy-color-accent-rgb), 0.12);
    border: 1px solid rgba(var(--shapy-color-accent-rgb), 0.28);
    border-radius: 28px;
}

.shapy-newsletter__header {
    max-width: 820px;
    margin-bottom: 30px;
}

.shapy-newsletter h2,
.shapy-newsletter h3 {
    margin: 0 0 10px;
    color: var(--shapy-color-primary);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.1;
}

.shapy-newsletter__intro {
    margin: 0;
    color: var(--shapy-color-text);
    font-size: 17px;
    line-height: 1.6;
}

.shapy-newsletter__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.shapy-newsletter .mc-field-group {
    position: relative;
    margin: 0;
}

.shapy-newsletter label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shapy-newsletter input,
.shapy-newsletter select {
    width: 100%;
    min-height: 56px;
    margin: 0;
    padding: 14px 18px;
    color: var(--shapy-color-text-strong);
    background-color: rgba(var(--shapy-color-white-rgb), 0.92);
    border: 1px solid rgba(var(--shapy-color-primary-rgb), 0.18);
    border-radius: 12px;
    box-shadow: none;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.3;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.shapy-newsletter input::placeholder {
    color: var(--shapy-color-placeholder);
    opacity: 1;
}

.shapy-newsletter input:hover,
.shapy-newsletter select:hover {
    border-color: rgba(var(--shapy-color-primary-rgb), 0.4);
}

.shapy-newsletter input:focus,
.shapy-newsletter select:focus {
    outline: none;
    background-color: var(--shapy-color-white);
    border-color: var(--shapy-color-accent);
    box-shadow: 0 0 0 4px rgba(var(--shapy-color-accent-rgb), 0.18);
}

.shapy-newsletter select {
    padding-right: 48px;
    appearance: none;
    -webkit-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--shapy-color-primary) 50%),
        linear-gradient(135deg, var(--shapy-color-primary) 50%, transparent 50%);
    background-position:
        calc(100% - 21px) 50%,
        calc(100% - 15px) 50%;
    background-repeat: no-repeat;
    background-size: 6px 6px, 6px 6px;
    cursor: pointer;
}

.shapy-newsletter__service {
    grid-column: auto;
}

.shapy-newsletter__submit {
    grid-column: 1 / -1;
    margin-top: 6px;
}

.shapy-newsletter #mc-embedded-subscribe {
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 15px 24px;
    color: var(--shapy-color-white);
    background-color: var(--shapy-color-primary);
    border: 1px solid var(--shapy-color-primary);
    border-radius: 999px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.shapy-newsletter #mc-embedded-subscribe:hover {
    color: var(--shapy-color-primary-dark);
    background-color: var(--shapy-color-accent);
    border-color: var(--shapy-color-accent);
    box-shadow: 0 12px 28px rgba(var(--shapy-color-primary-rgb), 0.16);
    transform: translateY(-2px);
}

.shapy-newsletter #mc-embedded-subscribe:focus-visible {
    outline: 3px solid rgba(var(--shapy-color-accent-rgb), 0.5);
    outline-offset: 4px;
}

.shapy-newsletter #mce-responses {
    grid-column: 1 / -1;
}

.shapy-newsletter .response {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.5;
}

.shapy-newsletter #mce-error-response {
    color: var(--shapy-color-error);
    background-color: var(--shapy-color-error-background);
    border: 1px solid var(--shapy-color-error-border);
}

.shapy-newsletter #mce-success-response {
    color: var(--shapy-color-primary);
    background-color: rgba(var(--shapy-color-accent-rgb), 0.15);
    border: 1px solid rgba(var(--shapy-color-primary-rgb), 0.2);
}

.shapy-newsletter__honeypot {
    position: absolute;
    left: -5000px;
}


/* ==================================================
   FORMULARIO EBOOK - MAILCHIMP
================================================== */

.shapy-ebook-form {
    width: 100%;
}

.shapy-ebook-form,
.shapy-ebook-form input,
.shapy-ebook-form select,
.shapy-ebook-form button {
    font-family: inherit !important;
}

/* Estructura */
.shapy-ebook-form__grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 22px !important;
    width: 100%;
}

.shapy-ebook-form .mc-field-group {
    width: 100%;
    margin: 0 !important;
}

.shapy-ebook-form__full {
    grid-column: 1 / -1 !important;
}

/* Labels */
.shapy-ebook-form .mc-field-group > label {
    display: block;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: var(--shapy-color-text-strong);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.shapy-ebook-form .asterisk {
    color: var(--shapy-color-primary);
}

/* Inputs */
.shapy-ebook-form input[type="text"],
.shapy-ebook-form input[type="email"],
.shapy-ebook-form select {
    display: block;
    width: 100% !important;
    min-height: 48px;
    margin: 0 !important;
    padding: 12px 15px !important;
    color: var(--shapy-color-text-strong) !important;
    background: var(--shapy-color-white) !important;
    border: 1px solid rgba(var(--shapy-color-primary-rgb), 0.22) !important;
    border-radius: 7px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.4;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.shapy-ebook-form input::placeholder {
    color: var(--shapy-color-placeholder);
    opacity: 0.85;
}

.shapy-ebook-form input[type="text"]:hover,
.shapy-ebook-form input[type="email"]:hover,
.shapy-ebook-form select:hover {
    border-color: rgba(var(--shapy-color-primary-rgb), 0.45) !important;
}

.shapy-ebook-form input[type="text"]:focus,
.shapy-ebook-form input[type="email"]:focus,
.shapy-ebook-form select:focus {
    outline: none !important;
    border-color: var(--shapy-color-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--shapy-color-accent-rgb), 0.15) !important;
}

/* Consentimientos */
.shapy-ebook-form__consents {
    display: flex;
    flex-direction: column;
    gap: 11px;
    width: 100%;
    margin-top: 2px;
}

.shapy-ebook-form .shapy-ebook-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.shapy-ebook-form .shapy-ebook-consent input[type="checkbox"] {
    flex: 0 0 17px;
    width: 17px !important;
    height: 17px !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    accent-color: var(--shapy-color-primary);
    cursor: pointer;
}

.shapy-ebook-form .shapy-ebook-consent label {
    display: block;
    margin: 0 !important;
    color: var(--shapy-color-text-muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    cursor: pointer;
}

.shapy-ebook-form .shapy-ebook-consent a,
.shapy-ebook-form__legal a {
    color: var(--shapy-color-primary);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.shapy-ebook-form .shapy-ebook-consent a:hover,
.shapy-ebook-form__legal a:hover {
    color: var(--shapy-color-accent-hover);
}

/* Texto legal */
.shapy-ebook-form__legal {
    width: 100%;
    margin-top: -5px;
    color: var(--shapy-color-text-muted);
    font-size: 11px;
    line-height: 1.5;
}

.shapy-ebook-form__legal p {
    margin: 0 0 5px !important;
}

.shapy-ebook-form__legal p:last-child {
    margin-bottom: 0 !important;
}

/* Honeypot Mailchimp */
.shapy-ebook-form__honeypot {
    position: absolute !important;
    left: -9999px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.shapy-ebook-form__honeypot input {
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

/* Respuestas Mailchimp */
.shapy-ebook-form #mce-responses {
    width: 100%;
}

.shapy-ebook-form .response {
    width: 100%;
    margin: 0 !important;
    padding: 14px 16px !important;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.shapy-ebook-form #mce-error-response {
    color: var(--shapy-color-error);
    background: var(--shapy-color-error-background);
    border: 1px solid var(--shapy-color-error-border);
}

.shapy-ebook-form #mce-success-response {
    color: var(--shapy-color-primary);
    background: rgba(var(--shapy-color-accent-rgb), 0.14);
    border: 1px solid rgba(var(--shapy-color-accent-rgb), 0.45);
}

/* Botón */
.shapy-ebook-form__submit {
    width: 100%;
    margin: 2px 0 0 !important;
}

.shapy-ebook-form #mc-embedded-subscribe {
    display: block !important;
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 15px 24px !important;
    color: var(--shapy-color-white) !important;
    background: var(--shapy-color-primary) !important;
    border: 1px solid var(--shapy-color-primary) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.shapy-ebook-form #mc-embedded-subscribe:hover {
    color: var(--shapy-color-primary) !important;
    background: var(--shapy-color-accent) !important;
    border-color: var(--shapy-color-accent) !important;
    box-shadow: 0 10px 24px rgba(var(--shapy-color-primary-rgb), 0.14) !important;
    transform: translateY(-1px);
}

.shapy-ebook-form #mc-embedded-subscribe:focus-visible {
    outline: 3px solid rgba(var(--shapy-color-accent-rgb), 0.45);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .shapy-ebook-form__grid {
        gap: 18px !important;
    }
}

/* ==========================================================
   PROFICIENCY TESTING
========================================================== */

/* ----------------------------------------------------------
   Tabla: contenedor y estructura
---------------------------------------------------------- */
.pt-table-wrapper {
    width: 100%;
    margin: 30px 0;
    overflow-x: auto;
}

.pt-normas-table {
    width: 100% !important;
    min-width: 1250px;
    margin: 0 !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: fixed;
    background: #fff;
    font-size: 12px;
    line-height: 1.15;
}

/* ----------------------------------------------------------
   Cabecera
---------------------------------------------------------- */
.pt-normas-table thead th {
    padding: 10px 5px !important;
    border: 1px solid #fff !important;
    background: var(--shapy-color-primary) !important;
    color: var(--shapy-color-white) !important;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.05;
    text-align: center !important;
    vertical-align: middle !important;
}

.pt-normas-table thead th:first-child {
    width: 116px;
}

.pt-normas-table thead th:nth-child(2) {
    width: 44px;
}

/* ----------------------------------------------------------
   Celdas generales
---------------------------------------------------------- */
.pt-normas-table tbody td {
    padding: 7px 5px !important;
    border: 1px solid #e1e7e9 !important;
    background: #fff !important;
    color: #7a7a7a;
    text-align: center !important;
    vertical-align: middle !important;
}

/* Evitar zebra stripes de Elementor / Formidable */
.pt-normas-table tbody tr:nth-child(even) td,
.pt-normas-table tbody tr:nth-child(odd) td {
    background-color: #fff;
}

/* Celdas vacías */
.pt-normas-table tbody td:empty,
.pt-normas-table tbody tr:nth-child(even) td:empty,
.pt-normas-table tbody tr:nth-child(odd) td:empty {
    background-color: #f7f7f7 !important;
}

/* ----------------------------------------------------------
   Activity
---------------------------------------------------------- */
.pt-normas-table tbody td[rowspan],
.pt-normas-table tbody tr > td:first-child:has(img) {
    padding: 12px 7px !important;
    border: 1px solid #fff !important;
    background: var(--shapy-color-primary) !important;
    color: var(--shapy-color-white) !important;
    font-weight: 600;
    text-align: center !important;
    vertical-align: middle !important;
}

.pt-normas-table tbody td[rowspan] img,
.pt-normas-table tbody tr > td:first-child:has(img) img {
    display: block;
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto 10px !important;
    padding: 7px;
    object-fit: contain;
    background: #f3fbfc;
    border-radius: 18px;
}

.pt-normas-table tbody td[rowspan] strong,
.pt-normas-table tbody tr > td:first-child:has(img) strong {
    display: block;
    color: var(--shapy-color-white) !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
}

/* ----------------------------------------------------------
   Phase / Step
---------------------------------------------------------- */
.pt-normas-table tbody td[rowspan] + td,
.pt-normas-table tbody tr > td:first-child:not([rowspan]):not(:has(img)),
.pt-normas-table tbody tr > td:first-child:has(img) + td {
    border: 1px solid #fff !important;
    background: var(--shapy-color-primary) !important;
    color: var(--shapy-color-white) !important;
    font-weight: 600;
    text-align: center !important;
    vertical-align: middle !important;
}

/* ----------------------------------------------------------
   Normas EN
---------------------------------------------------------- */
.pt-norma {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 2px 1px;
    padding: 5px 6px;
    border: 1px solid transparent;
    background: transparent;
    color: #858585;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition:
        color 0.18s ease,
        border-color 0.18s ease,
        background-color 0.18s ease;
}

.pt-norma input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none;
}

.pt-norma:hover {
    background: var(--shapy-color-accent);
    color: var(--shapy-color-primary);
    border-radius: 12px;
}

.pt-norma.is-selected {
    background: var(--shapy-color-primary);
    color: var(--shapy-color-white);
    font-weight: 600;
    border-radius: 12px;
}

/* ----------------------------------------------------------
   Selected standards
---------------------------------------------------------- */
.pt-selected-box {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid rgba(var(--shapy-color-primary-rgb), 0.15);
    background: rgba(var(--shapy-color-accent-rgb), 0.05);
}

.pt-selected-box > strong {
    display: block;
    margin-bottom: 12px;
    color: var(--shapy-color-primary);
    font-size: 16px;
    font-weight: 600;
}

.pt-selected-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.pt-selected-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 6px;
    background: var(--shapy-color-primary);
    color: var(--shapy-color-white);
    font-size: 13px;
    font-weight: 600;
}

.pt-remove-standard {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: rgba(var(--shapy-color-white-rgb), 0.22) !important;
    color: var(--shapy-color-white) !important;
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
}

.pt-remove-standard:hover {
    background: rgba(var(--shapy-color-white-rgb), 0.4) !important;
}

.pt-no-selection {
    color: #777;
    font-size: 14px;
}

/* ----------------------------------------------------------
   Botón del formulario
---------------------------------------------------------- */
div#frm_field_150_container button.frm_button_submit {
    width: 100% !important;
    border: 1px solid var(--shapy-color-primary);
    border-radius: 24px !important;
    font-size: 16px !important;
    text-transform: uppercase !important;
}

div#frm_field_150_container button.frm_button_submit:hover {
    border-color: var(--shapy-color-accent-hover);
    background: var(--shapy-color-white) !important;
    color: var(--shapy-color-primary) !important;
}

/* ----------------------------------------------------------
   Error de selección
---------------------------------------------------------- */
.pt-selection-error {
    margin-top: 12px;
    padding: 10px 14px;
    border: 1px solid #c62828;
    border-radius: 6px;
    background: rgba(198, 40, 40, 0.06);
    color: #c62828;
    font-size: 14px;
    font-weight: 500;
}

/* ==========================================================
   TIMELINE SHAPYPRO
========================================================== */

.timeline-shapy {
    --timeline-progress: 0%;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 24px;
}

/* Línea base + progreso */
.timeline-shapy::before,
.timeline-shapy::after {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 3px;
    border-radius: 999px;
    transform: translateX(-50%);
}

.timeline-shapy::before {
    bottom: 10px;
    z-index: 0;
    background: rgba(var(--shapy-color-accent-rgb), 0.28);
}

.timeline-shapy::after {
    z-index: 1;
    height: var(--timeline-progress);
    max-height: calc(100% - 20px);
    background: var(--shapy-color-accent);
}

.timeline-item {
    position: relative;
    z-index: 2;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 150px;
}

.timeline-item > .elementor-widget-html {
    position: static !important;
}

.timeline-card {
    width: 100%;
    padding: 28px 30px;
    border: 1px solid rgba(var(--shapy-color-primary-rgb), 0.18);
    border-radius: 20px;
    background: var(--shapy-color-white);
}

.timeline-left .timeline-card {
    grid-column: 1;
}

.timeline-right .timeline-card {
    grid-column: 3;
    background: rgba(var(--shapy-color-accent-rgb), 0.12);
}

.timeline-card .elementor-heading-title {
    margin: 0;
    color: var(--shapy-color-primary);
    font-size: 20px;
    line-height: 1.2;
}

.timeline-card .elementor-widget-text-editor {
    color: var(--shapy-color-text);
    font-size: 14px;
    line-height: 1.5;
}

.timeline-item .timeline-number {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0;
    border-radius: 50%;
    background: var(--shapy-color-accent);
    color: var(--shapy-color-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    transform: translate(-50%, -50%);
    transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}

.timeline-item.is-reached .timeline-number {
    background: var(--shapy-color-primary);
    color: var(--shapy-color-white);
    box-shadow: 0 0 0 6px rgba(var(--shapy-color-accent-rgb), 0.18);
}

/* ==================================================
   FORMULARIOS SHAPYPRO - SISTEMA BASE
   --------------------------------------------------
   Uso recomendado en Elementor:
   - Formulario estándar: shapy-form
   - Encuesta: shapy-form shapy-form--survey

   Los formularios existentes de contacto y colaboración
   conservan sus reglas específicas más abajo para evitar
   cambios inesperados en páginas ya publicadas.
================================================== */

/* --------------------------------------------------
   Tipografía y contenedor
-------------------------------------------------- */

.shapy-form,
.shapy-form input,
.shapy-form textarea,
.shapy-form select,
.shapy-form button {
    font-family: inherit !important;
}

.shapy-form .frm_forms,
.shapy-form .frm_form_fields,
.shapy-form .frm_fields_container {
    width: 100%;
}

/* --------------------------------------------------
   Espaciado general de campos
-------------------------------------------------- */

.shapy-form .frm_form_field {
    margin: 0 0 22px !important;
}

.shapy-form .frm_form_field:last-child {
    margin-bottom: 0 !important;
}

/* --------------------------------------------------
   Labels y textos de ayuda
-------------------------------------------------- */

.shapy-form .frm_primary_label {
    display: block;
    margin: 0 0 8px !important;
    padding: 0 !important;
    color: var(--shapy-color-text-strong);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.shapy-form .frm_required {
    color: var(--shapy-color-primary) !important;
}

.shapy-form .frm_description {
    margin-top: 6px;
    color: var(--shapy-color-text-muted);
    font-size: 12px;
    line-height: 1.45;
}

/* --------------------------------------------------
   Inputs, selects y textareas
-------------------------------------------------- */

.shapy-form input[type="text"],
.shapy-form input[type="email"],
.shapy-form input[type="tel"],
.shapy-form input[type="url"],
.shapy-form input[type="number"],
.shapy-form input[type="password"],
.shapy-form input[type="date"],
.shapy-form select,
.shapy-form textarea {
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    color: var(--shapy-color-text-strong) !important;
    background: var(--shapy-color-white) !important;
    border: 1px solid rgba(var(--shapy-color-primary-rgb), 0.22) !important;
    border-radius: 9px !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.4;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.shapy-form input[type="text"],
.shapy-form input[type="email"],
.shapy-form input[type="tel"],
.shapy-form input[type="url"],
.shapy-form input[type="number"],
.shapy-form input[type="password"],
.shapy-form input[type="date"],
.shapy-form select {
    min-height: 48px;
}

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

.shapy-form input::placeholder,
.shapy-form textarea::placeholder {
    color: var(--shapy-color-placeholder);
    opacity: 0.82;
}

.shapy-form input[type="text"]:hover,
.shapy-form input[type="email"]:hover,
.shapy-form input[type="tel"]:hover,
.shapy-form input[type="url"]:hover,
.shapy-form input[type="number"]:hover,
.shapy-form input[type="password"]:hover,
.shapy-form input[type="date"]:hover,
.shapy-form select:hover,
.shapy-form textarea:hover {
    border-color: rgba(var(--shapy-color-primary-rgb), 0.45) !important;
}

.shapy-form input[type="text"]:focus,
.shapy-form input[type="email"]:focus,
.shapy-form input[type="tel"]:focus,
.shapy-form input[type="url"]:focus,
.shapy-form input[type="number"]:focus,
.shapy-form input[type="password"]:focus,
.shapy-form input[type="date"]:focus,
.shapy-form select:focus,
.shapy-form textarea:focus {
    outline: none !important;
    border-color: var(--shapy-color-accent) !important;
    box-shadow: 0 0 0 3px rgba(var(--shapy-color-accent-rgb), 0.15) !important;
}

.shapy-form input[aria-invalid="true"],
.shapy-form select[aria-invalid="true"],
.shapy-form textarea[aria-invalid="true"] {
    border-color: var(--shapy-color-error) !important;
}

/* --------------------------------------------------
   Radios y checkboxes
-------------------------------------------------- */

.shapy-form .frm_opt_container {
    width: 100%;
}

.shapy-form .frm_radio,
.shapy-form .frm_checkbox {
    margin: 0 0 8px !important;
}

.shapy-form .frm_radio:last-child,
.shapy-form .frm_checkbox:last-child {
    margin-bottom: 0 !important;
}

.shapy-form .frm_radio label,
.shapy-form .frm_checkbox label {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;
    width: 100%;
    margin: 0 !important;
    color: var(--shapy-color-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    cursor: pointer;
}

.shapy-form .frm_radio input[type="radio"],
.shapy-form .frm_checkbox input[type="checkbox"] {
    flex: 0 0 17px;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    accent-color: var(--shapy-color-primary);
    cursor: pointer;
}

/* --------------------------------------------------
   Botón de envío
-------------------------------------------------- */

.shapy-form .frm_submit {
    width: 100%;
    margin: 10px 0 0 !important;
}

.shapy-form .frm_button_submit,
.shapy-form .frm_submit button.frm_button_submit {
    display: block;
    width: 100% !important;
    min-height: 54px;
    margin: 0 !important;
    padding: 15px 24px !important;
    color: var(--shapy-color-white) !important;
    background: var(--shapy-color-primary) !important;
    border: 1px solid var(--shapy-color-primary) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.shapy-form .frm_button_submit:hover,
.shapy-form .frm_submit button.frm_button_submit:hover {
    color: var(--shapy-color-primary) !important;
    background: var(--shapy-color-accent) !important;
    border-color: var(--shapy-color-accent) !important;
    box-shadow: 0 10px 24px rgba(var(--shapy-color-primary-rgb), 0.14) !important;
    transform: translateY(-1px);
}

.shapy-form .frm_button_submit:focus-visible,
.shapy-form .frm_submit button.frm_button_submit:focus-visible {
    outline: 3px solid rgba(var(--shapy-color-accent-rgb), 0.5) !important;
    outline-offset: 3px;
}

/* --------------------------------------------------
   Errores, confirmación y carga AJAX
-------------------------------------------------- */

.shapy-form .frm_error {
    margin-top: 6px;
    color: var(--shapy-color-error) !important;
    font-size: 12px;
    line-height: 1.4;
}

.shapy-form .frm_error_style {
    margin: 0 0 20px !important;
    padding: 14px 16px !important;
    color: var(--shapy-color-error) !important;
    background: var(--shapy-color-error-background) !important;
    border: 1px solid var(--shapy-color-error-border) !important;
    border-radius: 10px !important;
    font-size: 13px;
    line-height: 1.5;
}

.shapy-form .frm_message {
    margin: 0 !important;
    padding: 22px !important;
    color: var(--shapy-color-primary) !important;
    background: rgba(var(--shapy-color-accent-rgb), 0.14) !important;
    border: 1px solid rgba(var(--shapy-color-accent-rgb), 0.45) !important;
    border-radius: 12px !important;
    font-size: 15px;
    line-height: 1.6;
}

.shapy-form .frm_ajax_loading {
    display: block;
    margin: 12px auto 0 !important;
}

/* ==================================================
   FORMULARIO SHAPYPRO - VARIANTE ENCUESTA
================================================== */

.shapy-form--survey .frm_form_field {
    margin-bottom: 30px !important;
}

.shapy-form--survey .frm_primary_label {
    margin-bottom: 10px !important;
    line-height: 1.5;
}

.shapy-form--survey .frm_opt_container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shapy-form--survey .frm_radio,
.shapy-form--survey .frm_checkbox {
    margin: 0 !important;
}

/* Subpreguntas / opciones indentadas de Formidable */
.shapy-form--survey .frm_indent_opt,
.shapy-form--survey .frm_form_field.frm_indent_opt {
    margin-left: 45px !important;
    width: calc(100% - 45px);
}

.shapy-form--survey textarea {
    min-height: 120px !important;
}

/* Separación visual opcional entre preguntas principales */
.shapy-form--survey .frm_form_field + .frm_form_field {
    padding-top: 2px;
}

@media (max-width: 767px) {
    .shapy-form .frm_form_field {
        margin-bottom: 20px !important;
    }

    .shapy-form--survey .frm_form_field {
        margin-bottom: 26px !important;
    }

    .shapy-form--survey .frm_indent_opt,
    .shapy-form--survey .frm_form_field.frm_indent_opt {
        margin-left: 22px !important;
        width: calc(100% - 22px);
    }
}

/* ==================================================
   FORMULARIO CONTACTO - FORMIDABLE ID 18
================================================== */

#frm_form_18_container {
    width: 100%;
}

/* Mantener tipografía de Elementor */
#frm_form_18_container,
#frm_form_18_container input,
#frm_form_18_container textarea,
#frm_form_18_container select,
#frm_form_18_container button {
    font-family: inherit !important;
}

/* --------------------------------------------------
   Estructura general
-------------------------------------------------- */

#frm_form_18_container .frm_fields_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 24px;
}

/* Campos normales */
#frm_form_18_container .frm_form_field {
    margin: 0 !important;
}

/* Servicio + mensaje a ancho completo */
#frm_form_18_container .frm_form_field:has(.frm_radio),
#frm_form_18_container .frm_form_field:has(textarea),
#frm_form_18_container .frm_submit {
    grid-column: span 12 / span 12;
}


/* --------------------------------------------------
   Labels
-------------------------------------------------- */

#frm_form_18_container .frm_primary_label {
    display: block;
    margin-bottom: 8px !important;
    padding: 0 !important;

    color: var(--shapy-color-text-strong);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

/* Asterisco */
#frm_form_18_container .frm_required {
    color: var(--shapy-color-primary);
}


/* --------------------------------------------------
   Inputs
-------------------------------------------------- */

#frm_form_18_container input[type="text"],
#frm_form_18_container input[type="email"],
#frm_form_18_container input[type="tel"],
#frm_form_18_container input[type="url"],
#frm_form_18_container input[type="number"],
#frm_form_18_container select,
#frm_form_18_container textarea {
    width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px !important;

    color: var(--shapy-color-text-strong);
    background: var(--shapy-color-white) !important;

    border: 1px solid rgba(var(--shapy-color-primary-rgb), 0.22) !important;
    border-radius: 7px !important;

    box-shadow: none !important;

    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.4;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

#frm_form_18_container input[type="text"],
#frm_form_18_container input[type="email"],
#frm_form_18_container input[type="tel"],
#frm_form_18_container input[type="url"],
#frm_form_18_container input[type="number"],
#frm_form_18_container select {
    min-height: 42px;
}


/* Placeholder */
#frm_form_18_container input::placeholder,
#frm_form_18_container textarea::placeholder {
    color: var(--shapy-color-placeholder);
    opacity: 0.85;
}


/* Hover */
#frm_form_18_container input:hover,
#frm_form_18_container textarea:hover,
#frm_form_18_container select:hover {
    border-color: rgba(var(--shapy-color-primary-rgb), 0.45) !important;
}


/* Focus */
#frm_form_18_container input:focus,
#frm_form_18_container textarea:focus,
#frm_form_18_container select:focus {
    outline: none !important;

    border-color: var(--shapy-color-accent) !important;

    box-shadow:
        0 0 0 3px rgba(var(--shapy-color-accent-rgb), 0.15) !important;
}


/* --------------------------------------------------
   Textarea
-------------------------------------------------- */

#frm_form_18_container textarea {
    min-height: 230px !important;
    resize: vertical;
}


/* --------------------------------------------------
   SERVICE OF INTEREST
-------------------------------------------------- */

/* Caja que contiene las opciones */
#frm_form_18_container .frm_opt_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 26px;
    row-gap: 4px;

    padding: 12px 14px !important;

    border: 1px solid rgba(var(--shapy-color-accent-rgb), 0.45);
    border-radius: 10px;

    background: var(--shapy-color-white);
}


/* Cada opción */
#frm_form_18_container .frm_radio {
    position: relative;

    display: flex !important;
    align-items: center;

    min-height: 40px;

    margin: 0 !important;
    padding: 8px 12px !important;

    border-radius: 7px;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}


/* Label radio */
#frm_form_18_container .frm_radio label {
    display: flex !important;
    align-items: center;
    gap: 10px;

    width: 100%;

    margin: 0 !important;

    color: var(--shapy-color-text);
    font-size: 14px;
    font-weight: 400;

    cursor: pointer;
}


/* Radio */
#frm_form_18_container .frm_radio input[type="radio"] {
    width: 15px !important;
    height: 15px !important;

    min-width: 15px;

    margin: 0 !important;

    accent-color: var(--shapy-color-primary);

    cursor: pointer;
}


/* Hover */
#frm_form_18_container .frm_radio:hover {
    background: rgba(var(--shapy-color-accent-rgb), 0.10);
}


/* Opción seleccionada */
#frm_form_18_container .frm_radio:has(input:checked) {
    background: rgba(var(--shapy-color-accent-rgb), 0.18);
}

#frm_form_18_container .frm_radio:has(input:checked) label {
    color: var(--shapy-color-text-strong);
}


/* --------------------------------------------------
   BOTÓN
-------------------------------------------------- */

#frm_form_18_container .frm_submit {
    width: 100%;
    margin: 4px 0 0 !important;
}

#frm_form_18_container .frm_button_submit {
    display: block;

    width: 100% !important;
    min-height: 54px;

    margin: 0 !important;
    padding: 15px 24px !important;

    color: var(--shapy-color-white) !important;
    background: var(--shapy-color-primary) !important;

    border: 1px solid var(--shapy-color-primary) !important;
    border-radius: 999px !important;

    box-shadow: none !important;

    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


/* Hover botón */
#frm_form_18_container .frm_button_submit:hover {
    color: var(--shapy-color-primary) !important;
    background: var(--shapy-color-accent) !important;

    border-color: var(--shapy-color-accent) !important;

    box-shadow:
        0 10px 24px rgba(var(--shapy-color-primary-rgb), 0.14) !important;

    transform: translateY(-1px);
}


/* --------------------------------------------------
   MENSAJES DE ERROR
-------------------------------------------------- */

#frm_form_18_container .frm_error {
    margin-top: 6px;

    color: var(--shapy-color-error) !important;

    font-size: 12px;
}

/* ==================================================
   FORMULARIO DE COLABORACIÓN - OFF CANVAS
================================================== */

/* Fondo oscurecido */
.shapy-collaboration-drawer .wpr-offcanvas-wrap {
    background: rgba(0, 48, 58, 0.58) !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* Panel lateral */
.elementor-element.shapy-collaboration-drawer
.wpr-offcanvas-content.wpr-offcanvas-content-right {
    width: 560px !important;
    max-width: calc(100vw - 24px) !important;

    height: 100vh !important;
    height: 100dvh !important;

    padding: 0 !important;

    background: #f8fbfc !important;
    border: 0 !important;
    border-radius: 24px 0 0 24px !important;

    box-shadow: -18px 0 55px rgba(0, 48, 58, 0.22) !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* ==================================================
   CABECERA Y BOTÓN DE CIERRE
================================================== */

.shapy-collaboration-drawer
.wpr-offcanvas-content
.wpr-offcanvas-header {
    position: sticky;
    top: 0;
    z-index: 20;

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

    min-height: 62px;
    padding: 13px 24px !important;

    background: rgba(248, 251, 252, 0.94);
    border-bottom: 1px solid rgba(var(--shapy-color-primary-rgb), 0.08);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Botón de cierre */
.shapy-collaboration-drawer
.wpr-offcanvas-content
.wpr-close-offcanvas {
    display: flex !important;
    align-items: center;
    justify-content: center;

    width: 36px !important;
    height: 36px !important;

    margin: 0 !important;

    color: var(--shapy-color-primary) !important;
    background: rgba(var(--shapy-color-accent-rgb), 0.18) !important;

    border: 1px solid rgba(var(--shapy-color-primary-rgb), 0.12) !important;
    border-radius: 50% !important;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.shapy-collaboration-drawer
.wpr-offcanvas-content
.wpr-close-offcanvas:hover {
    color: var(--shapy-color-white) !important;
    background: var(--shapy-color-primary) !important;
    transform: rotate(5deg);
}

/* ==================================================
   CONTENIDO DEL PANEL
================================================== */

/* Plantilla de Elementor cargada dentro del panel */
.shapy-collaboration-drawer
.wpr-offcanvas-content > .elementor {
    width: 100%;
    padding: 18px 34px 36px;
}

/* Título */
.shapy-collaboration-drawer
.wpr-offcanvas-content h2 {
    max-width: 440px;
    margin: 0 0 12px;

    color: var(--shapy-color-primary);
    font-size: clamp(27px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.1;
}

/* Texto introductorio, si lo añades */
.shapy-collaboration-drawer .collaboration-intro {
    margin: 0 0 26px;

    color: var(--shapy-color-text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Mantener la tipografía de Elementor */
.shapy-collaboration-drawer,
.shapy-collaboration-drawer input,
.shapy-collaboration-drawer textarea,
.shapy-collaboration-drawer select,
.shapy-collaboration-drawer button {
    font-family: inherit !important;
}

.shapy-collaboration-drawer .frm_form_field#frm_field_179_container.collaboration-full,
.shapy-collaboration-drawer .frm_form_field#frm_field_180_container.collaboration-full {
    grid-column: 1 / -1 !important;
}

/* ==================================================
   ESTRUCTURA DEL FORMULARIO
================================================== */

.shapy-collaboration-drawer .frm_fields_container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 16px !important;
}

.shapy-collaboration-drawer .frm_form_field {
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0 !important;
}

/* Nombre, email, empresa, país y campos cortos */
.shapy-collaboration-drawer
.frm_form_field:has(input[type="text"]),

.shapy-collaboration-drawer
.frm_form_field:has(input[type="email"]),

.shapy-collaboration-drawer
.frm_form_field:has(input[type="tel"]),

.shapy-collaboration-drawer
.frm_form_field:has(input[type="url"]) {
    grid-column: auto !important;
}

/* Desplegables, radios y preguntas largas */
.shapy-collaboration-drawer
.frm_form_field:has(select),

.shapy-collaboration-drawer
.frm_form_field:has(textarea),

.shapy-collaboration-drawer
.frm_form_field:has(.frm_opt_container),

.shapy-collaboration-drawer .frm_submit {
    grid-column: 1 / -1 !important;
}

/* ==================================================
   ETIQUETAS
================================================== */

.shapy-collaboration-drawer .frm_primary_label {
    display: block;

    margin: 0 0 7px !important;
    padding: 0 !important;

    color: var(--shapy-color-text-strong);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.shapy-collaboration-drawer .frm_required {
    color: var(--shapy-color-primary);
}

/* Textos de ayuda */
.shapy-collaboration-drawer .frm_description {
    margin-top: 6px;

    color: var(--shapy-color-text-muted);
    font-size: 12px;
    line-height: 1.45;
}

/* ==================================================
   INPUTS, SELECTS Y TEXTAREAS
================================================== */

.shapy-collaboration-drawer input[type="text"],
.shapy-collaboration-drawer input[type="email"],
.shapy-collaboration-drawer input[type="tel"],
.shapy-collaboration-drawer input[type="url"],
.shapy-collaboration-drawer input[type="number"],
.shapy-collaboration-drawer select,
.shapy-collaboration-drawer textarea {
    width: 100% !important;

    margin: 0 !important;
    padding: 12px 14px !important;

    color: var(--shapy-color-text-strong);
    background: var(--shapy-color-white) !important;

    border: 1px solid rgba(var(--shapy-color-primary-rgb), 0.22) !important;
    border-radius: 9px !important;

    box-shadow: none !important;

    font-size: 14px !important;
    font-weight: 400;
    line-height: 1.4;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.shapy-collaboration-drawer input[type="text"],
.shapy-collaboration-drawer input[type="email"],
.shapy-collaboration-drawer input[type="tel"],
.shapy-collaboration-drawer input[type="url"],
.shapy-collaboration-drawer input[type="number"],
.shapy-collaboration-drawer select {
    min-height: 48px;
}

/* Preguntas largas */
.shapy-collaboration-drawer textarea {
    min-height: 115px !important;
    resize: vertical;
}

/* Placeholder */
.shapy-collaboration-drawer input::placeholder,
.shapy-collaboration-drawer textarea::placeholder {
    color: var(--shapy-color-placeholder);
    opacity: 0.8;
}

/* Hover */
.shapy-collaboration-drawer input:hover,
.shapy-collaboration-drawer select:hover,
.shapy-collaboration-drawer textarea:hover {
    border-color: rgba(var(--shapy-color-primary-rgb), 0.48) !important;
}

/* Focus accesible */
.shapy-collaboration-drawer input:focus,
.shapy-collaboration-drawer select:focus,
.shapy-collaboration-drawer textarea:focus {
    outline: none !important;

    border-color: var(--shapy-color-accent) !important;

    box-shadow:
        0 0 0 3px rgba(var(--shapy-color-accent-rgb), 0.16) !important;
}

/* Campo con error */
.shapy-collaboration-drawer
input[aria-invalid="true"],

.shapy-collaboration-drawer
select[aria-invalid="true"],

.shapy-collaboration-drawer
textarea[aria-invalid="true"] {
    border-color: var(--shapy-color-error) !important;
}

/* ==================================================
   OPCIONES DE RADIO
   Por si mantienes este tipo de campo
================================================== */

.shapy-collaboration-drawer .frm_opt_container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px !important;

    padding: 10px !important;

    background: var(--shapy-color-white);
    border: 1px solid rgba(var(--shapy-color-accent-rgb), 0.38);
    border-radius: 10px;
}

.shapy-collaboration-drawer .frm_radio {
    display: flex !important;
    align-items: center;

    min-height: 42px;

    margin: 0 !important;
    padding: 8px 10px !important;

    border-radius: 7px;

    transition: background-color 0.2s ease;
}

.shapy-collaboration-drawer .frm_radio label {
    display: flex !important;
    align-items: flex-start;
    gap: 9px;

    width: 100%;
    margin: 0 !important;

    color: var(--shapy-color-text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;

    cursor: pointer;
}

.shapy-collaboration-drawer
.frm_radio input[type="radio"] {
    flex: 0 0 16px;

    width: 16px !important;
    height: 16px !important;

    margin: 1px 0 0 !important;

    accent-color: var(--shapy-color-primary);
    cursor: pointer;
}

.shapy-collaboration-drawer .frm_radio:hover {
    background: rgba(var(--shapy-color-accent-rgb), 0.1);
}

.shapy-collaboration-drawer
.frm_radio:has(input:checked) {
    background: rgba(var(--shapy-color-accent-rgb), 0.18);
}

/* ==================================================
   BOTÓN DE ENVÍO
================================================== */

.shapy-collaboration-drawer .frm_submit {
    width: 100%;
    margin: 4px 0 0 !important;
}

.shapy-collaboration-drawer .frm_submit.frm_flex button.frm_button_submit {
    display: block;

    width: 100% !important;
    min-height: 52px;

    margin: 0 !important;
    padding: 14px 22px !important;

    color: var(--shapy-color-white) !important;
    background: var(--shapy-color-primary) !important;

    border: 1px solid var(--shapy-color-primary) !important;
    border-radius: 12px !important;

    box-shadow: none !important;

    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.2;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.shapy-collaboration-drawer .frm_submit.frm_flex button.frm_button_submit:hover {
    background: white !important;
    color: var(--shapy-color-primary)  !important;
}

.shapy-collaboration-drawer .frm_button_submit:hover {
    color: var(--shapy-color-primary) !important;
    background: var(--shapy-color-accent) !important;
    border-color: var(--shapy-color-accent) !important;

    box-shadow:
        0 10px 24px rgba(var(--shapy-color-primary-rgb), 0.16) !important;

    transform: translateY(-1px);
}

.shapy-collaboration-drawer
.frm_button_submit:focus-visible {
    outline: 3px solid rgba(var(--shapy-color-accent-rgb), 0.5) !important;
    outline-offset: 3px;
}

/* ==================================================
   ERRORES Y CONFIRMACIÓN AJAX
================================================== */

/* Error individual */
.shapy-collaboration-drawer .frm_error {
    margin-top: 6px;

    color: var(--shapy-color-error) !important;
    font-size: 12px;
    line-height: 1.4;
}

/* Aviso general de errores */
.shapy-collaboration-drawer .frm_error_style {
    margin: 0 0 20px !important;
    padding: 14px 16px !important;

    color: var(--shapy-color-error) !important;
    background: var(--shapy-color-error-background) !important;

    border: 1px solid var(--shapy-color-error-border) !important;
    border-radius: 10px !important;

    font-size: 13px;
    line-height: 1.5;
}

/* Mensaje de envío correcto */
.shapy-collaboration-drawer .frm_message {
    margin: 0 !important;
    padding: 22px !important;

    color: var(--shapy-color-primary) !important;
    background: rgba(var(--shapy-color-accent-rgb), 0.14) !important;

    border: 1px solid rgba(var(--shapy-color-accent-rgb), 0.45) !important;
    border-radius: 12px !important;

    font-size: 15px;
    line-height: 1.6;
}

/* Indicador de carga AJAX */
.shapy-collaboration-drawer .frm_ajax_loading {
    display: block;
    margin: 12px auto 0 !important;
}

/* ==================================================
   AJUSTES RESPONSIVE
================================================== */

/* --------------------------------------------------
   BUSCADOR DEL HEADER
-------------------------------------------------- */

/* -----------------------------------
   MOBILE
----------------------------------- */

@media (max-width: 767px) {

    .sahpypro-search-panel {
        left: 20px;
        width: calc(100% - 40px);

        top: 100px;

        padding-left: 18px;
        padding-right: 18px;

        border-radius: 20px;
    }


    .sahpypro-search-wrapper.is-open .sahpypro-search-panel {
        max-height: 180px;

        padding-top: 18px;
        padding-bottom: 18px;
    }


    .sahpypro-search-form {
        flex-direction: column;

        gap: 10px;
    }


    .sahpypro-search-submit {
        width: 100% !important;
    }

}

/* --------------------------------------------------
   RESULTADOS DE BÚSQUEDA
-------------------------------------------------- */

/* TABLET
----------------------------------- */

@media (max-width: 1024px) {

    .sahpypro-search-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

}


/* MÓVIL
----------------------------------- */

@media (max-width: 767px) {

    .sahpypro-search-results-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }


    .sahpypro-search-card {
        padding: 18px;
    }


    .sahpypro-search-card-image img {
        height: 190px;
    }

}

/* --------------------------------------------------
   FORMULARIO DE COLABORACIÓN
-------------------------------------------------- */

/* ==================================================
   WOOCOMMERCE - MY ACCOUNT SAHPYPRO
   Clase del widget/contenedor: shapy-my-account
================================================== */


/* ==================================================
   CONTENEDOR GENERAL
================================================== */

.shapy-my-account .woocommerce {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 42px;

    width: 100%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 40px 0 70px;

    color: var(--shapy-color-text);
}

.woocommerce-info::before {
    display: none;
}


/* WooCommerce añade un clearfix con ::before y ::after.
   Al usar Grid se convierten en elementos del grid,
   así que los eliminamos. */

.shapy-my-account .woocommerce::before,
.shapy-my-account .woocommerce::after {
    content: none !important;
    display: none !important;
}


/* ==================================================
   NAVEGACIÓN LATERAL
================================================== */

.shapy-my-account
.woocommerce-MyAccount-navigation {
    width: 100% !important;
    float: none !important;
}


/* Contenedor del menú */

.shapy-my-account
.woocommerce-MyAccount-navigation ul {
    display: flex;
    flex-direction: column;
    gap: 7px;

    width: 100%;

    margin: 0 !important;
    padding: 12px !important;

    list-style: none !important;

    background:
        rgba(var(--shapy-color-accent-rgb), 0.10);

    border:
        1px solid rgba(var(--shapy-color-accent-rgb), 0.30);

    border-radius: 18px;
}


/* Cada opción */

.shapy-my-account
.woocommerce-MyAccount-navigation li {
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


/* Enlaces */

.shapy-my-account
.woocommerce-MyAccount-navigation li a {
    position: relative;

    display: flex;
    align-items: center;

    width: 100%;
    min-height: 48px;

    padding: 12px 16px;

    color: var(--shapy-color-text) !important;
    background: transparent;

    border-radius: 11px;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;

    text-decoration: none !important;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}


/* Hover */

.shapy-my-account
.woocommerce-MyAccount-navigation li a:hover {
    color: var(--shapy-color-primary) !important;

    background:
        rgba(var(--shapy-color-accent-rgb), 0.18);

    transform: translateX(3px);
}


/* Página activa */

.shapy-my-account
.woocommerce-MyAccount-navigation li.is-active a {
    color: var(--shapy-color-white) !important;

    background: var(--shapy-color-primary);

    font-weight: 600;
}


/* Punto indicador de página activa */

.shapy-my-account
.woocommerce-MyAccount-navigation li.is-active a::after {
    content: "";

    position: absolute;
    top: 50%;
    right: 14px;

    width: 6px;
    height: 6px;

    background: var(--shapy-color-accent);

    border-radius: 50%;

    transform: translateY(-50%);
}


/* ==================================================
   CONTENIDO PRINCIPAL
================================================== */

.shapy-my-account
.woocommerce-MyAccount-content {
    width: 100% !important;
    min-width: 0;

    float: none !important;

    padding: 34px 38px;

    background: var(--shapy-color-white);

    border:
        1px solid rgba(var(--shapy-color-primary-rgb), 0.12);

    border-radius: 20px;

    box-shadow:
        0 12px 35px rgba(var(--shapy-color-primary-rgb), 0.06);
}


/* Párrafos */

.shapy-my-account
.woocommerce-MyAccount-content p {
    margin-top: 0;
    margin-bottom: 18px;

    color: var(--shapy-color-text);

    font-size: 15px;
    line-height: 1.7;
}


/* Primer párrafo del Dashboard */

.shapy-my-account
.woocommerce-MyAccount-content > p:first-of-type {
    padding-bottom: 20px;
    margin-bottom: 22px;

    border-bottom:
        1px solid rgba(var(--shapy-color-primary-rgb), 0.10);
}


/* Último elemento */

.shapy-my-account
.woocommerce-MyAccount-content > *:last-child {
    margin-bottom: 0;
}


/* Negritas */

.shapy-my-account
.woocommerce-MyAccount-content strong {
    color: var(--shapy-color-primary);

    font-weight: 600;
}


/* ==================================================
   ENLACES DEL CONTENIDO
================================================== */

.shapy-my-account
.woocommerce-MyAccount-content a:not(.button) {
    color: var(--shapy-color-primary);

    font-weight: 500;

    text-decoration:
        underline rgba(var(--shapy-color-accent-rgb), 0.65);

    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    transition: color 0.2s ease;
}


.shapy-my-account
.woocommerce-MyAccount-content a:not(.button):hover {
    color: var(--shapy-color-accent-hover);
}


/* ==================================================
   TÍTULOS
================================================== */

.shapy-my-account
.woocommerce-MyAccount-content h2,

.shapy-my-account
.woocommerce-MyAccount-content h3 {
    margin-top: 0;

    color: var(--shapy-color-primary);

    font-weight: 600;
    line-height: 1.2;
}


.shapy-my-account
.woocommerce-MyAccount-content h2 {
    margin-bottom: 24px;

    font-size: 28px;
}


.shapy-my-account
.woocommerce-MyAccount-content h3 {
    margin-bottom: 14px;

    font-size: 20px;
}


/* ==================================================
   BOTONES
================================================== */

.shapy-my-account
.woocommerce-MyAccount-content .button,

.shapy-my-account
.woocommerce-MyAccount-content button.button,

.shapy-my-account
.woocommerce-MyAccount-content input.button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 11px 20px !important;

    color: var(--shapy-color-white) !important;

    background: var(--shapy-color-primary) !important;

    border:
        1px solid var(--shapy-color-primary) !important;

    border-radius: 999px !important;

    box-shadow: none !important;

    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.shapy-my-account
.woocommerce-MyAccount-content .button:hover,

.shapy-my-account
.woocommerce-MyAccount-content button.button:hover,

.shapy-my-account
.woocommerce-MyAccount-content input.button:hover {
    color: var(--shapy-color-primary) !important;

    background: var(--shapy-color-accent) !important;

    border-color: var(--shapy-color-accent) !important;

    box-shadow:
        0 8px 22px rgba(var(--shapy-color-primary-rgb), 0.12) !important;

    transform: translateY(-1px);
}


/* ==================================================
   FORMULARIOS
================================================== */

.shapy-my-account
.woocommerce-MyAccount-content form .form-row {
    margin-bottom: 18px;
}


/* Labels */

.shapy-my-account
.woocommerce-MyAccount-content form label {
    display: block;

    margin-bottom: 7px;

    color: var(--shapy-color-text-strong);

    font-size: 14px;
    font-weight: 500;
}


/* Inputs */

.shapy-my-account
.woocommerce-MyAccount-content input[type="text"],

.shapy-my-account
.woocommerce-MyAccount-content input[type="email"],

.shapy-my-account
.woocommerce-MyAccount-content input[type="tel"],

.shapy-my-account
.woocommerce-MyAccount-content input[type="password"],

.shapy-my-account
.woocommerce-MyAccount-content select,

.shapy-my-account
.woocommerce-MyAccount-content textarea {
    width: 100%;

    min-height: 48px;

    padding: 12px 15px !important;

    color: var(--shapy-color-text-strong) !important;

    background: var(--shapy-color-white) !important;

    border:
        1px solid rgba(var(--shapy-color-primary-rgb), 0.20) !important;

    border-radius: 9px !important;

    box-shadow: none !important;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Hover */

.shapy-my-account
.woocommerce-MyAccount-content input:hover,

.shapy-my-account
.woocommerce-MyAccount-content select:hover,

.shapy-my-account
.woocommerce-MyAccount-content textarea:hover {
    border-color:
        rgba(var(--shapy-color-primary-rgb), 0.42) !important;
}


/* Focus */

.shapy-my-account
.woocommerce-MyAccount-content input:focus,

.shapy-my-account
.woocommerce-MyAccount-content select:focus,

.shapy-my-account
.woocommerce-MyAccount-content textarea:focus {
    outline: none !important;

    border-color: var(--shapy-color-accent) !important;

    box-shadow:
        0 0 0 3px rgba(var(--shapy-color-accent-rgb), 0.15) !important;
}


/* Textarea */

.shapy-my-account
.woocommerce-MyAccount-content textarea {
    min-height: 150px;

    resize: vertical;
}


/* ==================================================
   SELECT2 WOOCOMMERCE
================================================== */

.shapy-my-account
.woocommerce-MyAccount-content
.select2-container {
    width: 100% !important;
}


.shapy-my-account
.woocommerce-MyAccount-content
.select2-container
.select2-selection--single {
    display: flex;
    align-items: center;

    min-height: 48px;

    border:
        1px solid rgba(var(--shapy-color-primary-rgb), 0.20) !important;

    border-radius: 9px !important;

    background: var(--shapy-color-white);
}


.shapy-my-account
.woocommerce-MyAccount-content
.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    padding-left: 15px;

    color: var(--shapy-color-text-strong);

    line-height: 46px;
}


/* ==================================================
   CAMBIO DE CONTRASEÑA
================================================== */

.shapy-my-account
.woocommerce-MyAccount-content fieldset {
    margin: 30px 0 24px;

    padding: 24px;

    background:
        rgba(var(--shapy-color-accent-rgb), 0.06);

    border:
        1px solid rgba(var(--shapy-color-accent-rgb), 0.30);

    border-radius: 14px;
}


.shapy-my-account
.woocommerce-MyAccount-content fieldset legend {
    padding: 0 8px;

    color: var(--shapy-color-primary);

    font-weight: 600;
}


/* ==================================================
   DIRECCIONES
================================================== */

.shapy-my-account
.woocommerce-Addresses {
    display: grid;

    grid-template-columns:
        repeat(1, minmax(0, 1fr));

    gap: 20px;
}


/* Cada dirección */

.shapy-my-account
.woocommerce-Address {
    width: 100% !important;

    float: none !important;

    padding: 24px;

    background:
        rgba(var(--shapy-color-accent-rgb), 0.07);

    border:
        1px solid rgba(var(--shapy-color-accent-rgb), 0.30);

    border-radius: 14px;
}


/* Cabecera */

.shapy-my-account
.woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 15px;

    margin-bottom: 15px;
}


.shapy-my-account
.woocommerce-Address-title h2,

.shapy-my-account
.woocommerce-Address-title h3 {
    margin: 0 !important;
}


/* Dirección */

.shapy-my-account
.woocommerce-Address address {
    margin: 0;

    color: var(--shapy-color-text);

    font-style: normal;
    line-height: 1.7;
}


/* ==================================================
   TABLAS
   Orders / Downloads
================================================== */

.shapy-my-account
.woocommerce-MyAccount-content table.shop_table {
    width: 100%;

    margin: 0 !important;

    overflow: hidden;

    background: var(--shapy-color-white);

    border:
        1px solid rgba(var(--shapy-color-primary-rgb), 0.12) !important;

    border-collapse: separate !important;
    border-spacing: 0;

    border-radius: 14px;
}


/* Cabecera */

.shapy-my-account
.woocommerce-MyAccount-content table.shop_table th {
    padding: 14px 16px !important;

    color: var(--shapy-color-primary);

    background:
        rgba(var(--shapy-color-accent-rgb), 0.13);

    border: 0 !important;

    border-bottom:
        1px solid rgba(var(--shapy-color-primary-rgb), 0.10) !important;

    font-size: 13px;
    font-weight: 600;
}


/* Celdas */

.shapy-my-account
.woocommerce-MyAccount-content table.shop_table td {
    padding: 16px !important;

    color: var(--shapy-color-text);

    background: var(--shapy-color-white);

    border: 0 !important;

    border-bottom:
        1px solid rgba(var(--shapy-color-primary-rgb), 0.08) !important;

    font-size: 14px;
}


/* Última fila */

.shapy-my-account
.woocommerce-MyAccount-content
table.shop_table tr:last-child td {
    border-bottom: 0 !important;
}


/* ==================================================
   MENSAJES WOOCOMMERCE
================================================== */

.shapy-my-account
.woocommerce-MyAccount-content .woocommerce-message,

.shapy-my-account
.woocommerce-MyAccount-content .woocommerce-info {
    margin-bottom: 25px !important;

    padding: 18px 20px !important;

    color: var(--shapy-color-primary);

    background:
        rgba(var(--shapy-color-accent-rgb), 0.12);

    border:
        1px solid rgba(var(--shapy-color-accent-rgb), 0.35);

    border-radius: 12px;
}


/* Errores */

.shapy-my-account
.woocommerce-MyAccount-content .woocommerce-error {
    margin-bottom: 25px !important;

    padding: 18px 20px !important;

    color: var(--shapy-color-error);

    background:
        var(--shapy-color-error-background);

    border:
        1px solid var(--shapy-color-error-border);

    border-radius: 12px;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {

    .shapy-my-account .woocommerce {
        grid-template-columns:
            220px minmax(0, 1fr);

        gap: 25px;

        padding-top: 30px;
        padding-bottom: 60px;
    }


    .shapy-my-account
    .woocommerce-MyAccount-content {
        padding: 28px;
    }

}


/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 767px) {

    /* ------------------------------------------
       CONTENEDOR
    ------------------------------------------ */

    .shapy-my-account .woocommerce {
        display: block;

        width: 100%;

        padding: 25px 0 50px;
    }


    /* ------------------------------------------
       NAVEGACIÓN
    ------------------------------------------ */

    .shapy-my-account
    .woocommerce-MyAccount-navigation {
        width: 100% !important;

        margin-bottom: 24px;

        overflow: visible;
    }


    .shapy-my-account
    .woocommerce-MyAccount-navigation ul {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;

        width: 100%;
        min-width: 0;

        margin: 0 !important;
        padding: 8px !important;

        border-radius: 14px;
    }


    .shapy-my-account
    .woocommerce-MyAccount-navigation li {
        width: 100%;
        min-width: 0;
    }


    .shapy-my-account
    .woocommerce-MyAccount-navigation li a {
        width: 100%;

        min-height: 44px;

        padding: 10px 12px;

        font-size: 13px;
        line-height: 1.3;

        white-space: normal;

        border-radius: 9px;

        transform: none;
    }


    .shapy-my-account
    .woocommerce-MyAccount-navigation li a:hover {
        transform: none;
    }


    /* Sin punto indicador */

    .shapy-my-account
    .woocommerce-MyAccount-navigation
    li.is-active a::after {
        display: none;
    }


    /* ------------------------------------------
       CONTENIDO
    ------------------------------------------ */

    .shapy-my-account
    .woocommerce-MyAccount-content {
        width: 100% !important;

        padding: 24px 20px;

        border-radius: 16px;
    }


    .shapy-my-account
    .woocommerce-MyAccount-content p {
        font-size: 14px;
        line-height: 1.65;
    }


    /* ------------------------------------------
       DIRECCIONES
    ------------------------------------------ */

    .shapy-my-account
    .woocommerce-Addresses {
        grid-template-columns: 1fr;
    }


    /* ------------------------------------------
       TABLAS
    ------------------------------------------ */

    .shapy-my-account
    .woocommerce-MyAccount-content
    table.shop_table {
        font-size: 13px;
    }

}

/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {
    .elementor-element.shapy-collaboration-drawer
    .wpr-offcanvas-content.wpr-offcanvas-content-right {
        width: 520px !important;
        max-width: calc(100vw - 20px) !important;
    }

    .shapy-collaboration-drawer
    .wpr-offcanvas-content > .elementor {
        padding-right: 28px;
        padding-left: 28px;
    }
}

/* ==================================================
   MÓVIL
================================================== */

@media (max-width: 767px) {
    .elementor-element.shapy-collaboration-drawer
    .wpr-offcanvas-content.wpr-offcanvas-content-right {
        width: 100vw !important;
        max-width: 100vw !important;
        border-radius: 0 !important;
    }

    .shapy-collaboration-drawer
    .wpr-offcanvas-content
    .wpr-offcanvas-header {
        min-height: 58px;
        padding: 11px 18px !important;
    }

    .shapy-collaboration-drawer
    .wpr-offcanvas-content > .elementor {
        padding: 14px 20px 30px;
    }

    .shapy-collaboration-drawer
    .wpr-offcanvas-content h2 {
        font-size: 27px;
    }

    .shapy-collaboration-drawer .frm_fields_container {
        grid-template-columns: 1fr;
        gap: 17px !important;
    }

    .shapy-collaboration-drawer .frm_form_field,
    .shapy-collaboration-drawer .frm_submit {
        grid-column: 1 !important;
    }

    .shapy-collaboration-drawer .frm_opt_container {
        grid-template-columns: 1fr;
    }

    .shapy-collaboration-drawer textarea {
        min-height: 120px !important;
    }
}


/* --------------------------------------------------
   MENÚ, NEWSLETTER, TIMELINE Y CONTACTO
-------------------------------------------------- */

/* ==================================================
   RESPONSIVE
================================================== */
@media (max-width: 900px) {
    .shapy-newsletter {
        padding: 38px 30px;
        border-radius: 22px;
    }
}

@media (max-width: 767px) {
    .shapypro-languages {
        gap: 5px;
        font-size: 10px;
    }

    .shapy-newsletter {
        padding: 30px 20px;
        border-radius: 18px;
    }

    .shapy-newsletter__header {
        margin-bottom: 24px;
    }

    .shapy-newsletter h2 {
        font-size: 32px;
    }

    .shapy-newsletter__intro {
        font-size: 16px;
    }

    .shapy-newsletter__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .shapy-newsletter__service,
    .shapy-newsletter__submit,
    .shapy-newsletter #mce-responses {
        grid-column: auto;
    }

    .shapy-newsletter input,
    .shapy-newsletter select {
        min-height: 54px;
    }

    .timeline-shapy {
        gap: 20px;
    }

    .timeline-shapy::before,
    .timeline-shapy::after {
        left: 24px;
    }

    .timeline-item {
        display: block !important;
        min-height: auto;
        padding-left: 65px;
    }

    .timeline-left .timeline-card,
    .timeline-right .timeline-card {
        width: 100%;
        background: var(--shapy-color-white);
    }

    .timeline-item .timeline-number {
        top: 50%;
        left: 24px;
        width: 46px;
        height: 46px;
        transform: translate(-50%, -50%);
    }

    .timeline-card {
        padding: 22px;
    }

    #frm_form_18_container .frm_fields_container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #frm_form_18_container .frm_form_field,
    #frm_form_18_container .frm_submit {
        grid-column: 1;
    }

    #frm_form_18_container .frm_opt_container {
        grid-template-columns: 1fr;
        padding: 10px !important;
    }

    #frm_form_18_container textarea {
        min-height: 190px !important;
    }
}