/* =====================================================================
   T & I Lath Plaster – ajustes visuales de la réplica (Test 01)
   Solo detalles que Elementor no ofrece como control. Las clases ti-*
   se asignan en Elementor › Avanzado › Clases CSS.
   Valores tomados de assets/css/style.css del sitio original.
   ===================================================================== */

/* Párrafos de los Text Editor (Bootstrap reboot del original) */
.ti-text p { margin: 0 0 15px !important; }
.ti-text p:last-child { margin-bottom: 0 !important; }
.ti-service-text p { margin-bottom: 0 !important; }

/* Botones: transición del original (0.5s) */
.ti-btn .elementor-button { transition: 0.5s all ease; }

/* Sub-texto del hero con los dos cuadritos (blanco + azul) */
.ti-subtext .elementor-heading-title { position: relative; display: inline-block; }
.ti-subtext .elementor-heading-title::before,
.ti-subtext .elementor-heading-title::after { content: ''; position: absolute; top: 0; width: 5px; height: 5px; }
.ti-subtext .elementor-heading-title::before { right: -9px; background-color: #fff; }
.ti-subtext .elementor-heading-title::after { right: -16px; background-color: #0e4194; }

/* Hero: puntos verticales a la derecha (owl-dots del original) */
.ti-hero .swiper-pagination,
.ti-hero .swiper-pagination-bullets { z-index: 5; }
@media (min-width: 992px) {
	.ti-hero .swiper-pagination,
	.ti-hero .swiper-pagination-bullets {
		left: auto !important; right: 80px !important; top: 45% !important; bottom: auto !important;
		width: 40px !important; display: flex; flex-direction: column; align-items: center;
	}
}
@media (max-width: 991px) {
	.ti-hero .swiper-pagination,
	.ti-hero .swiper-pagination-bullets { bottom: 65px !important; }
}
.ti-hero .swiper-pagination-bullet { width: 8px; height: 8px; margin: 5px 7px !important; background: #fff; opacity: 1; }
.ti-hero .swiper-pagination-bullet-active { position: relative; width: 22px; height: 22px; background: transparent; border: 1px solid #fff; }
.ti-hero .swiper-pagination-bullet-active::before { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }

/* Rangos de tamaño del original que no tienen breakpoint en Elementor */
@media (min-width: 992px) and (max-width: 1199px) {
	.ti-hero-title .elementor-heading-title { font-size: 65px !important; line-height: 85px !important; }
	.ti-hero-slide { min-height: 667px !important; }
	.ti-about-content { width: 450px !important; }
	.ti-counter .elementor-counter-number-wrapper { font-size: 55px !important; line-height: 55px !important; }
}
@media (min-width: 1199px) and (max-width: 1350px) {
	.ti-about-content { width: 545px !important; }
}
@media (min-width: 1800px) {
	.ti-hero-title { max-width: 890px !important; width: 890px !important; }
	.ti-hero-title .elementor-heading-title { font-size: 95px !important; }
	.ti-pad-xl { padding-left: 80px !important; padding-right: 80px !important; }
}

/* Navbar: sombra al quedar fija (.menu-shrink del original) */
.ti-navbar { transition: box-shadow 0.5s ease; }
.ti-navbar.elementor-sticky--effects { box-shadow: 0 0 20px 0 #dddddd87; }
/* Submenú: 250px, separadores discontinuos */
.ti-nav .elementor-nav-menu--main .sub-menu { min-width: 250px !important; box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.05); }
.ti-nav .elementor-nav-menu--main .sub-menu li { border-bottom: 1px dashed #00245a47; }
.ti-nav .elementor-nav-menu--main .sub-menu li:last-child { border-bottom: 0; }

/* Barra superior: contactos apilados en tablet/móvil (como el original ≤991) */
@media (max-width: 991px) {
	.ti-topbar-contacts .elementor-icon-list-items.elementor-inline-items { flex-direction: column; align-items: center; }
	.ti-topbar-contacts .elementor-icon-list-items.elementor-inline-items .elementor-icon-list-item { margin: 0 0 5px !important; }
}

/* Contadores: alineados a la izquierda en escritorio, "+" más fino */
@media (min-width: 992px) {
	.ti-counter .elementor-counter { align-items: flex-start; }
	.ti-counter .elementor-counter-number-wrapper { justify-content: flex-start; }
	.ti-counter .elementor-counter-title { text-align: left; justify-content: flex-start; }
}
.ti-counter .elementor-counter-number-suffix { font-weight: 400; }

/* Tarjetas de servicio: sube 10px y el texto pasa a blanco al hover */
.ti-service-card { transition: 0.5s all ease; }
.ti-service-card:hover { transform: translateY(-10px); }
.ti-service-card .elementor-heading-title,
.ti-service-card .elementor-heading-title a,
.ti-service-card .elementor-widget-text-editor { transition: 0.5s all ease; }
.ti-service-card:hover .elementor-heading-title,
.ti-service-card:hover .elementor-heading-title a,
.ti-service-card:hover .elementor-widget-text-editor { color: #fff !important; }
.ti-service-title .elementor-heading-title a:hover { color: #0e4194 !important; }

/* Proyectos: degradado azul + icono de enlace al hover */
.ti-project { position: relative; overflow: hidden; transition: 0.5s all ease; }
.ti-project img { display: block; width: 100%; }
.ti-project::after {
	content: ''; position: absolute; left: 0; bottom: -25px; width: 100%; height: 100%; pointer-events: none; z-index: 1;
	background: linear-gradient(0deg, rgba(0, 36, 90, 0.572587) 20%, rgba(255, 255, 255, 0) 59%);
	opacity: 0; visibility: hidden; transition: 0.5s all ease;
}
.ti-project:hover { transform: translateY(-10px); }
.ti-project:hover::after { opacity: 1; visibility: visible; bottom: 0; }
.ti-project .ti-project-link { z-index: 2; opacity: 0; visibility: hidden; transition: 0.5s all ease; bottom: -25px !important; }
.ti-project:hover .ti-project-link { opacity: 1; visibility: visible; bottom: 30px !important; }

/* Footer */
.ti-footer-links .elementor-icon-list-item a:hover .elementor-icon-list-text,
.ti-footer-contact .elementor-icon-list-item a:hover .elementor-icon-list-text { letter-spacing: 1px; }
.ti-footer-links .elementor-icon-list-text,
.ti-footer-contact .elementor-icon-list-text { transition: 0.5s all ease; }

/* Botón "subir" flotante (el JS añade .is-visible) */
.ti-go-top { position: fixed !important; right: 0; bottom: 15px; z-index: 99; width: auto !important; opacity: 0; visibility: hidden; transition: 0.9s; }
.ti-go-top.is-visible { opacity: 1; visibility: visible; right: 15px; }

/* =====================================================================
   PÁGINAS INTERNAS (Test 01 V3) – solo clases nuevas, no afectan al Home
   ===================================================================== */

/* Espaciado de párrafos según cada sección del original */
.ti-text.ti-text-10 p { margin-bottom: 10px !important; }
.ti-text.ti-text-12 p,
.ti-text.ti-text-12 p:last-child { margin-bottom: 12px !important; }
.ti-text.ti-text-30 p,
.ti-text.ti-text-30 p:last-child { margin-bottom: 30px !important; }

/* Tarjetas que suben 10px al pasar el ratón (blog-item-three, testimonials-item) */
.ti-lift { transition: 0.5s all ease; }
.ti-lift:hover { transform: translateY(-10px); }
.ti-link-title .elementor-heading-title a { transition: 0.5s all ease; }
.ti-link-title .elementor-heading-title a:hover { color: #0e4194 !important; }

/* Barra lateral "All Services" (widget-area .categories) */
.ti-sidebar-list .elementor-icon-list-item { background-color: #fff; padding: 12px 15px !important; transition: 0.5s all ease; }
.ti-sidebar-list .elementor-icon-list-item > a,
.ti-sidebar-list .elementor-icon-list-item > span { display: flex; flex-direction: row-reverse; justify-content: space-between; width: 100%; }
.ti-sidebar-list .elementor-icon-list-item:hover { background-color: #0e4194; }

/* Formulario de contacto (help-area .help-item) con iconos dentro de los campos */
.ti-contact-form .elementor-field-textual { min-height: 50px; padding-left: 40px !important; background-repeat: no-repeat; background-position: 15px 16px; background-size: 18px 18px; transition: 0.5s all ease; }
.ti-contact-form .elementor-field-textual:focus { border-color: #00245a !important; box-shadow: none; }
.ti-contact-form textarea.elementor-field-textual { padding-top: 12px; }
.ti-contact-form .elementor-field-group-name .elementor-field-textual { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565969' stroke-width='2'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4 4-6 8-6s8 2 8 6'/></svg>"); }
.ti-contact-form .elementor-field-group-email .elementor-field-textual { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565969' stroke-width='2'><rect x='3' y='5' width='18' height='14' rx='2'/><path d='M3 7l9 6 9-6'/></svg>"); }
.ti-contact-form .elementor-field-group-phone_number .elementor-field-textual { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565969' stroke-width='2'><path d='M5 4h4l2 5-2.5 1.5a11 11 0 0 0 5 5L15 13l5 2v4a2 2 0 0 1-2 2A16 16 0 0 1 3 6a2 2 0 0 1 2-2z'/></svg>"); }
.ti-contact-form .elementor-field-group-message .elementor-field-textual { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565969' stroke-width='2'><path d='M4 5h16v11H8l-4 4z'/></svg>"); }
.ti-contact-form .elementor-button { min-height: 50px; padding-top: 0; padding-bottom: 0; transition: 0.5s all ease; }

/* Tarjeta de reseñas: botón debajo en móvil (≤450px en el original) */
@media (max-width: 450px) {
	.ti-reviews-card .elementor-widget-button { margin-top: 16px; }
}
