/*
Theme Name: Hello Child Theme Xcalable
Template: hello-elementor
Version: 1.0.0
Author: Adrian
Description: Tema hijo de Hello Elementor
*/

/* Registrar Roboto localmente - RUTAS CORREGIDAS */
@font-face {
    font-family: 'Roboto';
    src: url('./assets/fonts/roboto/Roboto-Thin.woff2') format('woff2'),
         url('./assets/fonts/roboto/Roboto-Thin.woff') format('woff');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('./assets/fonts/roboto/Roboto-Light.woff2') format('woff2'),
         url('./assets/fonts/roboto/Roboto-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('./assets/fonts/roboto/Roboto-Regular.woff2') format('woff2'),
         url('./assets/fonts/roboto/Roboto-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('./assets/fonts/roboto/Roboto-Medium.woff2') format('woff2'),
         url('./assets/fonts/roboto/Roboto-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('./assets/fonts/roboto/Roboto-Bold.woff2') format('woff2'),
         url('./assets/fonts/roboto/Roboto-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('./assets/fonts/roboto/Roboto-Black.woff2') format('woff2'),
         url('./assets/fonts/roboto/Roboto-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Aplicar Roboto a toda la web */
body {
    font-family: 'Roboto', sans-serif !important;
}

h1, h2, h3, h4, h5, h6, p {
    font-family: 'Roboto', sans-serif !important;
}

/* Tus estilos adicionales */
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6, p { font-size: 1rem; }
small { font-size: 0.875rem; }

.spanfont h1 span {
    font-size: 18px;
}
.spanfont h2 span {
    font-size: 16px;
}

.submenu-as ul {
    background-color: #212529;
}

.submenu-as ul a {
    color: #ffffff;
}


/*Footer*/
.polet a {
    color: #000;
    text-decoration: underline;
    font-size: 12px
}

.polet p {
    font-size: 12px;
}

/* Shortcode: menú vertical con acordeón */
.hello-child-accordion-wrapper {
    width: 100%;
}

.hello-child-accordion-nav {
    width: 100%;
}

.hello-child-accordion-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hello-child-accordion-menu .menu-item {
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.hello-child-accordion-menu .menu-item:last-child {
    border-bottom: none;
}

.hello-child-accordion-menu .menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    color: #1f2937;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: color 0.2s ease, background 0.2s ease;
}

.hello-child-accordion-menu .menu-item > a:hover {
    color: #0f172a;
}

.hello-child-accordion-menu .menu-item-has-children > a::after {
    content: '\203A';
    font-size: 20px;
    transform: rotate(0deg);
    transition: transform 0.25s ease;
    color: #94a3b8;
}

.hello-child-accordion-menu .menu-item.menu-item--open > a::after {
    transform: rotate(90deg);
    color: #0f172a;
}

.hello-child-accordion-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 12px 0;
    background: transparent;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease;
}

.hello-child-accordion-menu .menu-item.menu-item--open > .sub-menu {
    max-height: 480px;
    opacity: 1;
}

.hello-child-accordion-menu .sub-menu .menu-item {
    border: none;
}

.hello-child-accordion-menu .sub-menu .menu-item > a {
    display: block;
    padding: 10px 22px;
    color: #475569;
    font-size: 15px;
    font-weight: 400;
}

.hello-child-accordion-menu .sub-menu .menu-item > a:hover {
    color: #0f172a;
}

/*Editar botón Whatsapp de Chaty Pluggin*/
.chaty-channel .on-hover-text {
    /* Hides the element and removes it from the layout flow */
    display: none !important; 
    
    /* Alternatively, you can try this if 'display: none' breaks the hover effect: */
    /* visibility: hidden !important; */
    /* opacity: 0 !important; */
}

/* This is a crucial addition to re-enable the hover effect */
.chaty-channel:hover .on-hover-text {
    display: block !important; /* Or whatever 'display' value the plugin uses to show it */
    visibility: visible !important;
    opacity: 1 !important;
}

/* Shortcode: formulario de contacto */
.hello-child-contact-form {
    width: 100%;
    max-width: 420px;
    color: #e2e8f0;
    font-size: 15px;
}

.hello-child-contact-form__group {
    margin-bottom: 18px;
    position: relative;
}

.hello-child-contact-form__control {
    width: 100%;
    padding: 14px 0 12px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 400;
    outline: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.hello-child-contact-form__control:focus {
    border-bottom-color: #007C01;
    color: #f8fafc;
}

.hello-child-contact-form__control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.hello-child-contact-form__select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 32px;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2394a3b8' d='M1.41.59 6 5.17 10.59.59 12 2l-6 6-6-6z'/%3E%3C/svg%3E") no-repeat right 0.35rem center;
    background-size: 12px;
    cursor: pointer;
}

.hello-child-contact-form__select option {
    color: #1f2937;
    background: #ffffff;
}

.hello-child-contact-form__textarea {
    resize: vertical;
    min-height: 120px;
}

.hello-child-contact-form__group.has-error .hello-child-contact-form__control {
    border-bottom-color: #232323;
}

.hello-child-contact-form__error {
    margin-top: 6px;
    font-size: 13px;
    color: #232323;
}

.hello-child-contact-form__error.is-hidden {
    display: none;
}

.hello-child-contact-form__actions {
    margin-top: 24px;
}

.hello-child-contact-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 16px;
    background: #EEEEEE!important;
    color: #212529!important;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hello-child-contact-form__submit:hover {
    background: #b2b1b1;
}

.hello-child-contact-form__submit:active {
    transform: translateY(1px);
}

.hello-child-contact-form__notice {
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
}

.hello-child-contact-form__notice--success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #bbf7d0;
}

.hello-child-contact-form__notice--error {
    background: rgba(248, 113, 113, 0.16);
    border: 1px solid rgba(248, 113, 113, 0.45);
    color: #fecaca;
}

.hello-child-contact-form__group .hello-child-contact-form__control:-webkit-autofill,
.hello-child-contact-form__group .hello-child-contact-form__control:-webkit-autofill:hover,
.hello-child-contact-form__group .hello-child-contact-form__control:-webkit-autofill:focus,
.hello-child-contact-form__group .hello-child-contact-form__control:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(15, 23, 42, 0.1) inset;
    -webkit-text-fill-color: #f8fafc;
    transition: background-color 5000s ease-in-out 0s;
}