/* Ajustes propios sobre el template (logo, footer, crédito Emprende.cl) */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 90px; }

/* Variables que usa el Header estándar del estudio */
:root { --card: #fff; --border: #e5e7eb; --text: #0f172a; }
.site-header { font-family: "Plus Jakarta Sans", sans-serif; }
.site-header .container { max-width: 1140px; }

/* Con header sticky (no flotante) el hero no necesita el espacio superior del template */
.banner-style-five .banner-carousel .slide-item { padding: 120px 0 130px; }

@media only screen and (max-width: 767px) {
  .banner-style-five .banner-carousel .slide-item { padding: 70px 0 90px; }
  .banner-style-five .banner-carousel .content-box h2 { font-size: 40px; line-height: 46px; }
}

/* El header es sticky: el wrapper del template (overflow: hidden) lo rompería */
.boxed_wrapper { overflow: visible !important; overflow-x: clip !important; }

/* Llamado final: ambulancia recortada (PNG sin fondo), centrada en vertical a la izquierda.
   Su ancho crece con el espacio libre junto al texto; sin parallax para que no se corte. */
.cta-style-two .image-layer .image-1 { left: 16px; right: auto; top: 50%; bottom: auto; transform: translateY(-50%); width: min(520px, calc(50vw - 350px)); margin: 0; }
.cta-style-two .image-layer .image-1 img { display: block; width: 100%; height: auto; }
@media only screen and (max-width: 1099px) { .cta-style-two .image-layer .image-1 { display: none; } }
/* Paleta del logo: solo azul y rojo (el template traía además verde y naranja) */
.service-style-five .category-block-one:nth-child(1) .inner-box .bg-layer:before { background: linear-gradient(270deg, rgba(220, 20, 20, 0) 24%, #b80f0f 60%, #b40e0e 100%); }
.service-style-five .category-block-one:nth-child(2) .inner-box .bg-layer:before { background: linear-gradient(270deg, rgba(11, 48, 128, 0) 24%, #0B3080 60%, #0a2c76 100%); }
.service-style-five .category-block-one:nth-child(3) .inner-box .bg-layer:before { background: linear-gradient(270deg, rgba(220, 20, 20, 0) 24%, #b80f0f 60%, #b40e0e 100%); }
.processing-block:nth-child(n) .processing-block-four .inner-box { border-color: var(--secondary-color); }
.processing-block:nth-child(n) .processing-block-four .inner-box .count-text { background: var(--secondary-color); }
.processing-block:nth-child(2) .processing-block-four .inner-box { border-color: var(--theme-color); }
.processing-block:nth-child(2) .processing-block-four .inner-box .count-text { background: var(--theme-color); }
/* Preguntas frecuentes en azul, para equilibrar el rojo */
.faq-style-two .bg-layer:before { background: var(--secondary-color) !important; }


/* Hero: foto a todo el ancho con filtro azul en la mitad del título */
.banner-style-five .banner-carousel .slide-item { background: var(--secondary-color); min-height: 640px; display: flex; align-items: center; }
.banner-style-five .slide-item .auto-container { position: relative; z-index: 2; width: 100%; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-repeat: no-repeat; }
.hero-bg-1 { background-position: 72% center; }
.hero-bg-2 { background-position: right center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,48,128,.96) 0%, rgba(11,48,128,.9) 32%, rgba(11,48,128,.55) 50%, rgba(11,48,128,0) 68%); }
@media only screen and (max-width: 991px) { .hero-bg::after { background: rgba(11,48,128,.8); } }
/* Los puntos 01/02 verticales se montan sobre el texto en pantallas medianas */
@media only screen and (max-width: 1399px) { .banner-style-five .banner-carousel .owl-dots { display: none; } }

/* Botón de WhatsApp (contacto y preguntas frecuentes) */
.boxed_wrapper a.cta-wa.cta-wa { display: inline-flex; align-items: center; gap: 14px; padding: 10px 26px 10px 10px; border: 0; border-radius: 999px; background: #fff; color: var(--secondary-color); font-size: 18px; line-height: 1.3; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45); transition: transform .2s ease, box-shadow .2s ease; }
.boxed_wrapper a.cta-wa.cta-wa::before, .boxed_wrapper a.cta-wa.cta-wa::after { content: none; }
.boxed_wrapper a.cta-wa.cta-wa:hover, .boxed_wrapper a.cta-wa.cta-wa:focus-visible { color: var(--secondary-color); transform: translateY(-3px); box-shadow: 0 20px 36px -12px rgba(0,0,0,.5); }
.cta-wa__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #25D366; color: #fff; }
.cta-wa__arrow { transition: transform .2s ease; }
.cta-wa:hover .cta-wa__arrow { transform: translateX(4px); }
.faq-contact p { margin: 0 0 14px; color: #fff; font-size: 20px; font-weight: 600; }


/* "Por qué elegirnos": las 3 tarjetas con la misma altura y el botón alineado abajo */
.chooseus-section .chooseus-block { display: flex; }
.chooseus-section .chooseus-block-one { display: flex; width: 100%; }
.chooseus-section .chooseus-block-one .inner-box { display: flex; flex-direction: column; align-items: center; width: 100%; }
.chooseus-section .chooseus-block-one .inner-box .btn-box { margin-top: auto; }

/* "Cómo solicitar": tarjetas siempre de la misma altura en cada fila */
.processing-style-three .processing-block { display: flex; }
.processing-style-three .processing-block-four { display: flex; width: 100%; }
.processing-style-three .processing-block-four .inner-box { width: 100%; height: calc(100% - 30px); }

/* Par de botones: WhatsApp + llamar por teléfono */
.contact-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.boxed_wrapper .cta-call .cta-wa__icon { background: var(--theme-color); }

/* Hero: todas las diapositivas con la altura de la más alta */
.banner-style-five .banner-carousel .owl-stage { display: flex; align-items: stretch; }
.banner-style-five .banner-carousel .owl-item { display: flex; }
.banner-style-five .banner-carousel .slide-item { width: 100%; }

/* Hero: header + hero caben en una pantalla; el texto se achica en pantallas bajas */
.banner-style-five .banner-carousel .slide-item { height: calc(100svh - 73px); min-height: 460px; max-height: 760px; padding: 20px 0; }
.banner-style-five .banner-carousel .content-box .upper-text { margin-bottom: clamp(10px, 2vh, 20px); }
.banner-style-five .banner-carousel .content-box h2 { font-size: clamp(32px, min(4.6vw, 7.6vh), 64px); line-height: 1.1; margin-bottom: clamp(10px, 2vh, 19px); }
.banner-style-five .banner-carousel .content-box p { font-size: clamp(15px, 2.3vh, 18px); line-height: 1.55; margin-bottom: clamp(16px, 3.5vh, 40px); }
@media only screen and (max-width: 767px) {
  .banner-style-five .banner-carousel .content-box h2 { font-size: clamp(28px, min(9vw, 5.2vh), 40px); line-height: 1.12; }
  .banner-style-five .banner-carousel .content-box p { font-size: 15px; }
  .banner-style-five .contact-actions { gap: 10px; }
  .boxed_wrapper .banner-style-five a.cta-wa.cta-wa { padding: 6px 16px 6px 6px; gap: 8px; font-size: 15px; }
  .banner-style-five .cta-wa__icon { width: 38px; height: 38px; }
}

/* Móvil: el texto del hero usa todo el ancho y los botones de contacto van a lo ancho */
@media only screen and (max-width: 767px) {
  .banner-style-five .banner-carousel .content-box { padding: 0 !important; margin: 0; width: 100%; }
  .banner-style-five .banner-carousel .auto-container { padding-left: 20px; padding-right: 20px; }
  .banner-style-five .banner-carousel .content-box h2 { font-size: clamp(30px, min(10vw, 5.8vh), 44px); }
  .contact-actions { flex-direction: column; align-items: stretch; width: 100%; }
  .boxed_wrapper .contact-actions a.cta-wa.cta-wa { display: flex; justify-content: center; position: relative; width: 100%; min-height: 52px; padding: 6px 52px; }
  .boxed_wrapper .contact-actions .cta-wa__icon { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); }
}

/* Hero con una sola foto: sin indicadores */
.banner-style-five .banner-carousel .owl-dots { display: none !important; }

/* Sello "Atención 24/7" del hero */
.banner-style-five .banner-carousel .content-box .upper-text.badge-247 { display: inline-flex; align-items: center; gap: 10px; padding: 10px 22px; border: 2px solid #fff; border-radius: 999px; background: var(--theme-color); color: #fff; font-size: 17px; line-height: 1.2; font-weight: 700; box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); }
.badge-247 strong { font-size: 24px; line-height: 1; }
.badge-247__dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; animation: pulso-247 1.6s infinite; }
@keyframes pulso-247 { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.75); } 100% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .badge-247__dot { animation: none; } }

/* Sello circular "Resolución sanitaria" (SVG, sin depender de JS) */
.about-style-two .rotate-box .sello-texto { position: absolute; inset: 0; width: 100%; height: 100%; animation: sello-gira 22s linear infinite; }
.sello-texto text { fill: var(--secondary-color); font-size: 13px; font-weight: 700; letter-spacing: 1px; }
.about-style-two .rotate-box .icon-box { position: relative; }
@keyframes sello-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .about-style-two .rotate-box .sello-texto { animation: none; } }

/* Nosotros: quedan 2 pestañas, repartidas en partes iguales */
.about-style-two .tab-btn-box .tab-btns { display: flex; }
.about-style-two .tab-btn-box .tab-btns .tab-btn { flex: 1; text-align: center; }

.about-style-two .tabs-content .inner-box p + p { margin-top: -8px; font-weight: 700; color: var(--secondary-color); }

/* El sello va en el espacio entre la foto y el texto, sin tapar el título */
@media only screen and (min-width: 1201px) {
  .about-style-two .rotate-box { right: auto; left: calc(50% - 124px); top: 120px; transform: scale(.88); z-index: 2; }
}

/* Los dos números, cada uno con llamada y WhatsApp */
.numeros { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; color: #fff; font-size: 17px; position: relative; z-index: 2; }
.numeros li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.numeros strong { min-width: 160px; }
.boxed_wrapper .cta-section .text-box .numeros a { display: inline-block; padding: 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.6); color: #fff; font-size: 15px; line-height: 1.5; font-weight: 600; }
.boxed_wrapper .cta-section .text-box .numeros a::before, .boxed_wrapper .cta-section .text-box .numeros a::after { content: none; }
