:root {
    --orange: #c65b2e;
    --orange-dark: #aa4825;
    --orange-light: #ff8a5c;
    --navy: #101828;
    --ink: #1e293b;
    --muted: #667085;
    --soft: #f4f5f7;
    --white: #ffffff;
    --line: #e5e7eb;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 999px;

    --shadow-sm: 0 4px 16px rgba(16, 24, 40, 0.06);
    --shadow-md: 0 18px 40px rgba(16, 24, 40, 0.10);
    --shadow-lg: 0 30px 60px rgba(16, 24, 40, 0.16);
    --shadow-orange: 0 16px 34px rgba(198, 91, 46, 0.28);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --fast: 0.2s;
    --slow: 0.4s;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Open Sans", Arial, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--fast) var(--ease);
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
    border-radius: 4px;
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.reveal-on-scroll {
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.js-ready .reveal-on-scroll {
    opacity: 0;
    transform: translateY(26px);
}

.js-ready .reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .js-ready .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

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

.container {
    width: min(1140px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    box-shadow: 0 1px 0 rgba(16, 24, 40, 0.07), 0 10px 24px rgba(16, 24, 40, 0.05);
}

.header-inner {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand img {
    width: 180px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 15px;
    font-weight: 700;
}

.main-nav a {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    color: #101828;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--orange);
    border-radius: var(--radius-full);
    transition: right var(--fast) var(--ease);
}

.main-nav a:hover,
.main-nav a:focus-visible {
    color: var(--orange);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
    right: 0;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--navy);
    margin: 6px 0;
    transition: transform var(--fast) var(--ease), opacity var(--fast) var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hero {
    overflow: hidden;
    padding: 40px 0 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.85fr 1fr;
    gap: 0;
    align-items: stretch;
}

.hero-copy {
    padding: 44px 0 20px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: var(--orange);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    flex: none;
    background: var(--orange);
    border-radius: var(--radius-full);
}

.hero h1,
.section h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(32px, 4.2vw + 8px, 54px);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.hero h1 {
    font-size: clamp(34px, 4.8vw + 10px, 63px);
}

.hero-text {
    width: min(620px, 86%);
    margin: 18px 0 30px;
    font-size: 18px;
    color: #475467;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: var(--radius-full);
    padding: 12px 26px;
    font-weight: 700;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease), background var(--fast) var(--ease), color var(--fast) var(--ease);
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    background: var(--orange-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(198, 91, 46, 0.34);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    border-color: var(--orange);
    color: var(--orange);
    background: transparent;
}

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

.hero-photo {
    min-height: 510px;
    border-radius: var(--radius-lg);
    background: url("../imagenes/inicio1.jpg") center / cover no-repeat;
    box-shadow: var(--shadow-md);
}

.hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: -60px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero-stat {
    padding: 28px 20px;
    text-align: center;
    border-left: 1px solid var(--line);
}

.hero-stat:first-child {
    border-left: 0;
}

.hero-stat svg {
    width: 26px;
    height: 26px;
    margin: 0 auto 10px;
    display: block;
    stroke: var(--orange);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-stat strong {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hero-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-top: 50px;
    padding-bottom: 70px;
}

.highlight-card {
    position: relative;
    min-height: 190px;
    border-radius: var(--radius-md);
    padding: 30px 36px;
    background: linear-gradient(155deg, var(--orange), var(--orange-dark));
    color: var(--white);
    font-size: 22px;
    line-height: 1.3;
    font-weight: 800;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.highlight-card::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.wide-photo {
    min-height: 340px;
    border-radius: var(--radius-md);
    background: url("../imagenes/inicio2.jpg") center 35% / cover no-repeat;
    box-shadow: var(--shadow-md);
}

.section {
    padding: 80px 0;
}

.inner-hero {
    padding: 70px 0;
    background: #f8fafc;
    overflow: hidden;
}

.inner-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 44px;
    align-items: center;
}

.inner-hero h1 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(32px, 4.4vw + 8px, 58px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.inner-hero p {
    max-width: 680px;
    margin: 18px 0 0;
    font-size: 18px;
    color: #475467;
}

.inner-hero-image {
    min-height: 360px;
    border-radius: var(--radius-lg);
    background: url("../imagenes/inicio1.jpg") center / cover no-repeat;
    box-shadow: var(--shadow-sm);
}

.inner-hero-about .inner-hero-image {
    background-image: url("../imagenes/inicio2.jpg");
    background-position: bottom center;
}

.inner-hero-services .inner-hero-image {
    background-image: url("../imagenes/inicio1.jpg");
}

.archivo-vacio {
    padding: 60px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 16px;
}

.post-detail-hero {
    padding: 56px 0 30px;
    background: #f8fafc;
}

.post-detail-hero h1 {
    margin: 10px 0 12px;
    color: var(--navy);
    font-size: clamp(28px, 3.6vw + 8px, 46px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
    max-width: 900px;
}

.post-detail-fecha {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-detail-imagen {
    margin-top: -20px;
    min-height: 340px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-md);
}

.post-detail-volver {
    margin-top: 40px;
}

.post-detail-notfound {
    text-align: center;
}

.post-detail-notfound .hero-text {
    margin: 14px auto 28px;
}

.post-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
    margin-top: 48px;
}

.post-detail-sidebar {
    position: sticky;
    top: 110px;
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
}

.post-detail-sidebar h3 {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--orange);
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.post-detail-related {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-detail-related li {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.post-detail-related li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.post-detail-related a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.post-detail-related img {
    width: 54px;
    height: 54px;
    flex: none;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.post-detail-related span {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--navy);
    transition: color var(--fast) var(--ease);
}

.post-detail-related a:hover span {
    color: var(--orange);
}

.contenido-prose {
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
}

.contenido-prose p {
    margin: 0 0 20px;
}

.contenido-prose h2 {
    margin: 36px 0 16px;
    color: var(--navy);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
}

.contenido-prose h3 {
    margin: 28px 0 14px;
    color: var(--navy);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
}

.contenido-prose ul,
.contenido-prose ol {
    margin: 0 0 20px;
    padding-left: 22px;
}

.contenido-prose li {
    margin-bottom: 8px;
}

.contenido-prose blockquote {
    margin: 28px 0;
    padding: 6px 0 6px 20px;
    border-left: 3px solid var(--orange);
    font-style: italic;
    color: var(--muted);
}

.contenido-prose img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 8px 0 24px;
    box-shadow: var(--shadow-sm);
}

.contenido-prose a {
    color: var(--orange);
    text-decoration: underline;
}

.contenido-prose strong {
    color: var(--navy);
}

@media (max-width: 900px) {
    .post-detail-grid {
        grid-template-columns: 1fr;
    }

    .post-detail-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .post-detail-imagen {
        margin-top: 0;
        min-height: 220px;
    }

    .contenido-prose {
        font-size: 16px;
    }
}

.section-dark {
    background: #f4f5f7;
}

.section-title {
    margin-bottom: 40px;
}

.centered {
    text-align: center;
}

.service-summary-grid,
.detail-grid,
.post-grid,
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.summary-card {
    min-height: 280px;
    border-radius: var(--radius-lg);
    padding: 32px;
    background: linear-gradient(155deg, var(--orange), var(--orange-dark));
    color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.summary-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.summary-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.summary-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--white);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.summary-card h3 {
    margin: 0 0 8px;
    color: var(--white);
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: center;
}

.summary-card p {
    margin: 0;
    opacity: 0.92;
    text-align: center;
}

.two-col,
.why-grid,
.split-title {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.why-grid {
    align-items: center;
}

.about-section p,
.split-title p {
    font-size: 17px;
}

.about-cards {
    display: grid;
    gap: 20px;
}

.about-cards article {
    min-height: 190px;
    border-radius: var(--radius-md);
    padding: 28px;
    background: linear-gradient(155deg, var(--orange), var(--orange-dark));
    color: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.about-cards article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.about-intro {
    max-width: 760px;
    margin-bottom: 40px;
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(170px, 1fr));
    gap: 20px;
}

.about-card {
    grid-column: 1;
    grid-row: 1;
    border-radius: var(--radius-md);
    padding: 26px;
    background: var(--soft);
    box-shadow: var(--shadow-sm);
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.about-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: rgba(198, 91, 46, 0.12);
}

.about-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--orange);
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-card h3 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 19px;
    line-height: 1.25;
}

.about-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.about-card-alt {
    grid-column: 2;
    grid-row: 2;
    background: linear-gradient(155deg, var(--orange), var(--orange-dark));
}

.about-card-alt .about-card-icon {
    background: rgba(255, 255, 255, 0.18);
}

.about-card-alt .about-card-icon svg {
    stroke: #fff;
}

.about-card-alt h3,
.about-card-alt p {
    color: #fff;
}

.about-card-alt p {
    opacity: 0.9;
}

.about-photo {
    border-radius: var(--radius-md);
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: var(--shadow-sm);
    min-height: 170px;
}

.about-photo-desk {
    grid-column: 2;
    grid-row: 1;
    background-image: url("../imagenes/about-inicio3.jpg");
    background-position: center;
}

.about-photo-team {
    grid-column: 3;
    grid-row: 1 / span 2;
    background-image: url("../imagenes/quienes-somos-final.jpg");
    background-position: center 35%;
}

.about-photo-hands {
    grid-column: 1;
    grid-row: 2;
    background-image: url("../imagenes/about-asesoramiento.jpg");
    background-position: center;
}

.about-cards h3,
.why-list h3,
.detail-card h3 {
    margin: 0 0 10px;
    color: inherit;
    font-size: 24px;
    line-height: 1.2;
}

.why-section {
    background: #fff;
}

.why-section-dark {
    position: relative;
    overflow: hidden;
    background: var(--navy);
    color: #fff;
}

.why-section-dark::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(198, 91, 46, 0.32), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
}

.why-section-dark .eyebrow {
    color: var(--orange-light);
}

.why-section-dark .eyebrow::before {
    background: var(--orange-light);
}

.why-section-dark h2 {
    color: #fff;
}

.why-section-dark .quote-box {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.16);
}

.why-section-dark .quote-box::before {
    color: var(--orange-light);
    opacity: 0.45;
}

.why-section-dark .quote-box h3 {
    color: #fff;
}

.why-section-dark .quote-box p em {
    color: rgba(255, 255, 255, 0.75);
}

.why-section-dark .director strong {
    color: #fff;
}

.why-section-dark .director span {
    color: rgba(255, 255, 255, 0.6);
}

.why-section-dark .why-list article {
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

.why-section-dark .why-list h3 {
    color: #fff;
}

.why-section-dark .why-list p {
    color: rgba(255, 255, 255, 0.68);
}

.quote-box {
    position: relative;
    margin-top: 30px;
    border-radius: var(--radius-lg);
    padding: 44px 36px 36px;
    background: #f8fafc;
    border: 1px solid var(--line);
    text-align: center;
}

.quote-box::before {
    content: "\201C";
    position: absolute;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 64px;
    line-height: 1;
    color: var(--orange);
    opacity: 0.3;
}

.quote-box h3 {
    margin: 0 0 16px;
    font-size: 27px;
    line-height: 1.25;
    color: var(--navy);
}

.director {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.director img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
}

.director strong,
.director span {
    display: block;
}

.director span {
    color: var(--muted);
}

.why-list {
    display: grid;
    gap: 0;
    border-left: 0;
}

.why-list article {
    padding: 0 0 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.services-detail {
    background: #f8fafc;
}

.split-title {
    margin-bottom: 36px;
}

.detail-grid {
    grid-template-columns: repeat(2, 1fr);
    counter-reset: detail-index;
}

.detail-card {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 240px;
    border-radius: var(--radius-md);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.detail-card::before {
    counter-increment: detail-index;
    content: counter(detail-index, decimal-leading-zero);
    position: absolute;
    top: 4px;
    right: 20px;
    font-size: 40px;
    font-weight: 800;
    color: rgba(198, 91, 46, 0.1);
    line-height: 1;
    pointer-events: none;
}

.detail-card h3 {
    position: relative;
    padding-right: 54px;
}

.detail-card-media {
    flex: none;
    width: 150px;
    position: relative;
}

.detail-card-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.detail-image-training {
    background-image: url("../imagenes/servicio-capacitacion.jpg");
}

.detail-image-consulting {
    background-image: url("../imagenes/servicio-consultoria.jpg");
}

.detail-image-advisory {
    background-image: url("../imagenes/servicio-asesoramiento.jpg");
}

.detail-image-recruitment {
    background-image: url("../imagenes/servicio-reclutamiento.jpg");
}

.detail-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.detail-card-body {
    flex: 1;
    min-width: 0;
    padding: 30px 32px;
}

.detail-card p {
    margin: 0 0 20px;
}

.detail-card ul {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-card li {
    flex: none;
    white-space: nowrap;
    border-radius: 999px;
    background: rgba(198, 91, 46, 0.1);
    color: var(--orange);
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 800;
}

.posts-section .section-title {
    margin-bottom: 24px;
}

.post-card-fecha {
    display: block;
    margin: 16px 18px 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ver-todas-link {
    display: block;
    margin-top: 32px;
    text-align: center;
    color: var(--orange);
    font-size: 14px;
    font-weight: 400;
}

.ver-todas-link:hover {
    text-decoration: underline;
}

.post-card {
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

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

.post-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform var(--slow) var(--ease);
}

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

.post-card h3 {
    min-height: 118px;
    margin: 0;
    padding: 18px 18px 10px;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.25;
}

.post-card a {
    display: inline-block;
    margin: 0 18px 18px;
    color: var(--orange);
    font-weight: 800;
}

.post-card a::after {
    content: "\2192";
    display: inline-block;
    margin-left: 6px;
    transition: margin-left var(--fast) var(--ease);
}

.post-card a:hover::after {
    margin-left: 10px;
}

.soft-bg {
    background: #f8fafc;
}

.testimonial-grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
}

.testimonial-grid article {
    text-align: center;
    border-radius: var(--radius-md);
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.testimonial-grid strong {
    display: block;
    color: var(--navy);
    font-size: 17px;
}

.testimonial-role {
    display: block;
    margin: 4px 0 16px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.testimonial-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 8;
    overflow: hidden;
}

.testimonial-text.is-expanded {
    display: block;
    overflow: visible;
}

.testimonial-toggle {
    display: none;
    margin-top: 8px;
    border: 0;
    background: none;
    padding: 0;
    color: var(--orange);
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
}

.testimonial-toggle.is-visible {
    display: inline-block;
}

.testimonial-grid article:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.testimonial-grid p::before {
    content: "\201C";
    color: var(--orange);
    font-weight: 800;
}

.testimonial-grid p::after {
    content: "\201D";
    color: var(--orange);
    font-weight: 800;
}

.company-logo {
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    object-fit: contain;
    background: #f2f4f7;
}

.empty-logo {
    border: 1px solid var(--line);
    background-color: #f2f4f7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a0aec0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3Cpath d='M3 12h18'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 28px 28px;
}

.contact-section {
    background: #f8fafc;
}

.contact-hero {
    background: #fff;
}

.contact-info-card {
    border-radius: var(--radius-lg);
    padding: 34px;
    background: linear-gradient(155deg, var(--orange), var(--orange-dark));
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.contact-info-card h2 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 34px;
}

.contact-info-card h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 26px;
}

.contact-columns {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: stretch;
}

.contact-columns .contact-info-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-columns .contact-form {
    width: 100%;
    margin: 0;
}

.contact-info-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.contact-info-card li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.contact-info-card li:last-child {
    border-bottom: 0;
}

.contact-info-card span {
    display: block;
    font-weight: 800;
}

.service-page-card {
    min-height: 300px;
}

.cta-band {
    background: #fff;
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-radius: var(--radius-lg);
    padding: 42px;
    background: linear-gradient(135deg, #f4f5f7, #eaedf1);
    box-shadow: var(--shadow-sm);
}

.cta-inner h2 {
    max-width: 760px;
    font-size: 38px;
}

.contact-form {
    width: min(720px, 100%);
    margin: 0 auto;
}

.contact-form label {
    display: block;
    margin-bottom: 14px;
    color: var(--navy);
    font-weight: 700;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 6px;
    border: 1.5px solid #d0d5dd;
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    font: inherit;
    color: var(--ink);
    background: var(--white);
    transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 4px rgba(198, 91, 46, 0.12);
}

.contact-form button {
    width: 100%;
    border: 0;
}

.campo-oculto {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-mensaje {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
}

.form-mensaje-ok {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #15803d;
}

.form-mensaje-error {
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #b42318;
}

.site-footer {
    background: #141414;
    color: #e5e7eb;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 70px 0;
}

.footer-brand,
.footer-contact {
    text-align: center;
}

.footer-brand img {
    width: 280px;
    margin: 0 auto 18px;
}

.footer-contact h2 {
    margin: 0 0 20px;
    color: var(--white);
    font-size: 30px;
}

.footer-contact ul {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 12px;
}

.footer-contact span {
    display: block;
    color: var(--orange);
    font-weight: 800;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--orange);
    color: var(--white);
    font-weight: 800;
    transition: transform var(--fast) var(--ease), background var(--fast) var(--ease);
}

.social-links a:hover {
    background: var(--orange-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom-inner {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #25d366;
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35);
    transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 18px 38px rgba(37, 211, 102, 0.45);
}

.whatsapp-float span {
    display: none;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.reveal {
    animation: fadeUp 0.75s ease both;
}

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

@media (max-width: 1024px) {
    .hero-grid,
    .inner-hero-grid,
    .two-col,
    .why-grid,
    .split-title,
    .contact-columns,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-text {
        width: 100%;
    }

    .hero-photo {
        min-height: 430px;
    }

    .hero-stats {
        margin-top: -40px;
    }

    .hero-bottom {
        grid-template-columns: 1fr;
        align-items: stretch;
        margin-top: 30px;
        padding-bottom: 60px;
    }

    .wide-photo {
        min-height: 260px;
    }

    .service-summary-grid,
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: none;
    }

    .about-card,
    .about-card-alt,
    .about-photo-desk,
    .about-photo-hands {
        grid-column: auto;
        grid-row: auto;
    }

    .about-photo-team {
        grid-column: span 2;
        grid-row: auto;
        min-height: 280px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1140px);
    }

    .header-inner {
        min-height: 74px;
    }

    .brand img {
        width: 150px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: absolute;
        left: 0;
        right: 0;
        top: 74px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        box-shadow: 0 18px 35px rgba(16, 24, 40, 0.12);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 15px 24px;
        border-top: 1px solid var(--line);
    }

    .hero {
        padding-top: 20px;
    }

    .hero-copy {
        padding-top: 30px;
        text-align: center;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-photo {
        min-height: 360px;
    }

    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        margin-top: -16px;
    }

    .wide-photo {
        min-height: 220px;
    }

    .hero-stat {
        padding: 16px 8px;
    }

    .hero-stat svg {
        width: 20px;
        height: 20px;
        margin-bottom: 6px;
    }

    .hero-stat strong {
        font-size: 22px;
    }

    .hero-stat span {
        font-size: 10px;
    }

    .section {
        padding: 58px 0;
    }

    .inner-hero {
        padding: 48px 0;
    }

    .inner-hero-image {
        min-height: 280px;
    }

    .cta-inner {
        display: block;
        padding: 28px;
    }

    .cta-inner .btn {
        width: 100%;
        margin-top: 20px;
    }

    .service-summary-grid,
    .detail-grid,
    .post-grid,
    .testimonial-grid,
    .about-gallery {
        grid-template-columns: 1fr;
    }

    .about-photo-team {
        grid-column: auto;
        min-height: 220px;
    }

    .post-card h3 {
        min-height: 0;
    }

    .detail-card {
        flex-direction: column;
    }

    .detail-card-media {
        width: 100%;
        height: 160px;
    }

    .detail-card::before {
        top: 172px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        justify-content: center;
        padding: 16px 0;
        text-align: center;
    }

    .hero-bottom {
        gap: 0;
    }

    .wide-photo {
        order: -1;
    }

    .highlight-card {
        position: relative;
        z-index: 1;
        margin: -36px 16px 0;
        min-height: 0;
        padding: 24px 28px;
        font-size: 19px;
    }

    .about-intro {
        text-align: center;
    }

    .about-card {
        display: grid;
        grid-template-columns: auto 1fr;
        align-items: center;
        column-gap: 14px;
    }

    .about-card-icon {
        grid-column: 1;
        grid-row: 1;
        margin-bottom: 0;
    }

    .about-card h3 {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
    }

    .about-card p {
        grid-column: 1 / -1;
        grid-row: 2;
        margin-top: 12px;
    }

    .split-title,
    .posts-section .section-title {
        text-align: center;
    }

    .detail-card-body {
        padding: 24px 20px;
    }

    .detail-card ul {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .detail-card li {
        padding: 5px 9px;
        font-size: 10.5px;
        white-space: nowrap;
    }
}
