/*!
Theme Name: Hostinger AI theme
Author: Hostinger
Author URI: https://hostinger.com
Details URI: https://hostinger.com
Description: Hostinger AI theme built with SEO and mobile responsiveness in mind, this theme ensures optimal performance and a better online presence.
Version: 2.1.1
Tested up to: 7.0
Requires at least: 5.6
Requires PHP: 8.1
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: hostinger-ai-theme
Tags: ai-theme
*/

/* Premium personal-brand layer — Dr. José Marín */
:root {
  --jm-ivory: #f7f4ef;
  --jm-paper: #fffdfa;
  --jm-ink: #171715;
  --jm-muted: #6f6a63;
  --jm-champagne: #aa8b68;
  --jm-champagne-soft: #e7dccf;
  --jm-line: rgba(23, 23, 21, .11);
  --jm-shadow: 0 24px 70px rgba(28, 24, 20, .08);
  --jm-shadow-soft: 0 12px 36px rgba(28, 24, 20, .06);
  --wp--preset--color--page-background: var(--jm-paper);
  --wp--preset--color--page-text: var(--jm-ink);
  --wp--preset--color--header-background: rgba(255, 253, 250, .92);
  --wp--preset--color--header-text: var(--jm-ink);
  --wp--preset--color--color1: var(--jm-ivory);
  --wp--preset--color--color2: var(--jm-ink);
  --wp--preset--color--color3: var(--jm-ink);
}

html { scroll-behavior: smooth; }

body {
  background: var(--jm-paper);
  color: var(--jm-ink);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
}

body, p, li, .wp-block-navigation-item__label {
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.hostinger-ai-title,
.hostinger-ai-service-title {
  color: var(--jm-ink);
  font-family: Prata, Georgia, serif;
  font-weight: 400;
  letter-spacing: -.035em;
}

p { color: var(--jm-muted); }

a { text-underline-offset: .2em; }

/* Header: understated luxury + personal brand */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--jm-line);
  background: rgba(255, 253, 250, .88);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  backdrop-filter: blur(18px) saturate(145%);
}

.site-header .hostinger-ai-menu {
  background: transparent !important;
}

.site-header .hostinger-ai-menu-wrapper {
  max-width: 1240px;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

.site-header .wp-block-site-logo img {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover;
  border: 1px solid var(--jm-line);
  box-shadow: none;
}

.hostinger-ai-site-title {
  margin: 0 !important;
  line-height: 1.05;
}

.hostinger-ai-site-title a {
  display: inline-flex;
  flex-direction: column;
  color: var(--jm-ink) !important;
  font-size: 0 !important;
  text-decoration: none !important;
}

.hostinger-ai-site-title a::before {
  content: "Dr. José Marín";
  font-family: Prata, Georgia, serif;
  font-size: clamp(17px, 1.6vw, 22px);
  letter-spacing: -.025em;
}

.hostinger-ai-site-title a::after {
  content: "ORTODONCIA · ARMENIA";
  margin-top: 5px;
  color: var(--jm-muted);
  font-family: Manrope, sans-serif;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .18em;
}

.hostinger-ai-site-navigation .wp-block-navigation-item__content {
  position: relative;
  padding: 8px 2px !important;
  color: var(--jm-ink) !important;
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
}

.hostinger-ai-site-navigation .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  background: var(--jm-champagne);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.hostinger-ai-site-navigation .wp-block-navigation-item__content:hover::after,
.hostinger-ai-site-navigation .current-menu-item .wp-block-navigation-item__content::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Premium header refinements */
.jm-brand-lockup { gap: 12px !important; align-items: center; }
.jm-header-actions { gap: 18px !important; }
.jm-header-cta-wrap { margin-left: 4px !important; }
.jm-header-cta .wp-block-button__link {
  padding: 11px 18px !important;
  border: 1px solid var(--jm-ink) !important;
  border-radius: 999px !important;
  background: var(--jm-ink) !important;
  color: #fffdfa !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  letter-spacing: .01em;
}
.jm-header-cta .wp-block-button__link:hover {
  background: transparent !important;
  color: var(--jm-ink) !important;
}
@media (max-width: 980px) {
  .site-header .hostinger-ai-menu-wrapper { padding-top: 10px !important; padding-bottom: 10px !important; }
  .hostinger-ai-site-title a::before { font-size: 17px; }
  .hostinger-ai-site-title a::after { font-size: 8px; letter-spacing: .14em; }
  .jm-header-cta-wrap { display: none !important; }
  .hostinger-ai-site-navigation .wp-block-navigation__responsive-container-open { display: flex !important; }
}
@media (max-width: 560px) {
  .site-header .wp-block-site-logo img { width: 46px !important; height: 46px !important; }
  .hostinger-ai-site-title a::before { font-size: 15px; }
  .hostinger-ai-site-title a::after { margin-top: 3px; font-size: 7px; }
  .jm-brand-lockup { gap: 9px !important; }
}

/* Hero */
.hostinger-ai-about-us-2 {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 89% 11%, rgba(170, 139, 104, .09), transparent 30%),
    linear-gradient(180deg, #fffdfa 0%, #f8f4ef 100%);
}

.hostinger-ai-about-us-2 > .alignwide {
  max-width: 1240px;
  min-height: min(760px, 78vh);
  align-items: center;
  gap: clamp(30px, 5vw, 76px);
  padding-top: clamp(56px, 7vw, 104px) !important;
  padding-bottom: clamp(56px, 7vw, 104px) !important;
}

.hostinger-ai-about-us-2 .wp-block-gallery,
.hostinger-ai-about-us-2 figure {
  margin: 0;
}

.hostinger-ai-about-us-2 .wp-block-image img {
  aspect-ratio: 4 / 5;
  width: 100%;
  max-height: 650px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px 56px 4px 56px !important;
  box-shadow: var(--jm-shadow);
}

.hostinger-ai-about-us-2 .hostinger-ai-title {
  max-width: 720px;
  font-size: clamp(42px, 5.2vw, 74px) !important;
  line-height: 1.02 !important;
}

.hostinger-ai-about-us-2 .hostinger-ai-title::before {
  content: "DR. JOSÉ MARÍN · ORTODONCIA";
  display: block;
  margin-bottom: 20px;
  color: var(--jm-champagne);
  font-family: Manrope, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

.hostinger-ai-about-us-2 .hostinger-ai-description {
  max-width: 610px;
  color: #5d5953;
  font-size: clamp(17px, 1.5vw, 20px) !important;
  line-height: 1.65;
}

.hostinger-ai-about-us-2 .wp-block-paragraph:last-child {
  max-width: 590px;
  margin-top: 22px;
  color: #777169;
  font-size: 14px;
  line-height: 1.7;
}

/* Buttons */
.wp-block-button__link,
.wp-element-button,
.hostinger-ai-cta-button .wp-block-button__link {
  border: 1px solid var(--jm-ink) !important;
  border-radius: 999px !important;
  background: var(--jm-ink) !important;
  color: #fffdfa !important;
  box-shadow: 0 10px 26px rgba(23, 23, 21, .13) !important;
  font-family: Manrope, sans-serif;
  font-size: 13px !important;
  font-weight: 650;
  letter-spacing: .015em;
  transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
  border-color: var(--jm-champagne) !important;
  background: var(--jm-champagne) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(109, 84, 59, .18) !important;
}

/* Editorial service split */
.hostinger-ai-about-us-3 {
  background: var(--jm-paper);
  padding-top: clamp(84px, 8vw, 132px);
  padding-bottom: clamp(84px, 8vw, 132px);
}

.hostinger-ai-about-us-3 > .alignwide {
  max-width: 1180px;
  gap: clamp(38px, 6vw, 92px);
  align-items: center;
}

.hostinger-ai-about-us-3 .hostinger-ai-service-image img {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  border-radius: 44px 4px 44px 4px !important;
  box-shadow: var(--jm-shadow-soft);
}

.hostinger-ai-about-us-3 .hostinger-ai-service-title {
  font-size: clamp(36px, 4vw, 58px) !important;
  line-height: 1.08;
}

.hostinger-ai-about-us-3 .hostinger-ai-service-description {
  color: var(--jm-muted);
  font-size: 16px !important;
  line-height: 1.8;
}

.hostinger-ai-about-us-3 .hostinger-ai-service-description a,
.entry-content p a:not(.wp-block-button__link) {
  color: var(--jm-ink);
  text-decoration-color: rgba(170, 139, 104, .58);
  text-decoration-thickness: 1px;
}

/* Generic premium section treatment */
.entry-content > .wp-block-group.alignwide,
.entry-content > .wp-block-columns.alignwide {
  max-width: 1180px;
}

.entry-content > .wp-block-group.alignwide.has-background {
  border: 1px solid var(--jm-line);
  border-radius: 28px;
  box-shadow: var(--jm-shadow-soft);
}

.entry-content h2 {
  font-size: clamp(32px, 3.8vw, 52px);
  line-height: 1.12;
}

.entry-content .wp-block-image img {
  transition: transform .45s cubic-bezier(.2,.75,.2,1), box-shadow .45s ease;
}

.entry-content .wp-block-image:hover img {
  transform: translateY(-3px);
  box-shadow: var(--jm-shadow-soft);
}

/* Consultorio gallery */
.entry-content > .wp-block-group.alignwide.has-page-background-background-color {
  position: relative;
  overflow: hidden;
  background: var(--jm-ivory) !important;
  padding: clamp(52px, 6vw, 82px) !important;
}

.entry-content > .wp-block-group.alignwide.has-page-background-background-color::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 70px;
  height: 1px;
  background: var(--jm-champagne);
  transform: translateX(-50%);
}

.entry-content > .wp-block-group.alignwide.has-page-background-background-color .wp-block-image img {
  min-height: 280px;
  object-fit: cover;
  border-radius: 18px !important;
}

/* Personal brand portrait section */
.entry-content > .wp-block-group.alignwide.has-page-background-background-color:last-of-type {
  background: #f3eee7 !important;
}

.entry-content > .wp-block-group.alignwide.has-page-background-background-color:last-of-type .wp-block-columns {
  gap: clamp(36px, 6vw, 78px);
}

.entry-content > .wp-block-group.alignwide.has-page-background-background-color:last-of-type .wp-block-image img {
  border-radius: 4px 40px 4px 40px !important;
}

/* Google reviews */
.entry-content > .wp-block-group.alignwide.has-color-1-background-color {
  margin-top: clamp(72px, 8vw, 120px);
  margin-bottom: clamp(72px, 8vw, 120px);
  padding: clamp(50px, 6vw, 76px) !important;
  border-radius: 28px;
  background: var(--jm-ink) !important;
  color: #fffdfa !important;
  box-shadow: var(--jm-shadow);
}

.entry-content > .wp-block-group.alignwide.has-color-1-background-color h2,
.entry-content > .wp-block-group.alignwide.has-color-1-background-color > p {
  color: #fffdfa !important;
}

.entry-content > .wp-block-group.alignwide.has-color-1-background-color > p {
  opacity: .72;
}

.ti-widget .ti-review-item > .ti-inner {
  border: 1px solid rgba(255, 255, 255, .12) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, .96) !important;
  box-shadow: none !important;
}

/* Footer */
.site-footer.wp-block-template-part,
footer.site-footer.wp-block-template-part {
  display: none !important;
}

/* Motion: restrained */
@media (prefers-reduced-motion: no-preference) {
  .hostinger-ai-about-us-2 .hostinger-ai-title,
  .hostinger-ai-about-us-2 .hostinger-ai-description,
  .hostinger-ai-about-us-2 .wp-block-buttons {
    animation: jmReveal .7s both;
  }
  .hostinger-ai-about-us-2 .hostinger-ai-description { animation-delay: .09s; }
  .hostinger-ai-about-us-2 .wp-block-buttons { animation-delay: .16s; }
}

@keyframes jmReveal {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 781px) {
  .site-header .hostinger-ai-menu-wrapper {
    padding: 10px 16px !important;
  }

  .site-header .wp-block-site-logo img {
    width: 46px !important;
    height: 46px !important;
  }

  .hostinger-ai-site-title a::before { font-size: 16px; }
  .hostinger-ai-site-title a::after { font-size: 8px; letter-spacing: .14em; }

  .hostinger-ai-about-us-2 > .alignwide {
    min-height: auto;
    gap: 34px;
    padding: 34px 20px 58px !important;
  }

  .hostinger-ai-about-us-2 .wp-block-image img {
    aspect-ratio: 16 / 12;
    max-height: 420px;
    border-radius: 4px 34px 4px 34px !important;
  }

  .hostinger-ai-about-us-2 .hostinger-ai-title {
    font-size: clamp(38px, 11vw, 54px) !important;
  }

  .hostinger-ai-about-us-2 .wp-container-content-5e2576f9 {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  .hostinger-ai-about-us-3 {
    padding: 70px 20px;
  }

  .hostinger-ai-about-us-3 > .alignwide { gap: 34px; }

  .entry-content > .wp-block-group.alignwide.has-page-background-background-color,
  .entry-content > .wp-block-group.alignwide.has-color-1-background-color {
    margin-right: 16px !important;
    margin-left: 16px !important;
    padding: 40px 22px !important;
    border-radius: 20px;
  }

  .entry-content h2 { font-size: clamp(30px, 8.5vw, 42px); }
}

/* Second refinement pass: stronger personal brand and bespoke footer */
.site-footer { display: none !important; }

.hostinger-ai-about-us-2::after {
  content: "JOSÉ MARÍN";
  position: absolute;
  right: -1vw;
  bottom: -4vw;
  color: rgba(23,23,21,.035);
  font-family: Prata, Georgia, serif;
  font-size: clamp(90px, 16vw, 240px);
  line-height: .8;
  letter-spacing: -.07em;
  pointer-events: none;
  white-space: nowrap;
}

.hostinger-ai-about-us-2 .wp-block-buttons::after {
  content: "Valoración personalizada · Armenia, Quindío";
  align-self: center;
  margin-left: 18px;
  color: #81796f;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.hostinger-ai-about-us-3 .wp-block-column:first-child { position: relative; }
.hostinger-ai-about-us-3 .wp-block-column:first-child::after {
  content: "01";
  position: absolute;
  right: 24px;
  bottom: 18px;
  color: rgba(255,255,255,.92);
  font-family: Prata, Georgia, serif;
  font-size: 72px;
  line-height: 1;
  text-shadow: 0 4px 24px rgba(0,0,0,.18);
}

.hostinger-ai-about-us-3 .wp-block-column:last-child::before {
  content: "TRATAMIENTOS";
  display: block;
  margin-bottom: 18px;
  color: var(--jm-champagne);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
}

.entry-content > .wp-block-columns.alignwide {
  gap: clamp(14px, 2vw, 28px);
}

.entry-content > .wp-block-columns.alignwide .wp-block-image img {
  min-height: 380px;
  object-fit: cover;
}

.entry-content > .wp-block-columns.alignwide .wp-block-column:first-child .wp-block-image img {
  border-radius: 30px 4px 30px 4px !important;
}

.entry-content > .wp-block-columns.alignwide .wp-block-column:last-child .wp-block-image img {
  border-radius: 4px 30px 4px 30px !important;
}

.entry-content > .wp-block-group.alignwide.has-page-background-background-color:last-of-type h2::before {
  content: "CONOCE AL ESPECIALISTA";
  display: block;
  margin-bottom: 18px;
  color: var(--jm-champagne);
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
}

.entry-content > .wp-block-group.alignwide.has-color-1-background-color h2::before {
  content: "EXPERIENCIAS REALES";
  display: block;
  margin-bottom: 16px;
  color: #d9c0a2;
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
}

.jm-whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(23,23,21,.94);
  color: #fffdfa;
  box-shadow: 0 16px 50px rgba(23,23,21,.22);
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: transform .2s ease, background .2s ease;
}

.jm-whatsapp-float:hover {
  background: var(--jm-champagne);
  transform: translateY(-2px);
}

.jm-whatsapp-float svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.jm-premium-footer {
  margin-top: clamp(80px, 9vw, 140px);
  padding: clamp(70px, 8vw, 110px) max(24px, calc((100vw - 1180px)/2));
  background:
    radial-gradient(circle at 15% 0%, rgba(170,139,104,.14), transparent 28%),
    #171715;
  color: #fffdfa;
}

.jm-footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(180px, .65fr) minmax(220px, .8fr);
  gap: clamp(36px, 6vw, 88px);
}

.jm-footer-kicker,
.jm-footer-label {
  display: block;
  margin-bottom: 18px;
  color: #c9aa87;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.jm-footer-brand h2 {
  margin: 0 0 22px;
  color: #fffdfa;
  font-family: Prata, Georgia, serif;
  font-size: clamp(46px, 5vw, 72px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.05em;
}

.jm-footer-brand p {
  max-width: 540px;
  margin: 0 0 30px;
  color: rgba(255,253,250,.65);
  font-size: 15px;
  line-height: 1.8;
}

.jm-footer-cta,
.jm-footer-nav a,
.jm-footer-contact a,
.jm-footer-contact p {
  color: #fffdfa;
  text-decoration: none;
}

.jm-footer-cta {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(201,170,135,.75);
  font-size: 13px;
  font-weight: 650;
}

.jm-footer-nav,
.jm-footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding-top: 8px;
}

.jm-footer-nav a,
.jm-footer-contact a,
.jm-footer-contact p {
  margin: 0;
  color: rgba(255,253,250,.72);
  font-size: 13px;
  line-height: 1.6;
  transition: color .2s ease;
}

.jm-footer-nav a:hover,
.jm-footer-contact a:hover { color: #fffdfa; }

.jm-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 10px;
}

.jm-footer-social a { font-size: 11px; letter-spacing: .04em; }

.jm-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 68px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: rgba(255,253,250,.42);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 781px) {
  .hostinger-ai-about-us-2::after { display: none; }
  .hostinger-ai-about-us-2 .wp-block-buttons::after {
    width: 100%;
    margin: 12px 0 0;
    font-size: 9px;
  }

  .hostinger-ai-about-us-3 .wp-block-column:first-child::after {
    right: 12px;
    bottom: 10px;
    font-size: 46px;
  }

  .entry-content > .wp-block-columns.alignwide .wp-block-image img {
    min-height: 260px;
  }

  .jm-whatsapp-float {
    right: 14px;
    bottom: 14px;
    padding: 11px;
  }

  .jm-whatsapp-float span { display: none; }

  .jm-footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .jm-premium-footer {
    padding: 64px 22px 34px;
  }

  .jm-footer-brand h2 { font-size: 48px; }

  .jm-footer-bottom {
    flex-direction: column;
    margin-top: 48px;
  }
}

/* =========================================================
   2026 editorial redesign — stronger luxury / personal brand
   Inspired by high-end clinical editorial sites, not copied.
   ========================================================= */

body {
  background: #f4f0e9 !important;
}

/* AOS runtime removed for performance: keep former reveal blocks visible. */
.hostinger-ai-fade-up {
  opacity: 1 !important;
  transform: none !important;
}

/* Services page: turn text-heavy treatment lists into editorial cards. */
body.page-id-18 .entry-content > .wp-block-group:nth-child(2),
body.page-id-18 .entry-content > .wp-block-group:nth-child(3) {
  display: grid !important;
  gap: 0 !important;
  align-items: stretch;
}

body.page-id-18 .entry-content > .wp-block-group:nth-child(2) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.page-id-18 .entry-content > .wp-block-group:nth-child(3) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > *,
body.page-id-18 .entry-content > .wp-block-group:nth-child(3) > * {
  margin: 0 !important;
  padding-right: clamp(20px, 3vw, 34px);
  padding-left: clamp(20px, 3vw, 34px);
}

body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > h2,
body.page-id-18 .entry-content > .wp-block-group:nth-child(3) > h2,
body.page-id-18 .entry-content > .wp-block-group:nth-child(3) > h3 {
  padding-top: 34px;
  border-top: 1px solid rgba(17,17,15,.11);
  font-size: clamp(27px, 2.4vw, 36px) !important;
}

body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > p,
body.page-id-18 .entry-content > .wp-block-group:nth-child(3) > p {
  padding-top: 14px;
  padding-bottom: 14px;
  color: #696159 !important;
  line-height: 1.75;
}

/* Main orthodontic services: each heading + its two paragraphs form one column. */
body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > :nth-child(-n+3) { grid-column: 1; }
body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > :nth-child(n+4):nth-child(-n+6) { grid-column: 2; }
body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > :nth-child(n+7):nth-child(-n+9) { grid-column: 3; }
body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > :nth-child(1),
body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > :nth-child(4),
body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > :nth-child(7) { grid-row: 1; }
body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > :nth-child(2),
body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > :nth-child(5),
body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > :nth-child(8) { grid-row: 2; }
body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > :nth-child(3),
body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > :nth-child(6),
body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > :nth-child(9) { grid-row: 3; padding-bottom: 34px; }

@media (max-width: 781px) {
  body.page-id-18 .entry-content > .wp-block-group:nth-child(2),
  body.page-id-18 .entry-content > .wp-block-group:nth-child(3) {
    display: block !important;
  }

  body.page-id-18 .entry-content > .wp-block-group:nth-child(2) > *,
  body.page-id-18 .entry-content > .wp-block-group:nth-child(3) > * {
    padding-right: 0;
    padding-left: 0;
  }
}

.site-header {
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
  background: rgba(15,15,14,.94) !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}

.site-header .hostinger-ai-menu,
.site-header .hostinger-ai-menu-wrapper {
  background: transparent !important;
}

.hostinger-ai-site-title a,
.hostinger-ai-site-navigation .wp-block-navigation-item__content {
  color: #fff !important;
}

.hostinger-ai-site-title a::after {
  color: #bda98e !important;
}

.site-header .wp-block-site-logo img {
  border-color: rgba(255,255,255,.18) !important;
  border-radius: 50% !important;
}

/* Hero: fashion-editorial treatment */
.hostinger-ai-about-us-2 {
  min-height: 82vh;
  background: #11110f !important;
  color: #fff !important;
}

.hostinger-ai-about-us-2::before {
  content: "ORTODONCIA CONTEMPORÁNEA · ARMENIA";
  position: absolute;
  left: max(24px, calc((100vw - 1240px)/2));
  bottom: 26px;
  z-index: 3;
  color: rgba(255,255,255,.46);
  font-family: Manrope, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
}

.hostinger-ai-about-us-2::after {
  content: "JM" !important;
  right: 2vw !important;
  bottom: -3vw !important;
  color: rgba(255,255,255,.04) !important;
  font-size: clamp(140px, 26vw, 420px) !important;
  letter-spacing: -.08em !important;
}

.hostinger-ai-about-us-2 > .alignwide {
  width: min(1240px, calc(100% - 48px));
  min-height: 82vh !important;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr) !important;
  gap: clamp(42px, 7vw, 110px) !important;
  padding-top: clamp(54px, 6vw, 92px) !important;
  padding-bottom: clamp(90px, 8vw, 130px) !important;
}

.hostinger-ai-about-us-2 > .alignwide > .wp-block-group:first-child {
  align-self: stretch;
}

.hostinger-ai-about-us-2 .wp-block-gallery,
.hostinger-ai-about-us-2 .wp-block-gallery > figure,
.hostinger-ai-about-us-2 .wp-block-image {
  height: 100%;
}

.hostinger-ai-about-us-2 .wp-block-image img {
  height: 100% !important;
  max-height: none !important;
  min-height: 640px;
  aspect-ratio: 4 / 5.3 !important;
  border-radius: 2px !important;
  filter: saturate(.84) contrast(1.04);
  box-shadow: 0 40px 90px rgba(0,0,0,.34) !important;
}

.hostinger-ai-about-us-2 .hostinger-ai-title {
  max-width: 680px;
  color: #fff !important;
  font-size: clamp(52px, 6.2vw, 88px) !important;
  line-height: .98 !important;
  letter-spacing: -.048em !important;
}

.hostinger-ai-about-us-2 .hostinger-ai-title::before {
  margin-bottom: 28px !important;
  color: #c7ad8a !important;
  font-size: 10px !important;
  letter-spacing: .26em !important;
}

.hostinger-ai-about-us-2 .hostinger-ai-description {
  max-width: 560px !important;
  margin-top: 28px !important;
  color: rgba(255,255,255,.72) !important;
  font-size: clamp(18px, 1.45vw, 21px) !important;
  line-height: 1.72 !important;
}

.hostinger-ai-about-us-2 .wp-block-paragraph:last-child {
  color: rgba(255,255,255,.48) !important;
}

.hostinger-ai-about-us-2 .wp-block-paragraph:last-child a {
  color: #fff !important;
  text-decoration-color: #c7ad8a !important;
}

.hostinger-ai-about-us-2 .wp-block-button__link {
  min-width: 220px;
  padding: 16px 28px !important;
  border-color: #f4f0e9 !important;
  background: #f4f0e9 !important;
  color: #11110f !important;
  box-shadow: none !important;
}

.hostinger-ai-about-us-2 .wp-block-button__link:hover {
  border-color: #c7ad8a !important;
  background: #c7ad8a !important;
}

.hostinger-ai-about-us-2 .wp-block-buttons::after {
  color: rgba(255,255,255,.42) !important;
}

/* Services: oversized editorial split */
.hostinger-ai-about-us-3 {
  position: relative;
  background: #f4f0e9 !important;
  padding-top: clamp(110px, 11vw, 180px) !important;
  padding-bottom: clamp(110px, 11vw, 180px) !important;
}

.hostinger-ai-about-us-3::before {
  content: "01 / TRATAMIENTOS";
  position: absolute;
  top: 54px;
  left: max(24px, calc((100vw - 1180px)/2));
  color: #8b7359;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .24em;
}

.hostinger-ai-about-us-3 > .alignwide {
  width: min(1180px, calc(100% - 48px));
  gap: clamp(56px, 8vw, 120px) !important;
}

.hostinger-ai-about-us-3 .hostinger-ai-service-image img {
  min-height: 700px;
  border-radius: 2px !important;
  filter: saturate(.88);
  box-shadow: 0 26px 70px rgba(31,26,20,.10) !important;
}

.hostinger-ai-about-us-3 .hostinger-ai-service-title {
  max-width: 520px;
  font-size: clamp(48px, 5vw, 72px) !important;
  line-height: 1.02 !important;
}

.hostinger-ai-about-us-3 .wp-block-column:last-child::before {
  content: "BRACKETS · ALINEADORES · ORTOPEDIA" !important;
  color: #8b7359 !important;
  letter-spacing: .22em !important;
}

.hostinger-ai-about-us-3 .hostinger-ai-service-description {
  max-width: 500px;
  margin-top: 26px !important;
  color: #655f57 !important;
  font-size: 17px !important;
  line-height: 1.85 !important;
}

/* Space and typography rhythm */
.entry-content > p:empty {
  display: none !important;
}

.entry-content h2 {
  letter-spacing: -.045em !important;
}

/* Clinic gallery: full-width luxury look */
.entry-content > .wp-block-group.alignwide.has-page-background-background-color {
  width: min(1240px, calc(100% - 48px));
  max-width: 1240px !important;
  margin-top: 0 !important;
  margin-bottom: clamp(110px, 10vw, 170px) !important;
  padding: clamp(72px, 8vw, 110px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #e8dfd3 !important;
  box-shadow: none !important;
}

.entry-content > .wp-block-group.alignwide.has-page-background-background-color > h2 {
  max-width: 780px;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  font-size: clamp(48px, 5vw, 72px) !important;
}

.entry-content > .wp-block-group.alignwide.has-page-background-background-color > p {
  max-width: 560px;
  margin-left: 0 !important;
  margin-right: auto !important;
  text-align: left !important;
  color: #6e655a !important;
  font-size: 16px;
}

.entry-content > .wp-block-group.alignwide.has-page-background-background-color .wp-block-columns {
  margin-top: 54px !important;
  gap: 18px !important;
}

.entry-content > .wp-block-group.alignwide.has-page-background-background-color .wp-block-image img {
  width: 100%;
  min-height: 390px !important;
  border-radius: 0 !important;
  filter: saturate(.88);
}

/* Editorial portrait rows */
.entry-content .wp-block-columns.alignwide {
  align-items: stretch !important;
}

.entry-content .wp-block-columns.alignwide .wp-block-image img {
  border-radius: 0 !important;
}

/* Specialist feature: dark framed card */
.entry-content .wp-block-group.alignwide.has-page-background-background-color:last-of-type {
  padding: clamp(44px, 6vw, 72px) !important;
  background: #11110f !important;
  color: #fff !important;
}

.entry-content .wp-block-group.alignwide.has-page-background-background-color:last-of-type h2,
.entry-content .wp-block-group.alignwide.has-page-background-background-color:last-of-type p {
  color: #fff !important;
}

.entry-content .wp-block-group.alignwide.has-page-background-background-color:last-of-type p {
  opacity: .68;
}

.entry-content .wp-block-group.alignwide.has-page-background-background-color:last-of-type .wp-block-button__link {
  border-color: #fff !important;
  background: #fff !important;
  color: #11110f !important;
}

/* Reviews become a clean light "social proof" gallery */
.entry-content > .wp-block-group.alignwide.has-color-1-background-color {
  width: min(1180px, calc(100% - 48px));
  max-width: 1180px !important;
  margin-top: clamp(100px, 10vw, 160px) !important;
  margin-bottom: clamp(80px, 8vw, 130px) !important;
  padding: clamp(70px, 8vw, 105px) !important;
  border: 1px solid rgba(17,17,15,.09) !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #11110f !important;
  box-shadow: none !important;
}

.entry-content > .wp-block-group.alignwide.has-color-1-background-color h2 {
  max-width: 720px;
  color: #11110f !important;
  font-size: clamp(48px, 5vw, 72px) !important;
}

.entry-content > .wp-block-group.alignwide.has-color-1-background-color > p {
  color: #6f685f !important;
  opacity: 1 !important;
}

.entry-content > .wp-block-group.alignwide.has-color-1-background-color h2::before {
  color: #8b7359 !important;
}

/* Buttons across inner content: quiet, architectural */
.entry-content .wp-block-button__link,
.entry-content .wp-element-button {
  padding: 14px 24px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  letter-spacing: .04em !important;
  text-transform: uppercase;
  font-size: 11px !important;
}

/* Footer: brand statement */
.jm-premium-footer {
  margin-top: 0 !important;
  padding-top: clamp(90px, 10vw, 150px) !important;
  background: #0d0d0c !important;
}

.jm-footer-brand h2 {
  max-width: 650px;
  font-size: clamp(64px, 7vw, 110px) !important;
  line-height: .92 !important;
}

.jm-footer-bottom {
  margin-top: 90px !important;
}

@media (max-width: 781px) {
  .site-header {
    position: sticky;
  }

  .hostinger-ai-about-us-2 {
    min-height: auto;
  }

  .hostinger-ai-about-us-2::before {
    display: none;
  }

  .hostinger-ai-about-us-2 > .alignwide {
    width: 100%;
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 0 64px !important;
  }

  .hostinger-ai-about-us-2 > .alignwide > .wp-block-group:first-child {
    order: 1;
  }

  .hostinger-ai-about-us-2 > .alignwide > .wp-block-group:last-child {
    order: 2;
    padding: 42px 22px 0 !important;
  }

  .hostinger-ai-about-us-2 .wp-block-image img {
    min-height: 480px;
    aspect-ratio: 4 / 4.8 !important;
    border-radius: 0 !important;
  }

  .hostinger-ai-about-us-2 .hostinger-ai-title {
    font-size: clamp(44px, 13vw, 62px) !important;
  }

  .hostinger-ai-about-us-2 .hostinger-ai-description {
    font-size: 17px !important;
  }

  .hostinger-ai-about-us-2 .wp-block-buttons::after {
    display: none;
  }

  .hostinger-ai-about-us-3 {
    padding: 100px 22px !important;
  }

  .hostinger-ai-about-us-3::before {
    top: 46px;
    left: 22px;
  }

  .hostinger-ai-about-us-3 > .alignwide {
    width: 100%;
    gap: 44px !important;
  }

  .hostinger-ai-about-us-3 .hostinger-ai-service-image img {
    min-height: 460px;
  }

  .hostinger-ai-about-us-3 .hostinger-ai-service-title {
    font-size: clamp(42px, 12vw, 58px) !important;
  }

  .entry-content > .wp-block-group.alignwide.has-page-background-background-color,
  .entry-content > .wp-block-group.alignwide.has-color-1-background-color {
    width: calc(100% - 28px);
    margin-left: 14px !important;
    margin-right: 14px !important;
    padding: 54px 20px !important;
  }

  .entry-content > .wp-block-group.alignwide.has-page-background-background-color > h2,
  .entry-content > .wp-block-group.alignwide.has-color-1-background-color h2 {
    font-size: clamp(40px, 11vw, 54px) !important;
  }

  .entry-content > .wp-block-group.alignwide.has-page-background-background-color .wp-block-image img {
    min-height: 300px !important;
  }

  .jm-footer-brand h2 {
    font-size: 58px !important;
  }
}

/* =========================================================
   Site-wide visual system — all service and information pages
   ========================================================= */
.entry-content {
  --jm-section-gap: clamp(28px, 4vw, 54px);
}

.entry-content > .wp-block-group.alignwide.has-background {
  width: min(1180px, calc(100% - 48px)) !important;
  max-width: 1180px !important;
  margin-top: var(--jm-section-gap) !important;
  margin-bottom: var(--jm-section-gap) !important;
  padding: clamp(54px, 7vw, 92px) clamp(28px, 6vw, 82px) !important;
  border: 1px solid rgba(17,17,15,.08) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.entry-content > .wp-block-group.alignwide.has-page-background-background-color {
  background: #fffdfa !important;
}

.entry-content > .wp-block-group.alignwide.has-color-1-background-color {
  background: #eee6db !important;
  color: #171715 !important;
}

.entry-content > .wp-block-group.alignwide.has-color-1-background-color h2,
.entry-content > .wp-block-group.alignwide.has-color-1-background-color h3,
.entry-content > .wp-block-group.alignwide.has-color-1-background-color p {
  color: inherit !important;
}

/* Every inner page begins with the same dark editorial hero. */
.entry-content > .wp-block-group.alignwide.has-background:first-child {
  position: relative;
  overflow: hidden;
  margin-top: clamp(24px, 4vw, 44px) !important;
  padding-top: clamp(72px, 9vw, 120px) !important;
  padding-bottom: clamp(72px, 9vw, 120px) !important;
  background: #11110f !important;
  color: #fffdfa !important;
  border-color: rgba(255,255,255,.08) !important;
}

.entry-content > .wp-block-group.alignwide.has-background:first-child::after {
  content: "JM";
  position: absolute;
  right: -12px;
  bottom: -44px;
  color: rgba(255,255,255,.035);
  font-family: Prata, Georgia, serif;
  font-size: clamp(150px, 22vw, 330px);
  line-height: .8;
  pointer-events: none;
}

.entry-content > .wp-block-group.alignwide.has-background:first-child h1 {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin-bottom: 26px !important;
  color: #fffdfa !important;
  font-size: clamp(50px, 6vw, 82px) !important;
  line-height: 1 !important;
  letter-spacing: -.05em !important;
}

.entry-content > .wp-block-group.alignwide.has-background:first-child h2,
.entry-content > .wp-block-group.alignwide.has-background:first-child h3 {
  position: relative;
  z-index: 1;
  color: #fffdfa !important;
}

.entry-content > .wp-block-group.alignwide.has-background:first-child > p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: rgba(255,253,250,.70) !important;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
}

.entry-content > .wp-block-group.alignwide.has-background:first-child > p:first-child strong {
  color: #c7ad8a !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
}

.entry-content > .wp-block-group.alignwide.has-background:first-child .wp-block-button__link {
  position: relative;
  z-index: 1;
  border-color: #fffdfa !important;
  background: #fffdfa !important;
  color: #11110f !important;
}

.entry-content > .wp-block-group.alignwide.has-background:first-child .wp-block-button__link:hover {
  border-color: #c7ad8a !important;
  background: #c7ad8a !important;
}

/* Consistent editorial typography and rhythm. */
.entry-content > .wp-block-group.alignwide:not(:first-child) > h2:first-child {
  max-width: 820px;
  margin-bottom: 26px !important;
  font-size: clamp(42px, 4.7vw, 66px) !important;
  line-height: 1.04 !important;
}

.entry-content h3 {
  margin-top: 30px;
  color: #171715;
  font-family: Prata, Georgia, serif;
  font-size: clamp(23px, 2.1vw, 31px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.entry-content > .wp-block-group.alignwide > p {
  max-width: 760px;
  color: #696159 !important;
  font-size: 16px;
  line-height: 1.82;
}

.entry-content > .wp-block-group.alignwide p + h2,
.entry-content > .wp-block-group.alignwide p + h3 {
  margin-top: clamp(42px, 5vw, 70px) !important;
}

/* Remove generic labels that were leaking into unrelated sections. */
.entry-content > .wp-block-group.alignwide h2::before {
  content: none !important;
}

.entry-content > .wp-block-group.alignwide:has(.ti-widget) h2::before {
  content: "EXPERIENCIAS REALES" !important;
  display: block;
  margin-bottom: 16px;
  color: #8b7359 !important;
  font-family: Manrope, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .19em;
}

/* Treatment / process columns become one consistent card language. */
.entry-content .wp-block-columns {
  gap: clamp(18px, 2.6vw, 34px) !important;
}

.entry-content .wp-block-columns .wp-block-column:has(> h3) {
  height: 100%;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid rgba(17,17,15,.10);
  background: rgba(255,255,255,.54);
}

.entry-content .wp-block-columns .wp-block-column:has(> h3) h3 {
  margin-top: 0 !important;
}

.entry-content .wp-block-columns .wp-block-column:has(> h3) p {
  color: #6b645c !important;
  line-height: 1.75;
}

/* Photography uses the same restrained art direction everywhere. */
.entry-content > .wp-block-group.alignwide .wp-block-image img,
.entry-content > .wp-block-columns.alignwide .wp-block-image img {
  width: 100%;
  border-radius: 2px !important;
  filter: saturate(.9) contrast(1.015);
}

.entry-content > .wp-block-group.alignwide figure {
  margin-top: clamp(34px, 5vw, 58px) !important;
}

/* Links and CTAs remain consistent across every page. */
.entry-content p a:not(.wp-block-button__link) {
  color: #171715 !important;
  font-weight: 600;
  text-decoration-color: #b99a75 !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.entry-content .wp-block-buttons {
  margin-top: 30px !important;
}

.entry-content .wp-block-button__link,
.entry-content .wp-element-button {
  min-height: 48px;
  padding: 15px 24px !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .07em !important;
  text-transform: uppercase;
}

/* Google reviews share the same light editorial section instead of a theme color. */
.entry-content > .wp-block-group.alignwide:has(.ti-widget) {
  background: #fffdfa !important;
  color: #171715 !important;
}

.entry-content > .wp-block-group.alignwide:has(.ti-widget) h2,
.entry-content > .wp-block-group.alignwide:has(.ti-widget) p {
  color: #171715 !important;
}

@media (max-width: 781px) {
  .entry-content > .wp-block-group.alignwide.has-background {
    width: calc(100% - 28px) !important;
    margin: 18px 14px 34px !important;
    padding: 46px 22px !important;
  }

  .entry-content > .wp-block-group.alignwide.has-background:first-child {
    margin-top: 14px !important;
    padding: 62px 22px 66px !important;
  }

  .entry-content > .wp-block-group.alignwide.has-background:first-child::after {
    right: -8px;
    bottom: -12px;
    font-size: 150px;
  }

  .entry-content > .wp-block-group.alignwide.has-background:first-child h1 {
    font-size: clamp(42px, 12vw, 58px) !important;
  }

  .entry-content > .wp-block-group.alignwide:not(:first-child) > h2:first-child {
    font-size: clamp(36px, 10vw, 48px) !important;
  }

  .entry-content .wp-block-columns .wp-block-column:has(> h3) {
    padding: 24px 20px;
  }

  .entry-content > .wp-block-group.alignwide .wp-block-image img {
    min-height: 0 !important;
  }
}
