/* --- VARIABLES Y COLORES --- */
:root {
    /* Color Burdeos Principal */
    --primary-color: #800020;
    /* Variación más oscura para efectos hover */
    --primary-dark: #570016;
    /* Negro suave para textos (el negro puro #000 cansa la vista) */
    --text-black: #1a1a1a;
    /* Gris claro para fondos secundarios */
    --bg-light: #f4f4f4;
    /* Blanco puro */
    --white: #ffffff;
}

/* --- ESTILOS GENERALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Desplazamiento suave al hacer clic en menú */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-black);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* --- REVEAL ON SCROLL (utilidad) --- */
.reveal {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: transform, opacity;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal--slide-left {
    transform: translateX(-18px);
}

.reveal--slide-right {
    transform: translateX(18px);
}

.reveal--scale {
    transform: scale(0.985);
}

.reveal--soft {
    transition-duration: 0.75s;
}

/* Stagger simple por orden de aparición dentro de un contenedor */
.reveal-stagger>.reveal:nth-child(1) {
    transition-delay: 0.04s;
}

.reveal-stagger>.reveal:nth-child(2) {
    transition-delay: 0.10s;
}

.reveal-stagger>.reveal:nth-child(3) {
    transition-delay: 0.16s;
}

.reveal-stagger>.reveal:nth-child(4) {
    transition-delay: 0.22s;
}

.reveal-stagger>.reveal:nth-child(5) {
    transition-delay: 0.28s;
}

.reveal-stagger>.reveal:nth-child(6) {
    transition-delay: 0.34s;
}

@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal.visible {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

h1 {
    font-size: 3rem;
    font-weight: 800;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- BARRA SUPERIOR --- */
.top-bar {
    background-color: rgba(101, 24, 46, 0.9);
    height: 50px;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 1001;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    display: flex;
    align-items: center;
    padding: 0 8%;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.top-bar-left {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.top-bar-right {
    display: flex;
    align-items: center;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.top-bar-item:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.top-bar-item i {
    font-size: 1.3rem;
    font-weight: 400;
    color: #ffffff;
    transition: transform 0.3s ease;
    display: inline-block;
    min-width: 1.3rem;
    text-align: center;
}

.top-bar-item .icon-unicode {
    font-size: 1.3rem;
    color: #ffffff;
    transition: transform 0.3s ease;
    display: inline-block;
    min-width: 1.3rem;
    text-align: center;
}

.top-bar-item .icon-svg {
    width: 1.3rem;
    height: 1.3rem;
    color: #ffffff;
    stroke: #ffffff;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-bar-item:hover .icon-svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.3));
}

.facebook-link {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    margin-left: 1rem;
}

.follow-text {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 1rem;
}

.top-bar-separator {
    width: 1px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 0 1rem;
}

.top-bar.hidden {
    opacity: 0;
    transform: translateY(-100%);
    pointer-events: none;
}

/* --- NAVEGACIÓN (HEADER) --- */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 50px;
    z-index: 1000;
    transition: top 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.top-bar.hidden~.header,
.header.top-hidden {
    top: 0;
}

.navbar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0.1rem 8%;
    max-width: 100%;
    margin: 0 auto;
    gap: 3rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 0 0 auto;
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: center;
    flex: 1;
}

.nav-link {
    font-weight: 450;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Botón destacado en el menú */
.btn-contacto {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn-contacto:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-black);
}

/* --- HERO SECTION (PORTADA) --- */
.hero {
    height: 100vh;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
    color: var(--white);
    padding: 0 clamp(32px, 6vw, 100px) 110px;
    position: relative;
    transition: background-image 0.8s ease-in-out;
    overflow: hidden;
    margin-top: 50px;
}

/* --- HERO SLIDER (HOME): crossfade premium --- */
.hero.hero-slider {
    background-image: none !important;
}

.hero.hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(170deg,
            rgba(30, 10, 15, 0.40) 0%,
            rgba(30, 10, 15, 0.30) 30%,
            rgba(30, 10, 15, 0.50) 60%,
            rgba(20, 8, 12, 0.82) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Watermark text (MZ Asesoría style) */
.hero-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    font-size: clamp(8rem, 18vw, 22rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
    letter-spacing: 0.05em;
    white-space: nowrap;
    z-index: 3;
    pointer-events: none;
    user-select: none;
}

/* Dot pattern overlay */
.hero-dot-pattern {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
}

.hero-bg-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 1200ms cubic-bezier(0.4, 0, 0.2, 1), transform 10000ms linear;
}

.hero-bg.is-active {
    opacity: 1;
    transform: scale(1.08);
}

.hero.hero-slider .hero-content {
    position: relative;
    z-index: 10;
}

.hero.hero-slider .hero-content.is-switching .hero-content__title,
.hero.hero-slider .hero-content.is-switching .hero-content__desc,
.hero.hero-slider .hero-content.is-switching .hero-subtitle,
.hero.hero-slider .hero-content.is-switching .cta-button {
    opacity: 0;
    transform: translateY(12px);
}

.hero-content__title,
.hero-content__desc,
.hero-subtitle,
.hero.hero-slider .hero-content .cta-button {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Staggered entrance */
.hero-content__title {
    transition-delay: 0.05s;
}

.hero-content__desc {
    transition-delay: 0.12s;
}

.hero-subtitle {
    transition-delay: 0.19s;
}

.hero.hero-slider .hero-content .cta-button {
    transition-delay: 0.26s;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(to top, rgba(18, 18, 22, 0.45) 0%, transparent 100%);
    pointer-events: none;
    z-index: 5;
}

.hero-content h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.4rem);
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    max-width: 700px;
    position: relative;
    z-index: 10;
    line-height: 1.2;
    font-weight: 800;
    font-style: italic;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    max-width: 600px;
    position: relative;
    z-index: 10;
    line-height: 1.75;
    opacity: 0.9;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 550px;
    position: relative;
    z-index: 10;
    font-weight: 400;
    opacity: 0.75;
    line-height: 1.6;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    z-index: 10;
    box-shadow: 0 6px 24px rgba(128, 0, 32, 0.35);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(128, 0, 32, 0.5);
    background: #a91640;
}

/* --- HERO SLIDER CONTROLS --- */
.hero-controls {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 100;
}

/* Slide counter: 01 / 04 */
.hero-counter {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.1em;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.hero-counter__current {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.hero-counter__sep {
    margin: 0 0.2em;
    opacity: 0.4;
}

/* Progress pills */
.hero-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #ffffff;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.55);
}

.dot.active {
    width: 10px;
    background: rgba(255, 255, 255, 0.35);
}

.dot.active::after {
    transform: scale(1);
    background: #ffffff;
}

@keyframes dotProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

.dot:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Navigation arrows */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    opacity: 0;
}

.hero:hover .hero-nav,
.hero-nav:focus-visible {
    opacity: 1;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.08);
}

.hero-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.hero-nav--prev {
    left: 24px;
}

.hero-nav--next {
    right: 24px;
}

/* --- HERO SERVICE PAGES (sub-pages, not home slider) --- */
.hero.hero-service {
    height: 70vh;
    min-height: 420px;
    max-height: 650px;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background-size: cover !important;
    background-position: center !important;
}

.hero.hero-service::before {
    background:
        linear-gradient(170deg,
            rgba(30, 10, 15, 0.50) 0%,
            rgba(30, 10, 15, 0.45) 40%,
            rgba(20, 8, 12, 0.75) 100%) !important;
}

.hero.hero-service::after {
    display: none;
}

.hero.hero-service .hero-content {
    position: relative;
    z-index: 10;
}

.hero.hero-service .hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-style: normal;
    font-weight: 800;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
}

.hero.hero-service .hero-content p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    opacity: 0.9;
}

.hero.hero-service .cta-button {
    margin-top: 0.5rem;
}

.hero-nav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .hero-nav {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }

    .hero-nav--prev {
        left: 12px;
    }

    .hero-nav--next {
        right: 12px;
    }

    .hero-counter {
        font-size: 0.75rem;
    }

    .hero-counter__current {
        font-size: 0.95rem;
    }

    .dot {
        width: 24px;
    }

    .dot.active {
        width: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dot.active::after {
        animation: none;
        width: 100%;
    }

    .hero-content__title,
    .hero-content__desc,
    .hero-subtitle,
    .hero.hero-slider .hero-content .cta-button {
        transition: none !important;
    }
}

/* --- SECCIÓN SOBRE NOSOTROS --- */
.text-accent {
    color: var(--primary-color);
}

.about-us {
    padding: 6rem 0;
    background: linear-gradient(180deg, #faf8f7 0%, #ffffff 40%, #faf8f7 100%);
    position: relative;
    overflow: hidden;
}

.about-us::before {
    content: '';
    position: absolute;
    width: 760px;
    height: 420px;
    left: -320px;
    top: -180px;
    pointer-events: none;
    background: color-mix(in srgb, var(--primary-color) 9%, #ffffff);
    border-radius: 28px;
    transform: rotate(-10deg);
    animation: none;
}

.about-us::after {
    content: '';
    position: absolute;
    width: 820px;
    height: 460px;
    right: -360px;
    bottom: -220px;
    pointer-events: none;
    background:
        linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color) 8%, #ffffff) 0%,
            color-mix(in srgb, var(--primary-color) 5%, #ffffff) 100%);
    border-radius: 30px;
    transform: rotate(12deg);
    animation: none;
}

.about-visual {
    position: relative;
    isolation: isolate;
}

.about-visual::before {
    content: '';
    position: absolute;
    inset: -18px;
    pointer-events: none;
    background:
        repeating-linear-gradient(135deg,
            color-mix(in srgb, var(--primary-color) 6%, #ffffff) 0px,
            color-mix(in srgb, var(--primary-color) 6%, #ffffff) 2px,
            transparent 2px,
            transparent 16px);
    border-radius: 22px;
    z-index: 0;
    animation: none;
    opacity: 0.9;
}

@media (prefers-reduced-motion: reduce) {

    .about-us::before,
    .about-us::after,
    .about-visual::before {
        animation: none !important;
    }
}

.about-visual,
.about-visual * {
    position: relative;
    z-index: 1;
}

.about-header-compact {
    margin-bottom: 2.25rem;
    max-width: 72ch;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.about-header-compact.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.about-eyebrow::after {
    content: '';
    display: block;
    width: 32px;
    height: 2px;
    background: var(--primary-color);
    margin-top: 0.5rem;
    border-radius: 2px;
}

.about-header-compact .section-title {
    margin-bottom: 1.1rem;
}

.about-lead {
    margin: 0 0 1.75rem;
    max-width: 64ch;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}

.about-blocks {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    align-items: stretch;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
}

.about-block {
    background: #ffffff;
    border: 2px solid #d8d8d8;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition:
        opacity 0.65s ease,
        transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1),
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
    transition-delay: var(--about-delay, 0s);
    will-change: transform;
}

.about-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-block:nth-child(1) {
    --about-delay: 0.06s;
}

.about-block:nth-child(2) {
    --about-delay: 0.10s;
}

.about-block:nth-child(3) {
    --about-delay: 0.14s;
}

.about-block:nth-child(4) {
    --about-delay: 0.18s;
}

.about-block:nth-child(5) {
    --about-delay: 0.22s;
}

.about-block:nth-child(6) {
    --about-delay: 0.26s;
}

.about-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
    border-color: color-mix(in srgb, var(--primary-color) 28%, #d8d8d8);
}

.about-block:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 18%, #ffffff), 0 18px 40px rgba(0, 0, 0, 0.10);
}

.about-block>* {
    position: relative;
    z-index: 1;
}

.about-block h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-black);
}

.about-block p {
    margin: 0;
    color: #666;
    line-height: 1.7;
}

.about-block--highlight {
    grid-column: 1 / span 7;
    grid-row: 1;
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color) 0%, #6b0018 100%);
    position: relative;
    overflow: hidden;
    border-color: var(--primary-color);
    box-shadow: 0 16px 40px rgba(128, 0, 32, 0.18);
}

.about-block--highlight::before,
.about-block--highlight::after {
    content: '';
    position: absolute;
    inset: -20%;
    pointer-events: none;
}

.about-block--highlight::before {
    background:
        radial-gradient(240px 240px at 18% 25%, rgba(255, 255, 255, 0.18) 0%, transparent 62%),
        radial-gradient(280px 280px at 80% 35%, rgba(255, 255, 255, 0.12) 0%, transparent 64%),
        radial-gradient(220px 220px at 65% 85%, rgba(0, 0, 0, 0.18) 0%, transparent 70%);
    transform: none;
    opacity: 0.25;
}

.about-block--highlight::after {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.10), transparent 45%),
        radial-gradient(260px 260px at 95% 90%, rgba(255, 255, 255, 0.10) 0%, transparent 60%);
    transform: none;
    opacity: 0.18;
}

.about-highlight-inner {
    position: relative;
    z-index: 1;
    max-width: 46ch;
}

.about-block--highlight h3 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 0.9rem;
}

.about-block--highlight p {
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 1.25rem;
}

.about-highlight-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    display: grid;
    gap: 0.5rem;
}

.about-highlight-list li {
    display: flex;
    gap: 0.55rem;
    align-items: baseline;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.about-highlight-list li::before {
    display: none;
}

.about-highlight-list li i {
    font-size: 0.85em;
    opacity: 0.85;
    min-width: 1em;
}

.about-highlight-cta {
    display: inline-block;
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.about-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
    border-radius: 12px;
    background: #ffffff;
    border: 2px solid #d8d8d8;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
    margin: 0;
    max-width: 460px;
}

.about-trust-badge img {
    height: 34px;
    width: auto;
    display: block;
    filter: none;
    opacity: 1;
}

.about-trust-badge span {
    font-weight: 800;
    letter-spacing: 0.01em;
    font-size: 0.95rem;
    line-height: 1.2;
}

.about-trust-badge span {
    color: #444;
}

@media (max-width: 520px) {
    .about-trust-badge {
        width: 100%;
        justify-content: flex-start;
    }

    .about-trust-badge img {
        height: 30px;
    }
}

.about-highlight-cta:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.about-block--stats {
    grid-column: 1 / span 4;
    grid-row: 2;
    display: grid;
    gap: 1.1rem;
    align-content: center;
    border-color: #d8d8d8;
}

.about-stat {
    padding: 1rem 0 1rem 1rem;
    border-top: none;
    border-left: 3px solid var(--primary-color);
}

.about-stat:first-child {
    padding-top: 1rem;
}

.about-stat-number {
    display: flex;
    align-items: baseline;
    font-weight: 900;
    color: var(--primary-color);
    font-size: 2.35rem;
    line-height: 1.1;
    margin-bottom: 0.35rem;
}

.about-stat-suffix {
    font-size: 1.4rem;
    font-weight: 700;
    opacity: 0.7;
    margin-left: 0.1em;
}

.about-stat p {
    margin: 0;
    color: #666;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.9rem;
}

.about-block--process {
    grid-column: 5 / -1;
    grid-row: 2;
    border-color: #d8d8d8;
}

.about-process-lead {
    margin: 0 0 1.1rem;
    color: #5f5f5f;
    line-height: 1.7;
    font-size: 0.98rem;
}

.about-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.85rem;
    position: relative;
}

.about-steps::before {
    content: '';
    position: absolute;
    left: 1.05rem;
    top: 1.2rem;
    bottom: 1.2rem;
    width: 2px;
    background: #ececec;
    z-index: 0;
}

.about-step {
    position: relative;
    padding: 0.2rem 0 0.2rem 3.15rem;
}

.about-step::after {
    counter-increment: aboutStep;
    content: counter(aboutStep);
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, #ffffff);
    border: 2px solid color-mix(in srgb, var(--primary-color) 22%, #d8d8d8);
    z-index: 1;
}

.about-block--process {
    counter-reset: aboutStep;
}

.about-step-body {
    display: grid;
    gap: 0.2rem;
    position: relative;
    z-index: 1;
}

.about-step-title {
    margin: 0;
    font-weight: 900;
    color: var(--text-black);
    letter-spacing: 0.01em;
    font-size: 1.02rem;
}

.about-step-text {
    margin: 0;
    color: #5f5f5f;
    line-height: 1.7;
    font-size: 0.98rem;
}

.about-block--photo {
    grid-column: 8 / -1;
    grid-row: 1;
    padding: 12px;
    overflow: hidden;
    background: #ffffff;
    border-color: #d8d8d8;
}

.about-block--photo::before {
    display: none;
}

.about-photo {
    height: 100%;
    min-height: 220px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(0.92) contrast(1.02);
}

.about-block--values {
    grid-column: 1 / span 6;
    grid-row: 3;
    border-color: #d8d8d8;
}

.about-mini-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    color: #555;
    display: grid;
    gap: 0.6rem;
}

.about-mini-list li {
    line-height: 1.7;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.about-mini-list li i {
    color: var(--primary-color);
    font-size: 0.95rem;
    flex: none;
}

.about-block--location {
    grid-column: 7 / -1;
    grid-row: 3;
    border-color: #d8d8d8;
}

@media (prefers-reduced-motion: reduce) {

    .about-header-compact,
    .about-block {
        transition: none;
        animation: none !important;
    }
}

.about-location-address {
    margin: 0;
    color: #666;
    line-height: 1.7;
}

.about-location-link {
    display: inline-block;
    margin-top: 0.75rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
}

.about-location-link:hover {
    text-decoration: underline;
}

.about-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.about-header .section-title {
    margin-bottom: 1.5rem;
}

.about-subtitle {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 500;
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 5rem;
    position: relative;
    z-index: 1;
}

.pillar-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid #e8e8e8;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.pillar-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(128, 0, 32, 0.03) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.pillar-card:hover {
    transform: translateY(-12px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(128, 0, 32, 0.12);
}

.pillar-card:hover::before,
.pillar-card:hover::after {
    opacity: 1;
}

.pillar-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.08) 0%, rgba(128, 0, 32, 0.04) 100%);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pillar-card:hover .pillar-icon {
    transform: scale(1.2) rotate(360deg);
    background: linear-gradient(135deg, var(--primary-color), #a91640);
    color: white;
}

.pillar-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-black);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.pillar-card:hover h3 {
    color: var(--primary-color);
}

.pillar-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

.about-stats-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.05) 0%, rgba(169, 22, 64, 0.03) 100%);
    padding: 2.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(128, 0, 32, 0.12);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(128, 0, 32, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px);
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.1) 0%, rgba(169, 22, 64, 0.08) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px rgba(128, 0, 32, 0.15);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    display: block;
    line-height: 1;
    position: relative;
    z-index: 1;
    margin-bottom: 0.5rem;
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
    from {
        transform: scale(0.3);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.stat-card p {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.about-cta-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.08) 0%, rgba(169, 22, 64, 0.05) 100%);
    border: 1px solid rgba(128, 0, 32, 0.15);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.about-cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(200px 200px at 20% 50%, rgba(128, 0, 32, 0.1) 0%, transparent 60%),
        radial-gradient(150px 150px at 85% 50%, rgba(128, 0, 32, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.about-contact-info {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.about-contact-info strong {
    color: var(--text-black);
    font-weight: 700;
}

.cta-button-secondary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #a91640);
    color: var(--white);
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
    border-radius: 6px;
    border: 2px solid var(--primary-color);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.2);
    position: relative;
    z-index: 1;
}

.cta-button-secondary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(128, 0, 32, 0.3);
}

@media (max-width: 1024px) {
    .about-blocks {
        grid-template-columns: 1fr;
    }

    .about-block {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
        border-radius: 16px !important;
    }
}

@media (max-width: 768px) {
    .about-us {
        padding: 4.5rem 0;
    }

    .about-lead {
        font-size: 1rem;
    }

    .about-block {
        padding: 1.4rem;
    }

    .about-block--photo {
        padding: 10px;
    }

    .about-photo {
        min-height: 200px;
    }

    .about-stat-number {
        font-size: 2rem;
    }

    .about-block--highlight h3 {
        font-size: 1.2rem;
    }
}

/* --- SECCIÓN DE SERVICIOS --- */
.services {
    padding: 5.5rem 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.services::before {
    display: none;
}

.services::after {
    display: none;
}

@keyframes floatBubbles {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(12px, -12px, 0);
    }
}

.services .container {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 4rem;
    color: var(--text-black);
    position: relative;
    font-weight: 800;
    letter-spacing: -0.03em;
    padding-bottom: 1.5rem;
    line-height: 1.2;
    animation: titleSlideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes titleSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    border-radius: 2px;
    animation: expandWidth 1s ease-out 0.3s forwards;
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 100px;
        opacity: 1;
    }
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #a91640, transparent);
    border-radius: 2px;
    animation: expandWidthSmall 1s ease-out 0.6s forwards;
    opacity: 0;
}

@keyframes expandWidthSmall {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 50px;
        opacity: 1;
    }
}

/* --- SERVICIOS (BOTONES + PANEL) --- */
.services-accordion {
    margin-top: 3rem;
}

.services-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #ededed;
}

.service-tab {
    flex: 1 1 170px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.95rem 1.15rem;
    border-radius: 999px;
    border: 1px solid #e3e3e3;
    background: #ffffff;
    color: #1f1f24;
    font-weight: 750;
    font-size: 1rem;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

.service-tab i {
    color: rgba(128, 0, 32, 0.75);
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.service-tab:hover {
    transform: translateY(-2px);
    border-color: rgba(128, 0, 32, 0.35);
}

.service-tab.is-active {
    background: rgba(128, 0, 32, 0.06);
    border-color: rgba(128, 0, 32, 0.45);
    color: #800020;
}

.service-tab.is-active i {
    color: #800020;
}

.service-tab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(128, 0, 32, 0.18);
    border-color: rgba(128, 0, 32, 0.55);
}

.services-panels {
    margin-top: 1.75rem;
}

.service-panel {
    border: 1px solid #ededed;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
    animation: fadeInUp 0.35s ease-out;
}

.service-panel[hidden] {
    display: none;
}

.service-panel-inner {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 2.25rem;
    padding: 2.25rem;
    align-items: center;
}

.service-panel-text h3 {
    font-size: 1.75rem;
    font-weight: 850;
    color: #18181b;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.service-panel-text p {
    color: #2f2f35;
    line-height: 1.85;
    margin-bottom: 1.25rem;
    font-weight: 500;
    max-width: 62ch;
    font-size: 1.05rem;
}

.service-panel-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.6rem;
}

.service-panel-list li {
    position: relative;
    padding-left: 0.9rem;
    color: #3a3a42;
    font-weight: 650;
    line-height: 1.4;
}

.service-panel-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 4px;
    height: 4px;
    background: rgba(128, 0, 32, 0.55);
    border-radius: 999px;
}

.service-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 850;
    color: #800020;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.15rem;
}

.service-panel-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: rgba(128, 0, 32, 0.35);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.service-panel-link:hover::after {
    transform: scaleX(1);
    background: #800020;
}

.service-panel-media img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid #f0f0f0;
    background: #fafafa;
}

@media (max-width: 1024px) {
    .service-panel-inner {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-panel-media img {
        height: 260px;
    }

    .service-panel-text p {
        max-width: 70ch;
    }
}

@media (max-width: 768px) {
    .service-tab {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .service-panel-inner {
        padding: 1.6rem;
    }

    .service-panel-text h3 {
        font-size: 1.55rem;
    }

    .service-panel-text p {
        font-size: 1.02rem;
        line-height: 1.85;
    }
}

@media (max-width: 1024px) {
    .showcase-card {
        min-height: 240px;
    }

    .card-details {
        padding: 2.5rem 2rem;
    }

    .card-details h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-showcase {
        gap: 1.5rem;
    }

    .showcase-card {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .card-visual {
        height: 200px;
        order: -1;
    }

    .card-details {
        padding: 2rem 1.5rem;
    }

    .card-details h3 {
        font-size: 1.3rem;
    }

    .card-details>p {
        font-size: 0.9rem;
    }

    .icon-wrapper {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .showcase-card:hover {
        transform: translateY(-8px);
    }
}

.service-card {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid #d0d0d0;
    text-align: center;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(128, 0, 32, 0.08), transparent);
    transition: left 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(128, 0, 32, 0.04) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    animation: cardBounceIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:nth-child(1).visible {
    animation-delay: 0.1s;
}

.service-card:nth-child(2).visible {
    animation-delay: 0.25s;
}

.service-card:nth-child(3).visible {
    animation-delay: 0.4s;
}

.service-card:nth-child(4).visible {
    animation-delay: 0.55s;
}

.service-card:nth-child(5).visible {
    animation-delay: 0.7s;
}

.service-card:nth-child(6).visible {
    animation-delay: 0.85s;
}

@keyframes cardBounceIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    60% {
        opacity: 1;
        transform: translateY(-5px) scale(1.02);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-card:hover {
    transform: translateY(-16px) scale(1.05);
    box-shadow: 0 25px 60px rgba(128, 0, 32, 0.20), 0 0 40px rgba(128, 0, 32, 0.08);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #fff8fa 100%);
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover::after {
    opacity: 1;
}



.service-icon-wrapper {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #f5f0f2 0%, #ede8eb 100%);
    border: 2px solid #e0d5db;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.08);
}

.service-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color), #a91640);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.15) translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 12px 35px rgba(128, 0, 32, 0.2);
}

.service-card:hover .service-icon-wrapper::before {
    opacity: 1;
}

.service-icon {
    font-size: 2.4rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    color: var(--primary-color);
    position: relative;
}

.service-card:hover .service-icon {
    transform: scale(1.25);
    color: var(--white);
}

.service-card h3 {
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: -0.3px;
    position: relative;
    z-index: 2;
}

.service-card:hover h3 {
    color: var(--primary-dark);
    transform: translateY(-4px);
}

.service-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex-grow: 1;
    position: relative;
    z-index: 2;
    transition: color 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover p {
    color: #444;
}

.service-card .service-list {
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    list-style-type: none;
    padding: 0;
    color: #666;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.service-card .service-list li {
    padding: 0.7rem 0 0.7rem 2rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card .service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-list li {
    padding-left: 2.4rem;
    color: var(--primary-color);
}

.service-card:hover .service-list li::before {
    transform: scale(1.3) rotate(360deg);
}

/* --- SECCIÓN DE BLOG / NOTICIAS --- */
.blog-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 50%, #f8f9fa 100%);
    position: relative;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-top: 0.75rem;
    font-weight: 400;
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* Home: mantener 3 bloques como en el diseño original (cuando hay ancho suficiente) */
.blog-grid--home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .blog-grid--home {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-grid--home {
        grid-template-columns: 1fr;
    }
}

.blog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(128, 0, 32, 0.18);
}

.blog-image {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8e8e8 0%, #f4f4f4 100%);
    flex-shrink: 0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-image img {
    transform: scale(1.12);
}

.blog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(128, 0, 32, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.blog-card:hover .blog-overlay {
    opacity: 1;
}

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(128, 0, 32, 0.3);
    z-index: 2;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-category {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.4);
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    color: #888;
    font-size: 0.9rem;
}

.blog-meta i {
    margin-right: 0.4rem;
    color: var(--primary-color);
}

.blog-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-black);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-content h3 {
    color: var(--primary-color);
}

.blog-content p {
    color: #666;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-footer {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.blog-link:hover {
    gap: 0.8rem;
}

.blog-link i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-link i {
    transform: translateX(4px);
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* --- DETALLE DE NOTICIA (lectura) --- */
.news-detail {
    margin: 0 auto 3rem auto;
    max-width: 920px;
}

.news-detail__body {
    margin-top: 1.25rem;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-detail__cover {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.news-detail__content {
    padding: 2rem;
}

.news-detail__meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.news-detail__meta i {
    margin-right: 0.4rem;
    color: var(--primary-color);
}

.news-detail__content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.news-detail__content h2 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.75rem 0;
}

.news-detail__content h3 {
    font-size: 1.25rem;
    margin: 1.25rem 0 0.6rem 0;
}

.news-detail__content p {
    margin-bottom: 1rem;
}

.news-detail__content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.news-detail__content img {
    max-width: 100%;
    height: auto;
}

/* --- LISTADO VERTICAL + PAGINACIÓN (Noticias) --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    margin-bottom: 2rem;
}

.news-list .blog-card {
    cursor: pointer;
}

/* Hacemos la tarjeta más “tipo post” (ancha) */
.news-list .blog-card {
    position: relative;
    flex-direction: row;
    border: 1px solid rgba(128, 0, 32, 0.10);
}

/* Separador sutil entre entradas */
.news-list .blog-card:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: -1.125rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(128, 0, 32, 0.22), transparent);
    pointer-events: none;
}

.news-list .blog-image {
    width: 320px;
    height: auto;
    min-height: 220px;
}

.news-list .blog-content {
    padding: 1.75rem;
}

@media (max-width: 900px) {
    .news-list .blog-card {
        flex-direction: column;
    }

    .news-list .blog-image {
        width: 100%;
        height: 240px;
        min-height: unset;
    }
}

.news-pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.news-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(128, 0, 32, 0.25);
    color: var(--primary-color);
    background: var(--white);
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease;
}

.news-pagination a:hover {
    transform: translateY(-1px);
    background: rgba(128, 0, 32, 0.06);
}

.news-pagination a.is-active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* --- SECCIÓN DE TESTIMONIOS --- */
.testimonials {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(101, 24, 46, 0.1), transparent);
}

/* --- ESTILOS DE ICONOS DE SERVICIOS --- */
.service-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #a91640 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.service-card:hover .service-icon-wrapper {
    transform: translateY(-5px) rotate(-5deg);
    box-shadow: 0 15px 40px rgba(128, 0, 32, 0.3);
}

.service-icon {
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.15);
}

/* --- BOTÓN CTA DE SERVICIOS --- */
.service-cta {
    display: inline-block;
    margin-top: auto;
    padding: 0.85rem 2rem;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), #a91640, var(--primary-color));
    transition: left 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.service-cta:hover {
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(128, 0, 32, 0.25);
}

.service-cta:hover::before {
    left: 0;
}

.google-rating-summary {
    text-align: center;
    margin: 3rem auto 4rem;
    padding: 2.25rem 2rem;
    max-width: 700px;
    background: #ffffff;
    border: 2px solid #d8d8d8;
    border-radius: 20px;
    color: var(--text-black);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.google-rating-summary::before {
    display: none;
}

.google-rating-summary::after {
    content: '';
    position: absolute;
    inset: -85% -95%;
    pointer-events: none;
    background:
        linear-gradient(120deg,
            transparent 38%,
            rgba(255, 255, 255, 0.65) 46%,
            color-mix(in srgb, var(--primary-color) 70%, rgba(255, 255, 255, 0.30)) 52%,
            rgba(255, 255, 255, 0.55) 58%,
            transparent 66%);
    transform: translateX(-78%) rotate(12deg);
    opacity: 0;
    filter: blur(0.2px);
}

.google-rating-summary.visible::after {
    opacity: 1;
    animation: ratingSweep 1.25s ease-out 0.08s 1 both;
}

.google-rating-summary .stars-display {
    transform: translateY(0) scale(1);
    transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.google-rating-summary.visible .stars-display {
    transform: translateY(-4px) scale(1.03);
}

.google-rating-summary .average-rating {
    transform: translateY(0) scale(1);
    transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.google-rating-summary.visible .average-rating {
    transform: translateY(-3px) scale(1.03);
}

.google-rating-summary.visible {
    animation: ratingBorder 1.15s ease-out 0.08s 1 both;
}

@keyframes ratingSweep {
    0% {
        transform: translateX(-85%) rotate(12deg);
        opacity: 0;
    }

    18% {
        opacity: 1;
    }

    100% {
        transform: translateX(85%) rotate(12deg);
        opacity: 0;
    }
}

@keyframes ratingBorder {
    0% {
        border-color: #d8d8d8;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
    }

    35% {
        border-color: color-mix(in srgb, var(--primary-color) 45%, #d8d8d8);
        box-shadow: 0 18px 46px rgba(0, 0, 0, 0.12);
    }

    100% {
        border-color: #d8d8d8;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
    }
}

@media (prefers-reduced-motion: reduce) {
    .google-rating-summary.visible::after {
        animation: none !important;
        opacity: 0 !important;
    }

    .google-rating-summary .stars-display,
    .google-rating-summary.visible .stars-display {
        transition: none !important;
        transform: none !important;
    }

    .google-rating-summary .average-rating,
    .google-rating-summary.visible .average-rating {
        transition: none !important;
        transform: none !important;
    }

    .google-rating-summary.visible {
        animation: none !important;
    }
}

.rating-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.average-rating {
    font-size: 3.25rem;
    font-weight: 900;
    color: var(--primary-color);
    text-shadow: none;
    line-height: 1;
}

.stars-display {
    font-size: 1.75rem;
    color: #ffc107;
    text-shadow: none;
    filter: none;
}

.total-reviews {
    font-size: 1rem;
    opacity: 1;
    font-weight: 700;
    color: #666;
    letter-spacing: 0.02em;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #888;
    font-size: 1.1rem;
}

.testimonial-card {
    background: var(--white);
    padding: 2.2rem;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid #d8d8d8;
    overflow: hidden;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: color-mix(in srgb, var(--primary-color) 55%, #d8d8d8);
    transform: none;
}

.testimonial-card:hover::before {
    transform: none;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 96px;
    font-family: Georgia, serif;
    color: var(--primary-color);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
    border-color: color-mix(in srgb, var(--primary-color) 18%, #d8d8d8);
}

.stars {
    color: #ffc107;
    font-size: 1.4rem;
    margin: 0;
    letter-spacing: 3px;
    display: flex;
    gap: 2px;
    filter: none;
}

.testimonial-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.testimonial-meta .review-date {
    color: #8a8a8a;
    font-size: 0.9rem;
    font-weight: 700;
    font-style: normal;
    margin: 0;
}

.testimonial-meta--fallback {
    margin-top: -0.6rem;
}

.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
    font-style: normal;
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
    text-align: left;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f0f0;
    position: relative;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex: none;
    font-weight: 900;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    background: color-mix(in srgb, var(--primary-color) 10%, #ffffff);
    border: 2px solid color-mix(in srgb, var(--primary-color) 18%, #d8d8d8);
}

.testimonial-author-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: var(--text-black);
    font-size: 1.1rem;
    font-weight: 800;
}

.google-logo {
    width: 24px;
    height: 24px;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    filter: brightness(0) invert(1);
}

/* Animación de entrada para las tarjetas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- SECCIÓN CONTACTO --- */
.contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(101, 24, 46, 0.95) 0%, rgba(80, 15, 35, 0.98) 50%, rgba(101, 24, 46, 0.95) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    clip-path: polygon(0 0, 100% 100%, 100% 100%, 0 100%);
}

.contact::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(169, 22, 64, 0.2) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.contact h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    font-weight: 700;
}

.contact>.container>p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.contact-form {
    max-width: 600px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.contact-form select option {
    color: rgba(255, 255, 255, 0.6);
}

.contact-form select option {
    background-color: rgba(101, 24, 46, 0.95);
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: var(--white);
    cursor: pointer;
    user-select: none;
}

/* Excepción: texto negro en el formulario de contacto */
.contact-form-extended .privacy-check {
    color: #333;
}

.privacy-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.privacy-check input[type="checkbox"]:hover {
    opacity: 0.8;
}

.privacy-check span {
    line-height: 1.4;
}

.submit-btn {
    background: linear-gradient(135deg, var(--white) 0%, #f0f0f0 100%);
    color: var(--primary-color);
    padding: 1.2rem 3rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(101, 24, 46, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.submit-btn:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.submit-btn:hover::before {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    background-color: var(--primary-color);
}

/* --- FOOTER --- */
footer {
    background-color: var(--text-black);
    color: var(--white);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-column {
    text-align: left;
}

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 0.8rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #a91640);
    border-radius: 2px;
}

.footer-section {
    margin-bottom: 1.2rem;
}

.footer-section:last-child {
    margin-bottom: 0;
}

.footer-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0 0 0.5rem 0;
}

.footer-label i {
    color: var(--white);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.footer-column p {
    font-size: 0.9rem;
    color: var(--white);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

.footer-column a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.7rem;
}

.footer-list li:last-child {
    margin-bottom: 0;
}

.footer-list a {
    font-size: 0.9rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-list a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-news {
    font-size: 0.9rem;
}

.loading-news {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-copy {
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-weight: 400;
}

@media (max-width: 768px) {
    .footer-top {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-column {
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {

    /* Ocultar top bar en móvil */
    .top-bar {
        display: none;
    }

    /* Header ajustado sin el top-bar */
    .header {
        top: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 16px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    /* Optimización de imágenes para móviles */
    .hero {
        background-size: cover !important;
        background-position: center !important;
        padding: 0 20px 60px 20px;
        min-height: 60vh;
        margin-top: 50px;
    }

    .hero-service {
        padding: 6rem 0 4rem 0;
    }

    .hero-service .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-service .hero-content p {
        font-size: 1rem;
    }

    /* Optimización específica para contacto en móvil */
    .hero-contact {
        background-image: linear-gradient(rgba(18, 18, 22, 0.5), rgba(18, 18, 22, 0.5)), url('img/contacto-slider.webp') !important;
        background-size: cover !important;
        background-position: center !important;
        background-attachment: scroll !important;
        min-height: 50vh;
        padding: 0 20px 60px 20px;
    }

}

/* --- CÓDIGO NUEVO PARA EL MENÚ DESPLEGABLE --- */

/* 1. Preparamos el elemento padre para que el menú flote respecto a él */
.nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

/* 2. La flechita pequeña al lado de Servicios */
.arrow {
    font-size: 0.6rem;
    margin-left: 5px;
    vertical-align: middle;
    transition: transform 0.3s;
}

/* Girar la flecha cuando pasamos el ratón */
.nav-item.dropdown:hover .arrow {
    transform: rotate(180deg);
}

/* 3. El menú oculto (Caja blanca) */
.dropdown-menu {
    display: none;
    /* Oculto por defecto */
    position: absolute;
    /* Flota encima de la web */
    top: 100%;
    /* Justo debajo del botón */
    left: 0;
    background-color: var(--white);
    min-width: 260px;
    /* Ancho suficiente para los textos largos */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    /* Sombra para resaltar */
    border-top: 4px solid var(--primary-color);
    /* Línea burdeos arriba */
    padding: 0;
    z-index: 9999;
    /* Asegura que esté por encima de todo */
    border-radius: 0 0 5px 5px;
}

/* 4. Mostrar el menú al pasar el ratón (Hover) */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

/* 5. Estilo de los enlaces dentro del desplegable */
.dropdown-menu li {
    width: 100%;
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-black);
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
    text-align: left;
}

/* Quitar borde al último elemento */
.dropdown-menu li:last-child a {
    border-bottom: none;
}

/* Efecto al pasar el ratón por las opciones */
.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    /* Fondo gris muy suave */
    color: var(--primary-color);
    /* Letra Burdeos */
    padding-left: 25px;
    /* Pequeño desplazamiento a la derecha */
}

/* --- AJUSTES PARA MÓVIL --- */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        /* En móvil no flota, empuja el contenido */
        box-shadow: none;
        border-top: none;
        width: 100%;
        background-color: #f9f9f9;
    }

    .dropdown-menu li a {
        padding-left: 30px;
        /* Más indentación para que se note que es submenú */
        font-size: 0.9rem;
    }

    /* Blog responsive */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .blog-header {
        margin-bottom: 2.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .blog-image {
        height: 200px;
    }

    .blog-content {
        padding: 1.5rem;
    }

    .blog-content h3 {
        font-size: 1.2rem;
    }

    /* Dropdown en móvil */
    .dropdown-menu {
        display: none;
        position: static;
        background-color: rgba(0, 0, 0, 0.05);
        width: 100%;
        padding: 1rem 0;
        margin-top: 0.5rem;
        box-shadow: none;
    }

    .dropdown-menu.show {
        display: flex;
        flex-direction: column;
    }

    .dropdown-menu li {
        padding: 0.5rem 1rem;
    }

    .dropdown-menu a {
        color: var(--primary-color);
        font-weight: 500;
    }
}

/* --- PÁGINA DE CONTACTO --- */
.hero-contact {
    background-image: linear-gradient(rgba(18, 18, 22, 0.42), rgba(18, 18, 22, 0.42)), url('img/contacto-slider.webp') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 50px;
}

/* --- PÁGINA DE NOTICIAS --- */
.hero-news {
    background-image: linear-gradient(rgba(18, 18, 22, 0.42), rgba(18, 18, 22, 0.42)), url('img/noticias.webp') !important;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin-top: 50px;
}

.welcome-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #fff8fa 0%, #ffffff 50%, #f9f5f7 100%);
}

.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.welcome-image {
    text-align: center;
}

.welcome-logo {
    max-width: 100%;
    height: auto;
    display: inline-block;
    filter: drop-shadow(0 10px 30px rgba(128, 0, 32, 0.15));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.welcome-logo:hover {
    transform: scale(1.05);
}

.welcome-local-image {
    max-width: 100%;
    height: auto;
    display: inline-block;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(128, 0, 32, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
}

.welcome-local-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(128, 0, 32, 0.3);
}

.welcome-text h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2.2rem;
}

.welcome-text p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.welcome-text p:last-child {
    margin-bottom: 0;
}

.contact-info-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f4f4f4 0%, #efefef 50%, #f4f4f4 100%);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.contact-info-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #fff8fa 0%, #ffffff 50%, #f9f5f7 100%);
    border-radius: 12px;
    border: 1px solid rgba(128, 0, 32, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.contact-info-card:nth-child(1) {
    animation-delay: 0s;
}

.contact-info-card:nth-child(2) {
    animation-delay: 0.1s;
}

.contact-info-card:nth-child(3) {
    animation-delay: 0.2s;
}

.contact-info-card:nth-child(4) {
    animation-delay: 0.3s;
}

.contact-info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(128, 0, 32, 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.contact-info-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.news-detail__content ul,
.news-detail__content ol {
    list-style: revert;
    padding-left: 1.25rem;
    margin: 0.25rem 0 1rem 0;
}

.news-detail__content li {
    margin: 0.35rem 0;
}

.news-detail__content blockquote {
    margin: 1.25rem 0;
    padding: 0.9rem 1rem;
    border-left: 4px solid rgba(128, 0, 32, 0.35);
    background: rgba(128, 0, 32, 0.04);
    border-radius: 12px;
}

.news-detail__content hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(128, 0, 32, 0.20), transparent);
    margin: 1.75rem 0;
}

.news-detail__content a {
    text-underline-offset: 3px;
}

.contact-info-card p {
    color: #666;
    margin-bottom: 0;
}

.contact-info-card a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.3s;
}

.contact-info-card a:hover {
    opacity: 0.8;
}

/* --- SECCIÓN MAPA --- */
.map-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f9f5f7 0%, #fff8fa 50%, #ffffff 100%);
}

.map-section .section-title {
    margin-bottom: 3rem;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- SECCIÓN FORMULARIO CONTACTO --- */
.contact-form-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f4f4f4 0%, #efefef 50%, #f4f4f4 100%);
}

.contact-form-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-form-content {
    background: linear-gradient(135deg, #fff8fa 0%, #ffffff 50%, #f9f5f7 100%);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(128, 0, 32, 0.1);
}

.contact-form-content .section-title {
    text-align: left;
    margin-bottom: 0.5rem;
}

.contact-form-content .section-subtitle {
    text-align: left;
    margin-bottom: 2rem;
    color: #666;
}

.contact-form-extended {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid rgba(128, 0, 32, 0.2);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: var(--white);
    color: var(--text-black);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--white);
    cursor: pointer;
}

.privacy-check input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.submit-btn-large {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    align-self: flex-start;
    display: inline-block;
}

.submit-btn-large:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(128, 0, 32, 0.3);
}

/* --- SIDEBAR CONTACTO --- */
.contact-form-side {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-sidebar-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.contact-sidebar-card:hover {
    box-shadow: 0 8px 24px rgba(128, 0, 32, 0.15);
    transform: translateY(-3px);
}

.contact-sidebar-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
}

.contact-sidebar-card h3 i {
    font-size: 1.3rem;
}

.contact-sidebar-card p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* --- RESPONSIVE CONTACTO --- */
@media (max-width: 768px) {
    .welcome-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .welcome-text h2 {
        font-size: 1.5rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .map-container {
        height: 300px;
    }

    .contact-form-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-content {
        padding: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-form-section {
        padding: 3rem 0;
    }

    .contact-info-section {
        padding: 3rem 0;
    }

    .map-section {
        padding: 3rem 0;
    }

    .contact-form-extended {
        gap: 1rem;
    }

    .welcome-section {
        padding: 3rem 0;
    }
}

/* --- ESTILOS PARA PÁGINAS DE SERVICIOS --- */
.hero-service {
    background: linear-gradient(135deg, #800020 0%, #570016 100%);
    color: var(--white);
    padding: 12rem 0 8rem 0;
    text-align: center;
}

.hero-service .hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-service .hero-content p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- DETALLE DE SERVICIO --- */
.service-detail {
    padding: 5rem 0;
    background-color: var(--white);
}

.service-detail-content {
    text-align: center;
}

.service-detail .section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 3rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.detail-card {
    background: linear-gradient(135deg, #fff8fa 0%, #ffffff 50%, #f9f5f7 100%);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid rgba(128, 0, 32, 0.2);
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.detail-card:nth-child(1) {
    animation-delay: 0s;
}

.detail-card:nth-child(2) {
    animation-delay: 0.1s;
}

.detail-card:nth-child(3) {
    animation-delay: 0.2s;
}

.detail-card:nth-child(4) {
    animation-delay: 0.3s;
}

.detail-card:nth-child(5) {
    animation-delay: 0.4s;
}

.detail-card:nth-child(6) {
    animation-delay: 0.5s;
}

.detail-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(128, 0, 32, 0.25);
    border-color: rgba(128, 0, 32, 0.4);
}

.detail-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.detail-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.detail-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.detail-list {
    list-style: none;
    padding: 0;
}

.detail-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
    font-size: 0.95rem;
}

.detail-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* --- SECCIÓN POR QUÉ ELEGIRNOS --- */
.why-choose-us {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f9f5f7 0%, #fff8fa 50%, #ffffff 100%);
}

.why-choose-us .section-title {
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.benefit-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    grid-template-areas:
        "number title"
        "number text";
    gap: 0 1.5rem;
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.benefit-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.benefit-item:hover::after {
    transform: scaleX(1);
}

.benefit-item:nth-child(1) {
    animation-delay: 0s;
}

.benefit-item:nth-child(2) {
    animation-delay: 0.1s;
}

.benefit-item:nth-child(3) {
    animation-delay: 0.2s;
}

.benefit-item:nth-child(4) {
    animation-delay: 0.3s;
}

.benefit-item:nth-child(5) {
    animation-delay: 0.4s;
}

.benefit-item:nth-child(6) {
    animation-delay: 0.5s;
}

.benefit-number {
    grid-area: number;
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #e0e0e0;
    /* Color inicial sutil */
    line-height: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5px;
    border-right: 2px solid #f5f5f5;
    transition: all 0.4s ease;
    position: static;
    /* Reset absolute */
    width: auto;
    height: auto;
    background: transparent;
    -webkit-text-stroke: 0;
}

.benefit-item:hover .benefit-number {
    color: var(--primary-color);
    border-right-color: var(--primary-color);
    transform: scale(1.1);
}

.benefit-item h3 {
    grid-area: title;
    color: #333;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
    transition: color 0.3s ease;
}

.benefit-item:hover h3 {
    color: var(--primary-color);
}

.benefit-item p {
    grid-area: text;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --- RESPONSIVE PARA PÁGINAS DE SERVICIO --- */
@media (max-width: 768px) {
    .hero-service {
        padding: 8rem 0 4rem 0;
    }

    .hero-service .hero-content h1 {
        font-size: 2rem;
    }

    .hero-service .hero-content p {
        font-size: 1rem;
    }

    .service-detail {
        padding: 3rem 0;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .detail-card {
        padding: 1.5rem;
    }

    .why-choose-us {
        padding: 3rem 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefit-item {
        grid-template-columns: 50px 1fr;
        gap: 0 1rem;
        padding: 1.5rem;
    }

    .benefit-number {
        font-size: 2rem;
    }
}

/* --- BREADCRUMBS --- */
.breadcrumbs {
    background: linear-gradient(135deg, #f4f4f4 0%, #efefef 50%, #f4f4f4 100%);
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(128, 0, 32, 0.1);
    font-size: 0.95rem;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumbs a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.8rem;
    color: #999;
    font-weight: 300;
}

.breadcrumbs .current {
    color: #666;
    font-weight: 600;
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 0.8rem 0;
        font-size: 0.85rem;
    }

    .breadcrumbs .separator {
        margin: 0 0.5rem;
    }
}

/* Optimización adicional para pantallas muy pequeñas (menos de 480px) */
@media (max-width: 480px) {
    .hero {
        min-height: 50vh;
        padding: 0 15px 50px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: 50px;
    }

    .hero-service {
        padding: 4rem 0 3rem 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-contact {
        background-image: linear-gradient(rgba(18, 18, 22, 0.55), rgba(18, 18, 22, 0.55)), url('img/contacto-slider.webp') !important;
        background-size: cover !important;
        background-position: center !important;
        background-attachment: scroll !important;
        min-height: 50vh;
        padding: 0 15px 50px 15px;
        margin-top: 50px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .hero-service .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .hero-service .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .cta-button {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
    }
}

/* Optimización específica para contacto en landscape muy comprimido */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding-top: 60px;
        padding-bottom: 10px;
        min-height: auto;
        height: auto;
    }

    .hero-service {
        padding: 0.8rem 0 0.5rem 0;
    }

    .hero-contact {
        background-size: contain !important;
        background-position: center !important;
    }

    .hero-service .hero-content h1 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .hero-service .hero-content p {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    .cta-button {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Orientación horizontal en móviles (landscape) */
@media (max-height: 600px) and (orientation: landscape) {
    .top-bar {
        height: 40px;
        display: none;
    }

    .header {
        top: 0;
        height: auto;
        padding: 0.5rem 0;
    }

    .navbar {
        padding: 0.5rem 4%;
    }

    .logo-img {
        height: 40px;
    }

    .hamburger {
        display: block;
    }

    .nav-menu {
        top: 50px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 8px 0;
        padding: 0.3rem 0;
    }

    .nav-link {
        font-size: 0.9rem;
    }

    .hero {
        min-height: auto;
        height: auto;
        padding: 80px 20px 20px 20px;
    }

    .hero-service {
        padding: 1.5rem 0 1rem 0;
    }

    .hero-contact {
        background-attachment: scroll !important;
        background-size: contain !important;
        background-position: center top !important;
        min-height: auto;
        height: auto;
    }

    .hero-service .hero-content h1 {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }

    .hero-service .hero-content p {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .cta-button {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
}

/* --- COOKIE BANNER (consentimiento) --- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    padding: 14px 14px;
    background: color-mix(in srgb, var(--white) 92%, var(--bg-light));
    border-top: 1px solid color-mix(in srgb, var(--text-black) 14%, transparent);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.cookie-banner--hidden {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
}

.cookie-banner__inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cookie-banner__text {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-black);
}

.cookie-banner__link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-banner__link:hover {
    color: var(--primary-dark);
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--text-black) 18%, transparent);
    background: var(--white);
    color: var(--text-black);
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.cookie-banner__btn--primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.cookie-banner__btn:hover {
    transform: translateY(-1px);
}

.cookie-banner__btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.cookie-banner__btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary-color) 60%, var(--white));
    outline-offset: 3px;
}

.has-cookie-banner {
    padding-bottom: 86px;
}

@media (max-width: 720px) {
    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner__actions {
        width: 100%;
    }

    .cookie-banner__btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .cookie-banner,
    .cookie-banner__btn {
        transition: none;
    }

    .cookie-banner__btn:hover {
        transform: none;
    }
}

img[src*='asesoria-laboral.webp'] {
    object-position: center 75%;
}

/* --- WHATSAPP FLOATING BUTTON --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5) translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
}

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

.whatsapp-float:hover {
    background: #1ebe57;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.6);
    transform: scale(1.1) translateY(-2px);
}

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

.whatsapp-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

/* Pulse ring animation */
.whatsapp-float.is-visible::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 3px solid rgba(37, 211, 102, 0.5);
    animation: whatsappPulse 2s ease-out infinite;
    pointer-events: none;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.35);
        opacity: 0;
    }
    100% {
        transform: scale(1.35);
        opacity: 0;
    }
}

/* Tooltip */
.whatsapp-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 54px;
        height: 54px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }

    .whatsapp-tooltip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .whatsapp-float.is-visible::before {
        animation: none;
    }

    .whatsapp-float {
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }
}
