/* ===========================================
   ADESUR ACI Theme - Industrial Design v3.0
   Sistemas de Agua Contra Incendio
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ===========================================
   1. CUSTOM PROPERTIES
   =========================================== */
:root {
  /* Brand Colors */
  --aci-red: #C8102E;
  --aci-red-hover: #A50D24;
  --aci-red-light: #E8334D;
  --aci-red-bg: #FDF2F4;
  --aci-red-glow: rgba(200, 16, 46, 0.35);

  /* Dark Blues */
  --aci-dark: #0B1F3B;
  --aci-dark-light: #132D54;
  --aci-dark-hover: #0E2849;
  --aci-dark-card: #1A3A60;

  /* Grays */
  --aci-steel: #6B7280;
  --aci-gray-light: #9CA3AF;
  --aci-gray-border: #E5E7EB;
  --aci-gray-bg: #F3F4F6;
  --aci-gray-50: #F9FAFB;

  /* Neutrals */
  --aci-white: #FFFFFF;
  --aci-black: #111827;
  --aci-text: #1F2937;
  --aci-text-muted: #6B7280;

  /* Functional */
  --aci-wa: #25D366;
  --aci-wa-hover: #1DA851;
  --aci-success: #059669;
  --aci-info: #2563EB;

  /* Typography */
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(11, 31, 59, 0.04);
  --shadow-sm: 0 1px 3px rgba(11, 31, 59, 0.06), 0 1px 2px rgba(11, 31, 59, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(11, 31, 59, 0.08), 0 2px 4px -2px rgba(11, 31, 59, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(11, 31, 59, 0.08), 0 4px 6px -4px rgba(11, 31, 59, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(11, 31, 59, 0.1), 0 8px 10px -6px rgba(11, 31, 59, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(11, 31, 59, 0.2);
  --shadow-red: 0 4px 14px rgba(200, 16, 46, 0.3);
  --shadow-red-lg: 0 8px 24px rgba(200, 16, 46, 0.35);

  /* Borders */
  --radius: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --header-height: 72px;
  --top-bar-height: 38px;
  --container-max: 1280px;
  --container-narrow: 960px;
}


/* ===========================================
   2. RESET & BASE
   =========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--aci-text);
  background-color: var(--aci-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--aci-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 2.125rem; font-weight: 700; }
h3 { font-size: 1.625rem; font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 700; }
h5 { font-size: 1.0625rem; font-weight: 600; }
h6 { font-size: 0.9375rem; font-weight: 600; }

p {
  margin-bottom: 1rem;
}

a {
  color: var(--aci-red);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

a:hover {
  color: var(--aci-red-hover);
}

a:focus-visible {
  outline: 2px solid var(--aci-red);
  outline-offset: 2px;
  border-radius: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

strong, b {
  font-weight: 600;
}

::selection {
  background-color: var(--aci-red);
  color: var(--aci-white);
}


/* ===========================================
   3. LAYOUT UTILITIES
   =========================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  background-color: var(--aci-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  clip: auto;
  color: var(--aci-dark);
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}


/* ===========================================
   4. TOP BAR
   =========================================== */
.header-top {
  background-color: var(--aci-dark);
  color: var(--aci-gray-light);
  font-size: 0.8125rem;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  letter-spacing: 0.01em;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.header-top-left a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--aci-gray-light);
  font-size: 0.8125rem;
  font-weight: 400;
  transition: color 0.25s var(--ease);
}

.header-top-left a:hover {
  color: var(--aci-white);
}

.header-top-left svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.header-top-left a:hover svg {
  opacity: 1;
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-top-right a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--aci-gray-light);
  border-radius: var(--radius);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.header-top-right a:hover {
  color: var(--aci-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.header-top-cert {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--aci-red);
  text-transform: uppercase;
  padding-right: 8px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  margin-right: 4px;
}


/* ===========================================
   5. HEADER / NAVIGATION
   =========================================== */
.header,
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--aci-white);
  box-shadow: 0 1px 0 var(--aci-gray-border);
  transition: box-shadow 0.3s var(--ease);
}

.header.sticky,
.site-header.sticky {
  box-shadow: var(--shadow-md);
}

.header-main {
  height: var(--header-height);
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 20px;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  line-height: 0;
}

.site-logo a,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-logo img,
.custom-logo-link img,
.custom-logo,
.site-logo .custom-logo-link img {
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
}

a.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--aci-dark);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

a.logo span {
  color: var(--aci-red);
}

/* Navigation */
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav ul li {
  position: relative;
}

.nav ul li a {
  display: block;
  padding: 8px 16px;
  color: var(--aci-text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: color 0.25s var(--ease), background-color 0.25s var(--ease);
  white-space: nowrap;
  letter-spacing: 0.005em;
}

.nav ul li a:hover {
  color: var(--aci-red);
  background-color: var(--aci-red-bg);
}

.nav ul li.current-menu-item > a,
.nav ul li.current_page_item > a,
.nav ul li.current-menu-ancestor > a {
  color: var(--aci-red);
  background-color: var(--aci-red-bg);
  font-weight: 600;
}

/* Submenu */
.nav ul li .sub-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 230px;
  background-color: var(--aci-white);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--aci-gray-border);
  border-radius: var(--radius-md);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s var(--ease), visibility 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 100;
  flex-direction: column;
}

.nav ul li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav ul li .sub-menu li a {
  padding: 10px 20px;
  border-radius: 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--aci-text);
}

.nav ul li .sub-menu li a:hover {
  background-color: var(--aci-gray-bg);
  color: var(--aci-red);
}

.nav ul li .sub-menu li.current-menu-item a {
  color: var(--aci-red);
  font-weight: 500;
  background-color: var(--aci-red-bg);
}

/* CTA Button */
.btn-emergency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 26px;
  background-color: var(--aci-red);
  color: var(--aci-white);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), transform 0.2s var(--ease), box-shadow 0.25s var(--ease);
  margin-left: 12px;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
}

.btn-emergency:hover {
  background-color: var(--aci-red-hover);
  color: var(--aci-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-emergency:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Hamburger Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--aci-gray-border);
  border-radius: var(--radius);
  cursor: pointer;
  padding: 9px;
  z-index: 1002;
  transition: border-color 0.25s var(--ease);
}

.menu-toggle:hover {
  border-color: var(--aci-steel);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--aci-dark);
  border-radius: 1px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Admin Bar Offset */
body.admin-bar .header,
body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .header,
  body.admin-bar .site-header {
    top: 46px;
  }
}


/* ===========================================
   6. CONTENT AREA
   =========================================== */
.site-content {
  min-height: 60vh;
}

.site-main {
  padding: 0;
}

.entry-content,
.page-content {
  max-width: 100%;
}

.entry-content img {
  max-width: 100%;
  height: auto;
}

.entry-content p {
  line-height: 1.75;
  color: var(--aci-text);
}

/* Full-width Page Content */
.full-width-content .entry-content {
  max-width: 100%;
  padding: 0;
}

.full-width-content .entry-content > .alignfull {
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  max-width: 100%;
}

.entry-content > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.entry-content > .alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* WordPress Alignment Defaults */
.alignnone {
  margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
  display: block;
  margin: 5px auto 20px;
}

.alignright {
  float: right;
  margin: 5px 0 20px 20px;
}

.alignleft {
  float: left;
  margin: 5px 20px 20px 0;
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--aci-text-muted);
  padding: 8px 0;
  font-style: italic;
}


/* ===========================================
   7. GUTENBERG BLOCKS
   =========================================== */

/* --- Cover Block --- */
.wp-block-cover {
  overflow: hidden;
}

.wp-block-cover__inner-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

/* --- Columns --- */
.wp-block-columns {
  margin-bottom: 0;
}

/* --- Group --- */
.wp-block-group.alignfull {
  margin-left: 0;
  margin-right: 0;
}

/* --- Buttons --- */
.wp-block-button__link {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), opacity 0.25s var(--ease);
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  opacity: 0.95;
}

.wp-block-button__link:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* --- Images --- */
.wp-block-image.size-medium {
  max-width: 100%;
  margin: 0;
}

.wp-block-image.size-medium img,
.wp-block-image.has-custom-border img,
.wp-block-group .wp-block-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.wp-block-image.size-medium figure,
.wp-block-image figure {
  margin: 0;
}

/* --- Lists (global reset, selective restore) --- */
.entry-content .wp-block-list li {
  list-style: disc;
  margin-left: 20px;
  padding: 3px 0;
  line-height: 1.75;
}

.entry-content .wp-block-list.contacto-lista li,
.entry-content .wp-block-list.contacto-lista-white li {
  list-style: none;
  margin-left: 0;
}

/* --- Card Links --- */
.wp-block-group h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.wp-block-group h3 a:hover {
  color: var(--aci-red);
}


/* ===========================================
   8. SERVICE CARDS (Gutenberg-based)
   =========================================== */
.wp-block-group[style*="background-color:#f8fafc"],
.wp-block-group[style*="background-color:#F8FAFC"],
.wp-block-group[style*="background-color:#f3f4f6"],
.wp-block-group[style*="background-color:#F3F4F6"] {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
  border: 1px solid transparent;
}

.wp-block-group[style*="background-color:#f8fafc"]:hover,
.wp-block-group[style*="background-color:#F8FAFC"]:hover,
.wp-block-group[style*="background-color:#f3f4f6"]:hover,
.wp-block-group[style*="background-color:#F3F4F6"]:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--aci-gray-border);
}

/* Stats cards in hero (translucent) */
.wp-block-group[style*="background-color:#ffffff10"] {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Dark feature cards */
.wp-block-group[style*="background-color:#1e293b"],
.wp-block-group[style*="background-color:#1E293B"],
.wp-block-group[style*="background-color:#0b1f3b"],
.wp-block-group[style*="background-color:#0B1F3B"],
.wp-block-group[style*="background-color:#132d54"],
.wp-block-group[style*="background-color:#132D54"] {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.wp-block-column:hover > .wp-block-group[style*="background-color:#1e293b"],
.wp-block-column:hover > .wp-block-group[style*="background-color:#1E293B"],
.wp-block-column:hover > .wp-block-group[style*="background-color:#0b1f3b"],
.wp-block-column:hover > .wp-block-group[style*="background-color:#0B1F3B"],
.wp-block-column:hover > .wp-block-group[style*="background-color:#132d54"],
.wp-block-column:hover > .wp-block-group[style*="background-color:#132D54"] {
  transform: translateY(-4px);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
}

/* White cards with rounded corners */
.wp-block-group[style*="background-color:#ffffff"][style*="border-radius"] {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.wp-block-group[style*="background-color:#ffffff"][style*="border-radius"]:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* CTA sidebar box */
.wp-block-group[style*="background-color:#fef2f2"],
.wp-block-group[style*="background-color:#FEF2F2"],
.wp-block-group[style*="background-color:#fdf2f4"],
.wp-block-group[style*="background-color:#FDF2F4"] {
  transition: box-shadow 0.3s var(--ease);
}

.wp-block-group[style*="background-color:#fef2f2"]:hover,
.wp-block-group[style*="background-color:#FEF2F2"]:hover,
.wp-block-group[style*="background-color:#fdf2f4"]:hover,
.wp-block-group[style*="background-color:#FDF2F4"]:hover {
  box-shadow: var(--shadow-lg);
}

/* Sidebar "Por que elegirnos" list */
.wp-block-group[style*="background-color:#f1f5f9"] li,
.wp-block-group[style*="background-color:#f3f4f6"] li {
  list-style: none;
  padding: 4px 0;
}


/* ===========================================
   9. SERVICE PAGE LAYOUT
   =========================================== */

/* Content Column */
.wp-block-column[style*="flex-basis:62%"] p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 16px;
  color: var(--aci-text);
}

.wp-block-column[style*="flex-basis:62%"] h2 {
  font-size: 1.375rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--aci-dark);
  margin-top: 36px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--aci-red);
  display: inline-block;
}

.wp-block-column[style*="flex-basis:62%"] h3 {
  font-size: 1.125rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.wp-block-column[style*="flex-basis:62%"] ul,
.wp-block-column[style*="flex-basis:62%"] ol {
  padding-left: 22px;
  margin-bottom: 20px;
}

.wp-block-column[style*="flex-basis:62%"] li {
  font-size: 0.9375rem;
  line-height: 1.9;
  padding: 4px 0;
  list-style: disc;
  color: var(--aci-text);
}

.wp-block-column[style*="flex-basis:62%"] ol li {
  list-style: decimal;
}

.wp-block-column[style*="flex-basis:62%"] li strong {
  color: var(--aci-dark);
  font-weight: 600;
}

/* Sidebar Column */
.wp-block-column[style*="flex-basis:38%"] {
  position: sticky;
  top: 90px;
  align-self: flex-start;
}

.wp-block-image.size-large {
  max-width: 100%;
}

.wp-block-image.size-large img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}


/* ===========================================
   10. CONTACT PAGE
   =========================================== */
.contacto-lista li,
.contacto-lista-white li {
  list-style: none;
  padding: 5px 0;
  line-height: 1.7;
}

/* Contact channel cards (colored borders) */
.wp-block-group[style*="border-color:#bbf7d0"],
.wp-block-group[style*="border-color:#bfdbfe"],
.wp-block-group[style*="border-color:#fecaca"],
.wp-block-group[style*="border-color:#e9d5ff"],
.wp-block-group[style*="border-color:#BBF7D0"],
.wp-block-group[style*="border-color:#BFDBFE"],
.wp-block-group[style*="border-color:#FECACA"],
.wp-block-group[style*="border-color:#E9D5FF"] {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.wp-block-group[style*="border-color:#bbf7d0"]:hover,
.wp-block-group[style*="border-color:#bfdbfe"]:hover,
.wp-block-group[style*="border-color:#fecaca"]:hover,
.wp-block-group[style*="border-color:#e9d5ff"]:hover,
.wp-block-group[style*="border-color:#BBF7D0"]:hover,
.wp-block-group[style*="border-color:#BFDBFE"]:hover,
.wp-block-group[style*="border-color:#FECACA"]:hover,
.wp-block-group[style*="border-color:#E9D5FF"]:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}


/* ===========================================
   11. POSTS GRID (Blog/Index)
   =========================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  margin-bottom: 48px;
}

.post-card {
  background-color: var(--aci-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--aci-gray-border);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.post-thumbnail {
  overflow: hidden;
  height: 220px;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.04);
}

.post-content {
  padding: 24px;
}

.entry-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.entry-title a {
  color: var(--aci-dark);
  transition: color 0.25s var(--ease);
}

.entry-title a:hover {
  color: var(--aci-red);
}

.entry-summary {
  color: var(--aci-text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--aci-red);
  font-weight: 600;
  font-size: 0.875rem;
  transition: gap 0.25s var(--ease), color 0.25s var(--ease);
}

.read-more:hover {
  gap: 10px;
  color: var(--aci-red-hover);
}

/* Pagination */
.pagination,
.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 48px 0;
}

.pagination .page-numbers,
.nav-links a,
.nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  background-color: var(--aci-white);
  border: 2px solid var(--aci-gray-border);
  border-radius: var(--radius);
  color: var(--aci-dark);
  font-weight: 600;
  font-size: 0.875rem;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.pagination .page-numbers:hover,
.nav-links a:hover {
  background-color: var(--aci-red);
  border-color: var(--aci-red);
  color: var(--aci-white);
}

.pagination .page-numbers.current,
.nav-links .current {
  background-color: var(--aci-red);
  border-color: var(--aci-red);
  color: var(--aci-white);
}


/* ===========================================
   12. SINGLE POST
   =========================================== */
.single-content {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 48px 20px;
}

.single-content .entry-content h2 {
  margin-top: 40px;
  margin-bottom: 16px;
}

.single-content .entry-content h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.entry-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.875rem;
  color: var(--aci-text-muted);
  margin-top: 10px;
}

/* Post Navigation */
.post-navigation {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--aci-gray-border);
}

.post-navigation .nav-subtitle {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--aci-text-muted);
  margin-bottom: 4px;
}

.post-navigation .nav-title {
  color: var(--aci-dark);
  font-weight: 600;
  transition: color 0.25s var(--ease);
}

.post-navigation a:hover .nav-title {
  color: var(--aci-red);
}


/* ===========================================
   13. PAGE HERO
   =========================================== */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--aci-dark) 0%, var(--aci-dark-light) 60%, var(--aci-red-hover) 100%);
  padding: 100px 0 52px;
  text-align: center;
  color: var(--aci-white);
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--aci-red);
}

.page-hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--aci-white);
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.page-hero .entry-meta {
  color: rgba(255, 255, 255, 0.6);
  justify-content: center;
}


/* ===========================================
   14. 404 PAGE
   =========================================== */
.error-404 {
  text-align: center;
  padding: 100px 20px;
}

.error-404 .page-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--aci-red);
  margin-bottom: 16px;
}

.error-404 .page-content p {
  font-size: 1.125rem;
  color: var(--aci-text-muted);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 8px;
}

.error-404-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.error-404-actions .btn,
.error-404-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--radius-md);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}

.error-404-actions .btn-primary,
.error-404-actions a.btn-primary {
  background-color: var(--aci-red);
  color: var(--aci-white);
}

.error-404-actions .btn-primary:hover {
  background-color: var(--aci-red-hover);
  color: var(--aci-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.error-404-actions .btn-outline,
.error-404-actions a.btn-outline {
  background-color: transparent;
  color: var(--aci-dark);
  border: 2px solid var(--aci-gray-border);
}

.error-404-actions .btn-outline:hover {
  border-color: var(--aci-dark);
  color: var(--aci-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}


/* ===========================================
   15. FOOTER
   =========================================== */
.site-footer,
.footer {
  background-color: var(--aci-dark);
  color: var(--aci-gray-light);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-col h4 {
  color: var(--aci-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 22px;
  padding-bottom: 14px;
  position: relative;
  letter-spacing: 0.01em;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 34px;
  height: 3px;
  background-color: var(--aci-red);
  border-radius: 2px;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--aci-gray-light);
  margin-bottom: 10px;
}

.footer-col strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--aci-white);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.footer-logo span {
  color: var(--aci-red);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--aci-gray-light);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.footer-social a:hover {
  background-color: var(--aci-red);
  color: var(--aci-white);
  transform: translateY(-2px);
}

.footer-links ul,
.footer-col .menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li,
.footer-col .menu li {
  margin-bottom: 11px;
}

.footer-links ul li a,
.footer-col .menu li a {
  color: var(--aci-gray-light);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.25s var(--ease), padding-left 0.25s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links ul li a:hover,
.footer-col .menu li a:hover {
  color: var(--aci-white);
  padding-left: 4px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--aci-gray-light);
  font-size: 0.875rem;
  transition: color 0.25s var(--ease);
}

.footer-contact a:hover {
  color: var(--aci-white);
}

.footer-contact svg {
  flex-shrink: 0;
  color: var(--aci-red-light);
}

.footer-bottom {
  padding: 22px 0;
  text-align: center;
  margin-top: 0;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.25);
  margin: 0;
  letter-spacing: 0.01em;
}


/* ===========================================
   16. WHATSAPP FLOAT BUTTON
   =========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--aci-wa);
  color: var(--aci-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  background-color: var(--aci-wa-hover);
  color: var(--aci-white);
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.55);
  animation: none;
}

.whatsapp-float:active {
  transform: scale(1.04);
}

@keyframes whatsappPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 14px rgba(37, 211, 102, 0.12);
  }
}


/* ===========================================
   17. WIDGETS
   =========================================== */
.widget {
  margin-bottom: 40px;
}

.widget-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--aci-red);
  color: var(--aci-dark);
}

.widget ul {
  list-style: none;
  padding: 0;
}

.widget ul li {
  padding: 9px 0;
  border-bottom: 1px solid var(--aci-gray-border);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--aci-text);
  font-size: 0.9375rem;
  transition: color 0.25s var(--ease), padding-left 0.2s var(--ease);
}

.widget ul li a:hover {
  color: var(--aci-red);
  padding-left: 5px;
}


/* ===========================================
   18. ELEMENTOR COMPATIBILITY
   =========================================== */
.elementor-widget-wrap {
  width: 100%;
}

.elementor-section {
  position: relative;
}


/* ===========================================
   19. MOBILE MENU OVERLAY
   =========================================== */
body.menu-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background-color: rgba(11, 31, 59, 0.55);
  z-index: 1000;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}


/* ===========================================
   20. RESPONSIVE - 1024px (TABLET LANDSCAPE)
   =========================================== */
@media (max-width: 1024px) {
  .header-top-left {
    gap: 14px;
  }

  .header-top-left a {
    font-size: 0.75rem;
  }

  .nav ul li a {
    padding: 8px 11px;
    font-size: 0.8125rem;
  }

  .btn-emergency {
    padding: 9px 20px;
    font-size: 0.8125rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}


/* ===========================================
   21. RESPONSIVE - 992px (TABLET / MOBILE MENU)
   =========================================== */
@media (max-width: 992px) {
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--aci-white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 20px 32px;
    box-shadow: -8px 0 40px rgba(11, 31, 59, 0.15);
    transition: right 0.35s var(--ease);
    z-index: 1001;
    overflow-y: auto;
    gap: 0;
    border-left: 1px solid var(--aci-gray-border);
  }

  .nav.open {
    right: 0;
  }

  .nav ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .nav ul li a {
    padding: 14px 16px;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--aci-gray-border);
    border-radius: 0;
    width: 100%;
    font-weight: 500;
  }

  .nav ul li a:hover {
    background-color: var(--aci-gray-bg);
  }

  .nav ul li.current-menu-item > a {
    background-color: var(--aci-red-bg);
    border-left: 3px solid var(--aci-red);
  }

  .nav ul li .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    min-width: auto;
    background-color: var(--aci-gray-50);
  }

  .nav ul li .sub-menu li a {
    font-size: 0.875rem;
    color: var(--aci-steel);
    padding: 12px 16px;
  }

  .btn-emergency {
    margin-left: 0;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.9375rem;
  }

  .posts-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}


/* ===========================================
   22. RESPONSIVE - 768px (MOBILE)
   =========================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 62px;
  }

  .header-top {
    padding: 6px 0;
  }

  .header-top-left a {
    font-size: 0.6875rem;
    gap: 4px;
  }

  .header-top-left {
    gap: 10px;
  }

  .header-main .container {
    height: 60px;
  }

  .site-logo img,
  .custom-logo-link img,
  .custom-logo {
    max-height: 42px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
  h3 { font-size: 1.25rem; }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .single-content {
    padding: 28px 16px;
  }

  .page-hero {
    padding: 80px 0 40px;
  }

  .page-hero h1 {
    font-size: 1.8rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .wp-block-image.has-custom-border img,
  .wp-block-group .wp-block-image img {
    height: 180px;
  }

  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  /* Gutenberg columns stack */
  .wp-block-columns:not(.is-not-stacked-on-mobile) {
    flex-wrap: wrap;
  }

  .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
    flex-basis: 100%;
    margin-bottom: 20px;
  }

  /* Sidebar unstick on mobile */
  .wp-block-column[style*="flex-basis:38%"] {
    position: static;
  }

  .wp-block-column[style*="flex-basis:62%"] h2 {
    font-size: 1.25rem;
    margin-top: 28px;
  }
}


/* ===========================================
   23. RESPONSIVE - 480px (SMALL MOBILE)
   =========================================== */
@media (max-width: 480px) {
  .header-top {
    display: none;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.375rem; }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .page-hero {
    padding: 72px 0 36px;
  }

  .error-404 {
    padding: 72px 16px;
  }

  .error-404 .page-title {
    font-size: 2rem;
  }

  .error-404-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer {
    padding: 48px 0 0;
  }

  .footer-col h4 {
    margin-bottom: 16px;
    padding-bottom: 10px;
  }

  .single-content {
    padding: 20px 16px;
  }
}


/* ===========================================
   24. PRINT STYLES
   =========================================== */
@media print {
  .header-top,
  .header,
  .site-header,
  .footer,
  .site-footer,
  .whatsapp-float,
  .menu-toggle,
  .btn-emergency {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .site-content {
    margin: 0;
    padding: 0;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  img {
    max-width: 100%;
    page-break-inside: avoid;
  }

  h1, h2, h3, h4 {
    page-break-after: avoid;
    color: #000;
  }
}
