:root {
    /* Paleta ajustada a modo claro, manteniendo el lenguaje del sitio */
    --white: #ffffff;
    --light-1: #f8fafc;
    --light-2: #f1f5f9;
    --mid-gray: #64748b;
    --gris-pizarra: #334155;
    --black: #0f172a;

    /* Mapear variables usadas en la hoja de estilos */
    --bg: #ffffff;
    --bg-dark: #f8fafc;
    --card: #ffffff;
    --line: rgba(0, 0, 0, 0.08);
    --text: var(--gris-pizarra);
    --muted: var(--mid-gray);
    --primary: #1e293b;
    --primary-dark: #0f172a;
    --secondary: var(--light-2);
    --accent: #c89a3a; /* dorado arena */
    --dorado-arena: #c89a3a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);
    color: var(--text);
    font-family: "Merriweather", serif;
    padding: 0;
    overflow-x: hidden;
}

.site-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(200, 154, 58, 0.05), transparent 48%),
        radial-gradient(circle at 80% 20%, rgba(125, 147, 176, 0.04), transparent 46%);
    z-index: -1;
    opacity: 0.9;
}

header {
    position: fixed;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 18px max(20px, calc((100vw - 1200px) / 2));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.05);
    transition: padding 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 200ms ease, opacity 200ms ease;
    transform: translateY(0);
}

/* Variante compacta cuando el usuario hace scroll (navbar sticky compacto) */
.header.is-stuck {
    padding: 10px max(12px, calc((100vw - 1200px) / 2));
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}

/* Ocultar navbar al hacer scroll hacia abajo */
.header.is-hidden {
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
}

/* Offset para anchors con header fijo */
:root {
    --header-height: 76px;
}

html {
    scroll-padding-top: var(--header-height);
}

/* Evitar que el contenido inicial quede tapado por el header fijo */
main {
    padding-top: var(--header-height);
}



.header.is-stuck .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.header.is-stuck .logo-text strong {
    font-size: 0.95rem;
}

.header.is-stuck .desktop-nav a {
    font-size: 0.92rem;
}


.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    min-width: fit-content;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 0 0 auto;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.logo-text strong {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    font-family: "Cinzel", serif;
}

.logo-text-mobile {
    display: none;
}

.logo-text small {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    font-family: "Merriweather", serif;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.25s;
    position: relative;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s;
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    width: 100%;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn {
    border: 0;
    border-radius: 8px;
    padding: 12px 20px;
    color: white;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    text-transform: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Asegurar que los botones-enlaces no muestren subrayado */
.btn, .btn:link, .btn:visited {
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 102, 204, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(0, 102, 204, 0.05);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1rem;
}

.contact-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.contact-text {
    display: inline;
}

/* Desktop - mostrar icono + texto */
@media (min-width: 769px) {
    #contactBtn {
        padding: 12px 20px;
    }
    
    .contact-text {
        display: inline;
    }
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    padding: 8px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    margin: 4px 0;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.reveal.reveal-image {
    transform: translateY(28px) scale(0.99);
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

main {
    width: min(1200px, 92%);
    margin: 0 auto;
    display: grid;
    gap: 80px;
    flex: 1 0 auto;
}

:root {
    --header-height: 76px;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 76px);
    padding: 80px 0;
    color: #ffffff;
    position: relative;
}

.hero-decorative-line {
    position: absolute;
    left: 10%;
    top: 20%;
    height: 120px;
    width: 3px;
    background: repeating-linear-gradient(
        to bottom,
        #f97316,
        #f97316 10px,
        transparent 10px,
        transparent 20px
    );
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    background:
        linear-gradient(90deg, rgba(5, 8, 12, 0.88) 0%, rgba(5, 8, 12, 0.62) 45%, rgba(5, 8, 12, 0.18) 100%),
        url("img/fondoPrincipal1.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-content,
.hero-title,
.hero-tagline,
.hero-copy,
.stat-card small {
    color: #f4f6f8;
}

.hero-content {
    display: grid;
    gap: 24px;
}

.hero-title {
    font-family: "Cinzel", serif;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.1;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title .accent {
    color: var(--primary);
    display: block;
}

.hero-tagline {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-copy {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    justify-content: center;
}

.hero-actions .btn {
    min-width: 220px;
    justify-content: center;
    padding: 14px 22px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.hero-actions .btn-primary {
    background: #4b5563; /* Color plomo / slate-600 */
    border: 1px solid #4b5563;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.hero-actions .btn-primary:hover {
    background: #374151; /* Slate-700 */
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25);
}

.hero-actions .btn-outline {
    border: 1.5px solid #ffffff;
    color: #ffffff;
    background: transparent;
}

.hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.stat-card {
    display: grid;
    gap: 6px;
}

.stat-card strong {
    font-size: 2rem;
    color: #ffffff;
    font-weight: 700;
}

.stat-card small {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    display: block;
    margin-bottom: 12px;
}

.section-header h2 {
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--card);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--line);
    transition: all 0.3s;
    text-align: left;
    display: grid;
    gap: 12px;
    justify-items: start;
}

.service-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    margin-bottom: 18px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 16px 40px rgba(200, 154, 58, 0.12);
}

.service-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
    color: var(--text);
    line-height: 1.3;
}

.service-card p {
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}

.service-card p + p {
    margin-top: 2px;
}

.service-card strong {
    color: var(--text);
}

.nosotros {
    margin: 32px 0;
    padding: 24px;
    background: var(--bg-dark);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid var(--line);
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 380px);
    gap: 24px;
    align-items: start;
    padding: 16px;
}

.nosotros-copy {
    display: grid;
    gap: 18px;
}

.nosotros-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    margin: 16px 0 24px;
    color: var(--text);
}

.nosotros-content p {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.mission-vision-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    grid-template-columns: repeat(2, 1fr);
    grid-column: 1 / -1;
    align-items: start;
}

.highlight-card {
    padding: 20px 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    background: var(--card);
}

.highlight-card h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text);
}

.highlight-card p {
    margin: 0;
    line-height: 1.8;
    color: var(--muted);
}

.highlight-card-primary {
    border-left: 5px solid var(--primary);
}

.highlight-card-secondary {
    border-left: 5px solid var(--dorado-arena);
}

.nosotros-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.value-item {
    padding: 20px;
    background: rgba(200, 154, 58, 0.05);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.value-item strong {
    display: block;
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.value-item p {
    margin: 0;
    font-size: 0.95rem;
}

.nosotros-content img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26);
}

.nosotros-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nosotros-visual img {
    width: 100%;
    max-width: 340px;
    height: clamp(380px, 45vh, 520px);
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 12px 30px rgba(0,0,0,0.26);
}

.faq-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: start;
}

.faq-media {
    position: sticky;
    top: 110px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-dark);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.faq-media img {
    width: 100%;
    display: block;
    aspect-ratio: 4 / 3;
    max-height: 240px;
    object-fit: cover;
}

.faq-accordion {
    display: grid;
    gap: 16px;
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.faq-question {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.faq-question:focus-visible {
    outline: 2px solid var(--dorado-arena);
    outline-offset: -2px;
}

.faq-question span:first-child {
    line-height: 1.4;
}

.faq-icon {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary);
    font-size: 1.1rem;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq-item.is-open .faq-icon {
    background: rgba(200, 154, 58, 0.15);
    color: var(--dorado-arena);
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 22px 20px;
}

.faq-answer p {
    color: var(--muted);
    line-height: 1.8;
    margin: 0;
}

.casos {
    position: relative;
    padding: 64px max(20px, calc((100vw - 1200px) / 2));
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
    border-radius: 28px;
    background: var(--bg-dark);
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.03);
}

/* Evitar que la sección servicios crezca fuera del contenedor central */
.servicios {
    max-width: 100%;
    overflow-x: hidden;
}

.servicios-carousel {
    box-sizing: border-box;
    max-width: 100%;
}

.casos .section-header {
    margin-bottom: 36px;
}

.casos .eyebrow {
    color: var(--dorado-arena);
}

.casos .section-header h2 {
    color: var(--text);
}

.casos-carousel {
    position: relative;
    overflow: hidden;
    padding: 4px 56px 12px;
}

/* Carrusel para la sección "Nuestros Servicios" (comportamiento igual a .casos) */
.servicios-carousel {
    position: relative;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    padding: 4px 0 12px;
}

.servicios-carousel .servicios-grid {
    grid-column: 2;
    display: flex;
    gap: 24px;
    transform: translate3d(0, 0, 0);
    transition: transform 0.28s ease;
    will-change: transform;
    padding: 0;
}

.servicios-carousel .servicios-prev,
.servicios-carousel .servicios-next {
    position: static;
    transform: none;
    width: 52px;
    height: 52px;
    z-index: 3;
}

.servicios-carousel .servicios-prev {
    grid-column: 1;
}

.servicios-carousel .servicios-next {
    grid-column: 3;
}

.servicios-carousel .service-card {
    flex: 0 0 calc((100% - 48px) / 3);
}



.casos-grid {
    display: flex;
    gap: 24px;
    transform: translate3d(0, 0, 0);
    transition: transform 0.28s ease;
    will-change: transform;
    padding: 0;
}

.caso-card {
    flex: 0 0 calc((100% - 48px) / 3);
}

.casos-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--gris-pizarra);
    background: var(--dorado-arena);
    border: 0;
    box-shadow: 0 10px 30px rgba(200,154,58,0.18);
    backdrop-filter: none;
    color: #ffffff;
    transition: transform 0.2s ease, opacity 0.2s ease, color 0.2s ease;
    pointer-events: auto;
}

/* Asegurar controles visibles y clicables sobre tracks flexibles */
.servicios-carousel .casos-nav {
    z-index: 40;
}

.casos-nav span {
    font-size: 2rem;
    line-height: 1;
    margin-top: -2px;
}

.casos-nav:hover {
    background: #b8861a;
    opacity: 1;
    color: #ffffff;
    box-shadow: 0 12px 34px rgba(184, 134, 26, 0.28);
    transform: translateY(-50%) scale(1.06);
}

.casos-nav:focus-visible {
    outline: 3px solid rgba(200, 154, 58, 0.35);
    outline-offset: 3px;
}

.casos-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: translateY(-50%);
}

.casos-prev {
    left: 12px;
}

.casos-next {
    right: 12px;
}

.caso-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.caso-card:hover {
    transform: translateY(-8px);
    border-color: rgba(200, 154, 58, 0.45);
    box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32);
}

.caso-image {
    width: 100%;
    height: 236px;
    overflow: hidden;
}

.caso-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.caso-card:hover .caso-image img {
    transform: scale(1.05);
}

.caso-content {
    padding: 24px 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.caso-content h3 {
    font-size: 1.28rem;
    line-height: 1.25;
    margin-bottom: 0;
    color: var(--text);
}

.caso-industry {
    color: var(--dorado-arena);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.caso-content p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.caso-metrics {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.caso-metrics span {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-section {
    background: var(--bg-dark);
    padding: 40px 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    margin: 32px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: start;
}

.contact-panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 18px;
}

.contact-details h3 {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--text);
}

.contact-details p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.contact-details ul {
    list-style: none;
    display: grid;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
}

.contact-details li::before {
    content: "•";
    color: var(--dorado-arena);
    margin-right: 8px;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.contact-form label {
    display: grid;
    gap: 6px;
}

.contact-form span {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--text);
    border-radius: 12px;
    padding: 11px 14px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 108px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgba(200, 154, 58, 0.8);
    box-shadow: 0 0 0 4px rgba(200, 154, 58, 0.12);
}

.full-width {
    grid-column: 1 / -1;
}

.contact-form .btn {
    justify-self: start;
}

.whatsapp-float {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 58px;
    height: 58px;
    padding: 0;
    border-radius: 50%;
    background: #25d366;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 16px 30px rgba(37, 211, 102, 0.28);
    font-weight: 700;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    color: #ffffff;
}

.whatsapp-float-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
}

.whatsapp-float-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
    display: block;
}

.whatsapp-float-icon svg path {
    fill: #ffffff;
}

.testimonios {
    background: linear-gradient(135deg, rgba(20, 28, 38, 0.98), rgba(11, 16, 24, 0.98));
    color: white;
    padding: 56px max(20px, calc((100vw - 1200px) / 2));
    border-radius: 20px;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.testimonios .section-header {
    margin-bottom: 60px;
}

.testimonios .eyebrow {
    color: rgba(255, 255, 255, 0.9);
}

.testimonios h2 {
    color: white;
}


.testimonios-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    object-fit: cover;
    flex: 0 0 64px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.45);
    border: 2px solid rgba(255,255,255,0.05);
}

.testimonial-body {
    flex: 1 1 auto;
}

.stars {
    color: #ffc107;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.testimonial-text {
    font-size: 0.96rem;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.testimonial-author strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.98rem;
}

.testimonial-author small {
    opacity: 0.9;
    font-size: 0.86rem;
}

.equipo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.team-card {
    text-align: center;
    background: var(--card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--line);
    transition: all 0.3s;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(200, 154, 58, 0.12);
}

.team-card img {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 16px;
}

.team-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.team-card p {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.team-card small {
    color: var(--muted);
}

.cta {
    text-align: center;
    padding: 80px max(20px, calc((100vw - 1200px) / 2));
    background: var(--bg-dark);
    border-radius: 20px;
    border: 1px solid var(--line);
    margin: 40px 0;
}

.cta h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text);
}

.cta p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 32px;
}

footer {
    background: linear-gradient(180deg, #090d14 0%, #05070b 100%);
    color: white;
    padding: 60px max(20px, calc((100vw - 1200px) / 2)) 20px;
    margin-top: auto;
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 0.65fr 0.85fr 1fr;
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Dejar “Navegación” más angosta y “Contacto” más ancha */
footer .footer-grid > div:nth-child(2) {
    max-width: 100%;
}

footer .footer-grid > div:nth-child(3) {
    max-width: 100%;
}

/* Asegurar que el bloque de Navegación no se desborde y mantenga el listado en columna */
footer .footer-grid > div:nth-child(2) {
    overflow-wrap: anywhere;
}

footer .footer-grid > div:nth-child(2) a {
    display: block;
    width: fit-content;
}


/* Estilo para que el mail largo no se corte */
footer .footer-grid > div:nth-child(3) a[href^="mailto:"] {
    word-break: break-word;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }

    footer .footer-grid > div:nth-child(1) {
        grid-column: 1 / -1;
        text-align: center;
    }

    footer .footer-grid > div:nth-child(1) .footer-logo-container {
        justify-content: center;
    }

    footer .footer-grid > div:nth-child(1) .social-links {
        justify-content: center;
    }

    /* Navegación y Contacto lado a lado */
    footer .footer-grid > div:nth-child(2),
    footer .footer-grid > div:nth-child(3) {
        grid-column: span 1;
    }

    /* En celular: “Casa Matriz” debajo */
    footer .footer-grid > div:nth-child(4) {
        grid-column: 1 / -1;
        text-align: center;
    }
}



footer h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

footer p {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.7;
    margin-bottom: 12px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.footer-contact p {
    margin-bottom: 8px;
}


footer a {
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.18s ease;
    border: 1px solid rgba(255,255,255,0.08);
}

.social-links a:hover {
    color: var(--dorado-arena);
    transform: translateY(-3px);
    background: rgba(200,154,58,0.06);
    border-color: rgba(200,154,58,0.18);
}

.social-links svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.footer-logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.footer-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px max(20px, calc((100vw - 1200px) / 2));
    margin-top: 40px;
}

.footer-bottom-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-grid a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s;
    font-style: italic;
}

.footer-bottom-grid a:hover {
    color: var(--dorado-arena);
}

.footer-bottom-center p {
    margin: 0;
}

.footer-bottom-right p {
    margin: 0;
    font-style: italic;
}

@media (max-width: 768px) {
    .footer-bottom-grid {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

.sidebar {
    display: flex;
    position: fixed;
    left: 0;
    top: 76px;
    width: 280px;
    height: calc(100vh - 76px);
    background: rgba(255, 255, 255, 0.98);
    border-right: 1px solid var(--line);
    z-index: 19;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
    box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}

.sidebar.active {
    transform: translateX(0);
    visibility: visible;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}

.sidebar-top h3 {
    font-size: 1.1rem;
}

.sidebar-top button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.sidebar-nav a {
    padding: 16px 20px;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    transition: background 0.2s;
}

.sidebar-nav a:hover {
    background: rgba(200, 154, 58, 0.08);
    color: var(--primary);
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 18;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    backdrop-filter: blur(2px);
}

footer a[href^="tel:"],
footer a[href^="mailto:"] {
    color: var(--dorado-arena) !important;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.footer-grid a[href*="google.com/maps"] {
    display: inline-block;
    margin-top: 6px;
    color: #ffffff;
    font-weight: 600;
}

.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
}

.footer-map-link:hover {
    color: var(--dorado-arena);
}

@media (max-width: 768px) {
    .header {
        padding: 14px 16px;
    }

    .logo-text {
        display: none;
    }

    .logo-text {
        display: flex;
    }

    .logo-text-full {
        display: none;
    }

    .logo-text-mobile {
        display: block;
        font-size: 0.95rem;
        letter-spacing: 0.4px;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    #contactBtn {
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 8px;
        justify-content: center;
    }

    #contactBtn .contact-icon {
        width: 18px;
        height: 18px;
    }

    .contact-text {
        display: none;
    }

    main {
        width: 90%;
        gap: 60px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 60px 0 40px;
        gap: 40px;
    }

    .hero::before {
        border-radius: 0;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .hero-copy {
        font-size: 0.92rem;
        max-width: 100%;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-image {
        display: grid;
        max-width: 560px;
        margin: 12px auto 0;
        overflow: visible;
    }

    .hero-image img {
        max-height: 320px;
        object-fit: cover;
    }

    .hero-badges {
        position: absolute;
        inset: 0;
        display: block;
        margin-top: 0;
    }

    .hero-badge {
        position: absolute;
        max-width: max-content;
        justify-content: center;
        width: auto;
        font-size: 0.74rem;
        padding: 8px 11px;
    }

    .hero-badge-top-left {
        top: -10px;
        left: -8px;
    }

    .hero-badge-top-right {
        top: 14px;
        right: -8px;
    }

    .hero-badge-middle-right {
        top: 50%;
        right: -10px;
        transform: translateY(-50%);
    }

    .hero-badge-bottom-left {
        bottom: 14px;
        left: -8px;
    }

    .hero-badge-bottom-right {
        bottom: -8px;
        right: 16px;
        transform: none;
    }

    .desktop-nav a::after {
        display: none;
    }

    .nosotros-content {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 0;
    }

    .nosotros {
        padding: 18px 14px;
        margin: 28px 0;
    }

    .nosotros-content h2 {
        font-size: 1.7rem;
        margin: 8px 0 14px;
    }

    .nosotros-content p {
        font-size: 0.92rem;
        line-height: 1.55;
        margin-bottom: 12px;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 12px;
    }

    .highlight-card {
        padding: 14px 14px 16px;
        border-radius: 12px;
    }

    .highlight-card h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .highlight-card {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .nosotros-content img {
        max-height: 220px;
        object-fit: cover;
    }

    .nosotros-values {
        grid-template-columns: 1fr;
    }

    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-media {
        position: static;
    }

    .servicios-grid,
    .casos-grid,
    .testimonios-carousel,
    .equipo-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 24px 14px;
        margin: 24px 0;
        border-radius: 20px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        padding: 16px;
    }

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

    .contact-form .btn {
        width: 100%;
        justify-self: stretch;
    }

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

    .casos {
        padding: 44px 16px;
        border-radius: 22px;
    }

    .casos-carousel {
        padding: 4px 0 10px;
    }

    .casos .section-header {
        margin-bottom: 24px;
    }

    .casos-grid {
        gap: 18px;
    }

    .caso-card {
        border-radius: 20px;
        flex-basis: 100%;
    }

    .casos-nav {
        width: 38px;
        height: 38px;
    }

    .casos-nav span {
        font-size: 1.7rem;
    }

    .casos-prev {
        left: 8px;
    }

    .casos-next {
        right: 8px;
    }

    .servicios-grid {
        gap: 18px;
    }

    .servicios-carousel {
        display: block;
        padding: 4px 0 10px;
    }

    .servicios-carousel .service-card {
        border-radius: 20px;
        flex-basis: 100%;
    }

    .servicios-carousel .servicios-grid {
        display: flex;
        grid-column: auto;
        gap: 18px;
        width: 100%;
    }

    .servicios-carousel .servicios-prev,
    .servicios-carousel .servicios-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 38px;
        height: 38px;
    }

    .servicios-carousel .servicios-prev {
        left: 8px;
    }

    .servicios-carousel .servicios-next {
        right: 8px;
    }

    .caso-image {
        height: 210px;
    }

    .caso-content {
        padding: 20px;
        gap: 10px;
    }

    .caso-content h3 {
        font-size: 1.05rem;
    }

    .caso-content p {
        font-size: 0.9rem;
    }

    .caso-metrics {
        gap: 8px;
    }

    .caso-metrics span {
        font-size: 0.8rem;
        padding: 6px 10px;
    }

    .service-card {
        padding: 22px;
        gap: 10px;
    }

    .service-media {
        aspect-ratio: 16 / 9;
        margin-bottom: 6px;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }
}
