/*
 * base.css: Estilos globales y universales para todo el sitio.
*/

:root {
    --primary-dark: #0D47A1;
    --primary-dynamic: #1976D2;
    --celeste-vibrante: #64B5F6;
    --ink: #333333;
    --muted: var(--ink);
    --card: #FFFFFF;
    --bg-light: #F8F9FA;
    --ring: 0 4px 15px rgba(0, 0, 0, 0.08);
    --ring-hover: 0 10px 25px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --transition-speed: 0.5s;
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --focus: 0 0 0 3px rgba(25, 118, 210, 0.25);
    --z-header: 1000;
    --z-fab: 1800;
    --z-menu: 2000;
    --z-toggle: 2001;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .hero-card,
    .card,
    .cta-band,
    .val,
    header.scrolled {
        background: rgb(255 255 255 / .92);
        border-color: rgb(0 0 0 / .06);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        box-shadow: 0 2px 6px rgb(0 0 0 / .08);
    }
}    
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--card);
    background-image: linear-gradient(135deg, var(--primary-dark) 0%, var(--card) 100%);
}

body.no-scroll {
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgb(255 255 255 / .25) 0%, transparent 70%);
    opacity: .2;
    z-index: -1;
}

.container {
    max-width: 1120px;
    margin: auto;
    padding-inline: var(--space-3);
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin: 0 0 var(--space-1);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 3.8rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.6rem, 2.8vw, 2rem);
}

h3 {
    font-size: clamp(1.4rem, 3vw, 1.8rem);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    transition: background-color var(--transition-speed) ease-in-out, box-shadow var(--transition-speed) ease-in-out;
    background-color: #fff0;
}

header.scrolled {
    background: rgb(255 255 255 / .65);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgb(255 255 255 / .35);
    box-shadow: 0 4px 12px rgb(0 0 0 / .1);
}

header.scrolled .brand,
header.scrolled .menu-toggle {
    color: var(--primary-dark);
}

header.scrolled .main-menu a {
    color: var(--primary-dark);
}

header.menu-open {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

header.menu-open .brand,
header.menu-open .menu-toggle {
    color: #fff !important;
}

header.menu-open .logo-white {
    opacity: 1 !important;
}

header.menu-open .logo-dark {
    opacity: 0 !important;
}

.logo-container {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-container img {
    position: absolute;
    top: 0;
    left: 0;
    height: 40px;
    transition: opacity var(--transition-speed) ease-in-out;
}

.logo-white {
    opacity: 1;
}

.logo-dark {
    opacity: 0;
}

header.scrolled .logo-white {
    opacity: 0;
}

header.scrolled .logo-dark {
    opacity: 1;
}

footer .brand .logo-white {
    opacity: 0;
}

footer .brand .logo-dark {
    opacity: 1;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--card);
    font-weight: 800;
    font-size: 1.5rem;
    z-index: 10;
    transition: color var(--transition-speed) ease-in-out;
}

.main-menu ul {
    display: flex;
    list-style: none;
    gap: 22px;
}

.main-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-speed) ease-in-out;
    padding: 8px 0;
    position: relative;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--celeste-vibrante);
    transition: width 0.3s ease;
}

.main-menu a:hover::after {
    width: 100%;
}

.main-menu a:hover {
    color: var(--celeste-vibrante);
}

.menu-toggle {
    display: none;
    background: #fff0;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 8px;
    z-index: var(--z-toggle);
    transition: color var(--transition-speed) ease-in-out;
}

.menu-toggle svg {
    width: 28px;
    height: 28px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 140px 0 150px;
    background: #fff0;
    color: var(--ink);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 40px;
    align-items: center;
    text-align: left;
}

.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
}

.hero-curve path {
    fill: none;
    stroke: var(--celeste-vibrante);
    stroke-width: 2;
    stroke-dasharray: 2900;
    stroke-dashoffset: 2900;
    animation: draw-curve 3s ease-in-out forwards 0.5s;
    will-change: stroke-dashoffset;
}

@keyframes draw-curve {
    to {
        stroke-dashoffset: 0;
    }
}

.kicker {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-dynamic);
    background: var(--card);
    border: 1px solid var(--primary-dynamic);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    margin-bottom: 10px;
}

.glass-text {
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-card,
.card,
.cta-band,
.val,
.faq-accordion details,
.contact-block {
    background: rgb(255 255 255 / .65);
    backdrop-filter: blur(12px);
    border: 2px solid rgb(255 255 255 / .35);
    box-shadow: 0 4px 12px rgb(0 0 0 / .2), inset 0 2px 6px rgb(255 255 255 / .3);
    border-radius: var(--radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card {
    padding: 30px;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    color: var(--ink);
}

.hero-list li {
    margin: 12px 0;
    padding-left: 20px;
    position: relative;
}

.hero-list li::before {
    content: '✓';
    color: var(--celeste-vibrante);
    font-weight: 700;
    position: absolute;
    left: 0;
}

main {
    position: relative;
    z-index: 1;
    background: #fff0;
}

section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-band {
    padding: 40px;
}

.cta-final-bg {
    text-align: center;
    margin-top: 40px;
    padding-top: 40px;
    background: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
}

.cta-final-bg .title-accent {
    color: var(--primary-dark);
    text-shadow: none;
}

.cta-final-bg .sub {
    color: var(--ink);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

.cta-final-bg .actions {
    margin-top: 20px;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.section-head-left {
    text-align: left;
}

.section-head-right {
    text-align: right;
}

.sub {
    color: var(--ink);
    font-size: 16px;
    max-width: 60ch;
    line-height: 1.6;
}

.center .sub {
    max-width: 80ch;
    margin: auto;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card .actions {
    margin-top: auto;
    padding-top: 16px;
}

/*
 * =======================================================
 * CORRECCIÓN 1: UNIFICAR COLOR DE TÍTULOS EN TARJETAS
 * =======================================================
*/
.card h2,
.card h3,
.card h4,
.val h3,
.hero-card strong,
.testimonial-card strong,
.faq-accordion summary,
.contact-block h2, /* <-- AÑADIDO */
.contact-block h3,
.contact-block h4 {
    background: linear-gradient(90deg, var(--primary-dynamic), var(--celeste-vibrante));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.pill {
    display: inline-block;
    border: 1px solid var(--primary-dark);
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--primary-dark);
    margin: 4px 6px 4px 0;
    background-color: var(--card);
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pill:hover {
    background-color: var(--primary-dark);
    color: var(--card);
    transform: scale(1.05);
    box-shadow: var(--ring-hover);
}

.vals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.val {
    padding: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex; 
    flex-direction: column;
}

.val h3 {
    margin-bottom: 0.5rem;
}
.val p {
    color: var(--muted);
    font-size: 15px;
}

.val:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--ring-hover);
}

footer {
    background-color: #fff0;
    position: relative;
}

.foot {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    padding: 30px 0;
    align-items: center;
}

footer .brand .logo-white {
    opacity: 0;
}

footer .brand .logo-dark {
    opacity: 1;
}

footer a,
footer p.sub,
footer .credits,
footer strong {
    color: var(--ink);
    text-decoration: none;
}

footer .brand,
footer .foot strong {
    color: var(--primary-dark);
}

footer a:hover {
    color: var(--celeste-vibrante);
}

.title-accent {
    color: var(--primary-dark);
    text-shadow: none;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: 1px solid #fff0;
    cursor: pointer;
    text-align: center;
}

a:focus-visible,
.btn:focus-visible,
.menu-toggle:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 12px;
}

.btn.primary {
    background: var(--primary-dark);
    color: var(--card);
    transition: all 0.3s ease-in-out;
}

.btn.primary:hover {
    background: #00366D;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgb(0 0 0 / .2);
}

.btn.ghost {
    background: #fff0;
    border: 1px solid var(--primary-dark);
    color: var(--primary-dark);
    transition: all 0.3s ease-in-out;
}

.btn.ghost:hover {
    background: var(--primary-dark);
    color: var(--card);
    transform: translateY(-2px) scale(1.05);
}

.btn.hero-alt {
    background: rgb(255 255 255 / .9);
    border-color: #fff0;
    color: var(--primary-dark);
    transition: all 0.3s ease-in-out;
}

.btn.hero-alt:hover {
    background: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgb(0 0 0 / .2);
}

.form-link {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-link:hover {
    color: var(--celeste-vibrante);
}

.input {
    width: 100%;
    padding: 12px 18px;
    border: 1px solid rgb(13 71 161 / .2);
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    background-color: rgb(255 255 255 / .7);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input:focus {
    border-color: var(--primary-dynamic);
    box-shadow: 0 0 0 3px rgb(25 118 210 / .15);
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

textarea.input {
    min-height: 140px;
    resize: vertical;
    margin-bottom: 12px;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    cursor: pointer;
    z-index: var(--z-fab);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.whatsapp-fab.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,.7); }
    70% { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.whatsapp-fab img {
    width: 34px;
    height: 34px;
}
    
.fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: red;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.2s, transform 0.2s;
}

.fab-badge.is-shown {
    opacity: 1;
    transform: scale(1);
}

.fab-badge.has-animation {
  animation: jump-in 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-badge.is-hidden {
  transform: scale(0);
  opacity: 0;
}

@keyframes jump-in {
  0% { transform: scale(0); }
  70% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.whatsapp-popup {
  position: fixed;
  bottom: 95px;
  right: 20px;
  width: 320px;
  background-color: transparent;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  overflow: hidden;
  z-index: var(--z-fab);
  opacity: 0;
  transform: translateY(15px);
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.whatsapp-popup.is-open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.wapp-header {
  background-color: #128C7E;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wapp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.wapp-close {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  border-radius: 50%;
}
.wapp-close:hover {
  opacity: 1;
}

.wapp-body {
  padding: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.wapp-message-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin: 0 0 16px;
}

.btn.wapp-go {
  background: #25D366;
  color: #fff;
  border-radius: 50px;
  padding: 12px 28px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.btn.wapp-go:hover {
  background: #128C7E;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 400px) {
  .whatsapp-popup {
    width: auto;
    left: 20px;
  }
}

.faq-accordion { display: flex; flex-direction: column; gap: 1rem; }
.faq-accordion details:hover { transform: scale(1.02); box-shadow: var(--ring-hover); }
.faq-accordion summary { padding: 1rem 1.5rem; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-accordion summary::after { content: '+'; font-size: 1.5rem; font-weight: 400; transition: transform 0.3s ease; }
.faq-accordion details[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 1.5rem 1.5rem; line-height: 1.6; }

.faq-body {
    padding-top: 80px;
    padding-bottom: 0px;
}

.faq-welcome-text {
    padding: 1.5rem 1.5rem 0 1.5rem;
}

.faq-welcome-text p {
    font-size: 1.1rem;
    color: var(--ink);
    max-width: 80ch;
}

.faq-content {
    padding: 40px 1.5rem 1.5rem 1.5rem;
}

.blog-feed {
    padding: 60px 0;
    background-color: transparent; 
}

.post-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 2px 6px rgba(255, 255, 255, 0.3);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ring-hover);
}

.post-card-image {
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
}

.post-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.post-card-content {
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-card-category {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-2);
}

.post-card-title a {
    text-decoration: none;
    background: linear-gradient(90deg, var(--primary-dynamic), var(--celeste-vibrante));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.post-card-excerpt {
    color: var(--ink);
    flex-grow: 1;
    margin-bottom: var(--space-4);
}

.post-card.featured {
    display: grid;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}

.post-card.featured .post-card-image img {
    height: auto; /* <-- Permite que la altura se ajuste a la imagen */
    object-fit: initial; /* <-- Evita que la imagen sea recortada */
    border-radius: var(--radius);
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.post-breadcrumb {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 1rem;
    color: var(--primary-dynamic);
    background: var(--card);
    border: 1px solid var(--primary-dynamic);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 14px;
    transition: all .3s ease;
}
.post-breadcrumb:hover {
    background: var(--primary-dark);
    color: var(--card);
    border-color: var(--primary-dark);
}

.post-meta {
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    margin-top: 1rem;
}

.post-body {
    padding: 60px 0;
    background: transparent; 
}
.post-content.card { padding: 2rem; }
.sidebar-widget.card { padding: 1.5rem; margin-bottom: 2rem; }
.author-box.card { padding: 2rem; }


.post-grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.post-main-image {
    margin-bottom: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
}
.post-main-image figcaption {
    padding: 10px;
    text-align: center;
    font-size: 14px;
    color: var(--muted);
    background: rgba(0,0,0,0.03);
}

.post-content h2 {
    color: var(--primary-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content ul {
    list-style: none;
    padding-left: 0;
}
.post-content ul li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 0.8rem;
}
.post-content ul li::before {
    content: '✓';
    color: var(--celeste-vibrante);
    font-weight: 700;
    position: absolute;
    left: 0;
}

.post-cta {
    background: var(--bg-light);
    border: 1px solid #e0e0e0;
    border-left: 4px solid var(--primary-dynamic);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}
.post-cta h3 {
    margin-top: 0;
    color: var(--primary-dark);
}

.sidebar-widget h4 {
    margin-top: 0;
    color: var(--primary-dark);
}
.sidebar-widget p { margin-bottom: 0; }

.author-box-container {
    grid-column: 1 / -1;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.3);
}

.author-box {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.author-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: var(--ring);
}

.author-name {
    margin-top: 0;
    font-size: 1.5rem;
    background: linear-gradient(90deg, var(--primary-dynamic), var(--celeste-vibrante));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}
.author-title {
    font-weight: 700;
    color: var(--muted);
    margin-top: -10px;
    margin-bottom: 1rem;
}
.author-credentials {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}
.author-links a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    margin-right: 1rem;
}

.footer-lite {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.3);
}
.footer-lite .brand {
    justify-content: center;
    margin-bottom: 1rem;
}
.footer-lite .footer-credits {
    font-size: 14px;
    color: var(--ink);
}
.footer-lite .social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 1rem;
}
.footer-lite .social-icons img {
    opacity: 0.7;
    transition: opacity .3s ease;
}
.footer-lite .social-icons a:hover img {
    opacity: 1;
}
@media (min-width: 901px) {
    .post-card.featured {
        grid-template-columns: 1fr 1fr;
    }
    .post-grid-layout {
        grid-template-columns: 2.5fr 1fr;
    }
}

@media (max-width: 900px) {
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .post-content.card { padding: 1.5rem; }
}

.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 71, 161, 0.4);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cookie-banner.is-visible {
    opacity: 1;
    visibility: visible;
}

.cookie-banner.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.cookie-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--ring-hover);
    border-radius: var(--radius);
    color: var(--ink);
    padding: var(--space-4);
    max-width: 550px;
    width: 100%;
    transform: scale(0.95);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-banner.is-visible .cookie-card {
    transform: scale(1);
}

.cookie-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.cookie-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cookie-options {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-left: 0.25rem;
}

.cookie-checkbox-wrapper {
    display: flex;
    align-items: center;
    font-weight: 600;
}

.cookie-checkbox-wrapper input[type="checkbox"] {
    width: 1.2em;
    height: 1.2em;
    margin-right: 0.6rem;
    accent-color: var(--primary-dynamic);
    cursor: pointer;
}

.cookie-checkbox-wrapper input[type="checkbox"]:disabled {
    accent-color: var(--muted);
    cursor: not-allowed;
}

.cookie-checkbox-wrapper label {
    cursor: pointer;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
    }
}

.cookie-links {
    font-size: 0.8rem;
    text-align: center;
    color: var(--muted);
}

.cookie-links a {
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-links a:hover {
    color: var(--celeste-vibrante);
    text-decoration: underline;
}

.cookie-links span {
    margin: 0 0.5rem;
}
/* --- ESTILOS NUEVOS PARA PÁGINA DE CONTACTO --- */
.contact-block {
  padding: 24px;
}

.contact-block h2.title-accent {
  margin-bottom: 1rem;
}

.contact-details-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.contact-details-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-details-list svg {
  flex-shrink: 0;
  color: var(--primary-dynamic);
}

address {
  font-style: normal;
  line-height: 1.6;
}

.contact-hours {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(13, 71, 161, 0.15);
}
.faq-category {
  /* Añade un espacio grande entre cada bloque de categorías.
     Ej: entre "Preguntas Generales" y "Sobre el Proceso Legal". */
  margin-bottom: 2.5rem; /* 40px */
}

.faq-category h2 {
  /* Añade un espacio más pequeño debajo del título H2,
     separándolo de la primera pregunta. */
  margin-bottom: 1.5rem; /* 24px */
}
.faq-category {
  /* Añade un espacio grande entre cada bloque de categorías. */
  margin-bottom: 2.5rem; /* Aprox. 40px */
}

.faq-category h2 {
  /* Añade un espacio más pequeño debajo del título H2. */
  margin-bottom: 1.5rem; /* Aprox. 24px */
}
/* Estilo para "ARm Laboral" */
h1#hero-title {
  font-size: 4rem; /* O el tamaño que tiene actualmente */
  line-height: 1.1;
  font-weight: 800; /* Muy grueso */
}

/* Estilo para el subtítulo dentro del H1 */
h1#hero-title .subtitulo-hero {
  font-size: 1.8rem; /* Un tamaño significativamente más pequeño */
  font-weight: 600;  /* Ligeramente menos grueso */
  display: block;    /* Asegura que esté en su propia línea */
  margin-top: 15px;
font-family: inherit;
}
/* --- Ocultar brand del header en la página de inicio --- */

/* Cuando la página es "page-home" Y el header NO tiene la clase ".scrolled" */
.page-home header:not(.scrolled) .brand {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px); /* Efecto sutil de deslizamiento */
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

/* No necesitas añadir más CSS. Cuando el usuario haga scroll, el script 'script.js' 
  añadirá la clase '.scrolled' al header, y las reglas de estilo existentes 
  harán que el '.brand' vuelva a ser visible automáticamente.
*/
/* --- ESTILOS PARA PÁGINAS DE CONTENIDO LEGAL (AVISO DE PRIVACIDAD, ETC.) --- */

/* Estilos para la tabla de cookies */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
}

.cookie-table th {
  background-color: var(--bg-light);
  font-weight: 700;
}

/* Espaciado para el texto en la tarjeta de privacidad */
.privacy-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.privacy-content p {
  margin-bottom: 1.25rem;
}

.privacy-content ul {
  margin-bottom: 1.5rem;
}
/* --- ESTILOS FINALES Y UNIFICADOS PARA SECCIONES DEL BLOG --- */

.featured-post-section {
    padding: 80px 0;
}

.featured-post-section .post-card.featured {
    margin-bottom: 0;
}

.section-opaque {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.archive-section {
    border-top: none;
}

.archive-intro p {
    margin-top: 1rem;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 40px;
}

.post-list-item {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--ring);
    padding: 1.5rem;
    border-bottom: none; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-list-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--ring-hover);
}

.post-list-image {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.post-list-title {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.post-list-title a {
    text-decoration: none;
    background: linear-gradient(90deg, var(--primary-dynamic), var(--celeste-vibrante));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.post-list-meta {
    font-size: 13px;
    color: var(--muted);
    margin-top: 5px;
}
.solutions-grid .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ring-hover);
}
/* =============================================
   ESTILOS PARA TARJETAS DE SEGMENTACIÓN (INICIO)
   ============================================= */

.hero-segmentation {
  display: grid;
  grid-template-columns: 1fr; /* Una columna por defecto para móviles */
  gap: 24px;
}

.segment-card {
  display: flex; /* Asegura que el contenido interno se alinee bien */
  flex-direction: column;
}

.segment-card .actions {
  margin-top: auto; /* Empuja el botón siempre hacia abajo */
}
/* ===== ESTILOS PARA EL HERO SECTION ===== */

.hero-inner {
    padding-bottom: 120px; /* Evita que la curva SVG se encime */
}

.hero-logo-container {
    max-width: 600px;
}

.hero-logo-container a {
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-headings-container {
    margin-bottom: 1.5rem;
}

.hero-main-title {
    font-size: clamp(2.5rem, 7vw, 3.8rem);
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.4rem, 4vw, 2.0rem);
    margin-bottom: 0;
}
/* ===== FIX: Centrado vertical para Hero en páginas interiores ===== */
body:not(.page-home) .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 450px; /* Asegura que haya suficiente altura para que el centrado se note */
}
/* ===== CONSISTENCIA: Espacio inferior para todos los Heros ===== */
.hero-inner {
    padding-bottom: 120px; /* Espacio de seguridad para la curva SVG */
}