/* Ajustes del backend sobre la plantilla Gettree (no vienen de web-dos/) */

/* El título de página pasa de <div> a <h1> (SEO): mismo aspecto */
h1.page-title-heading { margin: 0; }

/* Campo trampa anti-spam de los formularios */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Mensaje de estado de los formularios (enviando / enviado / error) */
.form-status { margin: 12px 0 0; font-size: 15px; }
.form-status.is-ok { color: #0a4e1f; }
.form-status.is-error { color: #c0392b; }
.widgets-subcribes .form-status, .subcribe-box .form-status { color: #fff; }

/* Mapa de la página de contacto (iframe en lugar del mapa de Google con clave de la plantilla) */
.themesflat-map iframe { display: block; width: 100%; border: 0; }
h1.heading-content-box { margin: 0; }

/* ---- Cabecera (2026-11-27) ------------------------------------------------
   El logo de Cintia es cuadrado (2000x2000) y la plantilla espera uno apaisado:
   se ajusta a la altura de la barra y se centra en vertical. Sin lupa ni carrito,
   el menú ocupa el espacio libre y cabe en una sola línea. */
@media (min-width: 992px) {
    .header-wrap-home1,
    .header-style2 .header-wrap {
        display: flex;
        align-items: center;
    }
    .header-wrap-home1 > [class*="col-md-"],
    .header-style2 .header-wrap > [class*="col-md-"] {
        float: none;
        width: auto;
        max-width: none;
    }
    .header-wrap-home1 > .col-md-6,
    .header-style2 .header-wrap > .col-md-6 {
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
    }
    #header .inner-header,
    #header .logo-header {
        display: flex;
        align-items: center;
        height: 100%;
    }
    #header .logo-header img {
        height: 112px;
        width: auto;
        max-width: none;
        display: block;
        margin: 4px 0;
    }
    #header .site-header-right,
    #header .header-inner {
        float: none;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    #mainnav .menu { white-space: nowrap; }
}
/* Móvil: logo proporcionado dentro de la barra */
@media (max-width: 991px) {
    #header .logo-header img { max-height: 64px; width: auto; }
}

/* ---- Ficha de servicio (2026-11-27) ---------------------------------------- */
/* La plantilla pone "BY" delante de la firma de la frase destacada */
.flat-service-details .name-author::before { content: none; }
/* Botones de la caja lateral: sin partir el texto; si no caben juntos, uno debajo de otro */
.flat-service-details .services-details-case-studio > span { display: inline-block; margin: 0 0 8px; }
.flat-service-details .button-services { display: inline-block; white-space: nowrap; line-height: 1.2; }

/* ---- Pie (2026-11-27) ---------------------------------------------------- */
/* La columna Blog llevaba margen negativo y se montaba sobre la lista de servicios */
.footer .widgets-menu-2 { margin-left: 0; margin-right: 10%; }
.footer .widgets-menu-1 { padding-right: 24px; }
/* Logo del pie: el de Cintia es oscuro, así que va sobre fondo blanco */
.footer .logo-footer { background-color: #fff; display: flex; align-items: center; justify-content: center; }
.footer .logo-footer img { max-width: 100%; max-height: 110px; width: auto; height: auto; }

/* ---- Revisión UX/UI (2026-11-27, 2ª tanda) ------------------------------- */
/* Desplegables del menú: fondo blanco, más anchos (sin cortar los nombres largos) y más aireados */
#mainnav .menu > li > .sub-menu {
    width: auto;
    min-width: 280px;
    padding: 8px 0;
    background-color: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 14px 30px rgba(28, 60, 30, 0.14);
}
#mainnav .menu > li > .sub-menu > li > a {
    padding: 0 28px 0 22px;
    line-height: 50px;
    font-size: 17px;
    white-space: nowrap;
    transition: background-color .2s, color .2s, padding-left .2s;
}
#mainnav .menu > li > .sub-menu > li:hover > a,
#mainnav .menu > li > .sub-menu > .current-item > a {
    padding-left: 28px;
}

/* Sobre nosotros (portada): la plantilla fija la altura de las dos cajas (70px) y el texto se montaba */
.flat-about .about-box-nd1 { height: auto; width: auto; }
.flat-about .about-box-nd1:first-child { margin-bottom: 28px; }
.flat-about .about-desc p { line-height: 26px; }

/* Testimonios: todas las tarjetas a la misma altura */
.flat-testimonials .owl-stage { display: flex; }
.flat-testimonials .owl-item { display: flex; }
/* Owl deja unas tarjetas envueltas en .item y otras no: el envoltorio no cuenta para el layout */
.flat-testimonials .owl-item > .item { display: contents; }
.flat-testimonials .list-testimonials { display: flex; flex-direction: column; width: 100%; }
.flat-testimonials .list-testimonials > .box-item { flex: 1 1 auto; }

/* Pie: emails largos no se salen de la caja de contacto */
.footer .footer-contact-info .heading-16px-rubik { overflow-wrap: anywhere; }

/* La barra de la plantilla mide 100px fijos: con el logo más grande crece con él */
@media (min-width: 992px) {
    #header.header,
    #header .header-wrap-home1,
    .header-style2 .header-wrap { height: auto; }
    #header .logo-header img { height: 104px; margin: 8px 0; }
    .header-wrap-home1 > .col-md-6,
    .header-style2 .header-wrap > .col-md-6 { margin-left: 24px; }
}
/* …y el icono de comillas siempre en el borde inferior de la tarjeta */
.flat-testimonials .list-testimonials > .box-item { display: flex; flex-direction: column; }
.flat-testimonials .box-item .icon-box { margin-top: auto; align-self: center; left: auto; }

/* ---- Testimonios de "Sobre nosotros" (2026-11-27, 3ª tanda) ---------------
   La plantilla ancla el carrusel abajo (position:absolute; bottom) pensando en textos cortos:
   con los testimonios reales las tarjetas crecían hacia arriba y tapaban el título.
   En escritorio: rejilla con el título arriba a la izquierda, la ilustración a la derecha y las
   tarjetas debajo del título (montadas sobre la ilustración, como en la plantilla). */
@media (min-width: 992px) {
    .flat-testimonials-home2 .container > .row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .flat-testimonials-home2 .container > .row::before,
    .flat-testimonials-home2 .container > .row::after { display: none; }
    .flat-testimonials-home2 .container > .row > [class*="col-"] { float: none; width: auto; }
    .flat-testimonials-home2 .container > .row > .col-md-5 { grid-column: 1 / 6; grid-row: 1; }
    .flat-testimonials-home2 .container > .row > .col-md-7 { grid-column: 6 / 13; grid-row: 1 / 3; align-self: start; }
    .flat-testimonials-home2 .container > .row > .col-md-8 { grid-column: 1 / 9; grid-row: 2; z-index: 2; }
    .flat-testimonials-home2 .container > .row > .col-md-12 { grid-column: 1 / 13; grid-row: 3; }
    .flat-testimonials-home2 .author-carousel { position: relative; bottom: auto; left: 0; }
}
/* Tarjetas de la misma altura */
.flat-testimonials-home2 .owl-stage { display: flex; }
.flat-testimonials-home2 .owl-item { display: flex; }
.flat-testimonials-home2 .owl-item > .item { display: flex; width: 100%; }
.flat-testimonials-home2 .testimonials-author-box { flex: 1; }
/* Móvil/tablet: el carrusel va en el flujo normal, debajo de la ilustración */
@media (max-width: 991px) {
    .flat-testimonials-home2 .author-carousel { position: relative; bottom: auto; left: auto; padding: 0; }
    .flat-testimonials-home2 .container > .row > .col-md-8 { height: auto; }
    .flat-testimonials-home2 .author-carousel .owl-stage-outer { width: 100%; }
}
