@charset "utf-8";

/* Variables globales unificadas */
:root {
    /* Tipografías */
    --default-font: "Funnel Sans", sans-serif;
    --heading-font: "Funnel Display", sans-serif;
    --nav-font: "Funnel Sans", sans-serif;
    /* Paleta corporativa */
    --background-color: #f8f9fa;
    /* Gris claro para profundidad */
    --default-color: #000;
    /* Color de texto principal */
    --heading-color: #1a252f;
    /* Slate oscuro para encabezados */
    --accent-color: #000;
    --accent-green: #69A82F;
    /* Variante oscura del verde de marca (≈4.9:1 sobre blanco) para usarla
       SOLO como color de texto/enlace sobre fondos claros y cumplir WCAG AA.
       El verde de marca #69A82F se conserva para fondos, botones y gráficos. */
    --accent-green-ink: #4c7d1e;
    --accent-color-rgb: 0, 0, 0;
    --surface-color: #fff;
    --contrast-color: #fff;
    /* Variables de UI */
    --box-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.1);
    --border-radius-card: 12px;
    /* Gradiente estándar para todos los botones (excepto los del nav) */
    --btn-gradient: linear-gradient(135deg, #54FE0C 0%, #01a144 50%, #54FE0C 100%);
    --btn-gradient-shadow: rgba(1, 161, 68, 0.35);
    --btn-gradient-shadow-hover: rgba(1, 161, 68, 0.5);

    /* ─── Tokens de diseño: escalas reutilizables ─────────────── */
    /* Escala tipográfica fluida (clamp mobile↔desktop, sin media queries) */
    --fs-h1: clamp(2rem, 4vw + 0.5rem, 3.5rem);
    --fs-h2: clamp(1.625rem, 3vw + 0.5rem, 2.5rem);
    --fs-h3: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    --fs-h4: clamp(1.125rem, 1.2vw + 0.5rem, 1.375rem);
    --fs-h5: clamp(1rem, 0.8vw + 0.75rem, 1.125rem);
    --fs-h6: clamp(0.9375rem, 0.5vw + 0.75rem, 1rem);
    --fs-lead: clamp(1.0625rem, 0.5vw + 0.875rem, 1.25rem);
    --fs-body: clamp(0.9375rem, 0.25vw + 0.875rem, 1rem);
    --fs-small: clamp(0.8125rem, 0.2vw + 0.75rem, 0.875rem);
    --fs-xs: 0.75rem;
    --fs-btn: clamp(0.875rem, 0.25vw + 0.8125rem, 0.9375rem);
    --fs-input: clamp(0.9375rem, 0.2vw + 0.875rem, 1rem);
    /* Padding fluido para secciones (reemplaza media queries por clamp) */
    --section-py: clamp(2.5rem, 5vw + 1rem, 5rem);
    --section-px: clamp(1rem, 2vw + 0.5rem, 2rem);
    /* Breakpoints propios para monitores grandes (≥xxl de Bootstrap) */
    --bp-xxl-plus: 1680px;
    --bp-fhd: 1920px;
    --bp-uhd: 2560px;
    /* Line-heights */
    --lh-tight: 1.1;
    --lh-heading: 1.25;
    --lh-normal: 1.5;
    --lh-relaxed: 1.7;
    /* Font-weights (alineados con Funnel Sans 300/400/500 + Funnel Display 700) */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    /* Escala de espaciado (grid de 8px) */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 4rem;    /* 64px */
    /* Escala de border-radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-pill: 32px;
    --radius-full: 50%;
    /* Escala de sombras (elevación) */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.15);
    /* Paddings estándar de botones */
    --btn-padding-lg: 16px 40px;
    --btn-padding-md: 12px 32px;
    --btn-padding-sm: 8px 20px;
    /* Colores de navegación */
    --nav-color: #000000;
    --nav-hover-color: var(--accent-green-ink);
    --nav-dropdown-background-color: #fff;
    --nav-dropdown-color: #2c3e50;
    --nav-dropdown-hover-color: var(--accent-green-ink);
    /* Header background - Efecto vidrio (glassmorphism) */
    --header-background-color: rgba(255, 255, 255, 0.9);
    /* Variables de borde y superficie (usadas en sección About) */
    --border-subtle: color-mix(in srgb, var(--default-color), transparent 85%);
    --text-muted: color-mix(in srgb, var(--default-color), transparent 35%);
    --surface-elevated: color-mix(in srgb, var(--surface-color), var(--default-color) 4%);
    /* Comportamiento de scroll */
    scroll-behavior: smooth
}

/* Presets de color */
.light-background {
    --background-color: #f8f9fa;
    --surface-color: #fff
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
    font-size: var(--fs-body);
    line-height: var(--lh-relaxed);
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-heading); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-heading); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-heading); }
h5 { font-size: var(--fs-h5); line-height: var(--lh-heading); }
h6 { font-size: var(--fs-h6); line-height: var(--lh-heading); }

.lead,
p.lead { font-size: var(--fs-lead); line-height: var(--lh-normal); }

.btn { font-size: var(--fs-btn); }

input,
select,
textarea,
.form-control,
.form-input,
.form-select,
.form-select-input { font-size: var(--fs-input); }

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s
}

a:hover {
    color: color-mix(in srgb, var(--accent-green), transparent 25%);
    text-decoration: none
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--heading-font)
}

/* Accesibilidad: estilos de foco visible para navegación por teclado (WCAG 2.4.7) */
:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 2px
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
    display: none;
    background: #df1529;
    color: #fff;
    text-align: left;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600
}

.php-email-form .sent-message {
    display: none;
    color: #fff;
    background: #059652;
    text-align: center;
    padding: 15px;
    margin-bottom: 24px;
    font-weight: 600
}

.php-email-form .loading {
    display: none;
    background: var(--surface-color);
    text-align: center;
    padding: 15px;
    margin-bottom: 24px
}

.php-email-form .loading:before {
    content: "";
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    margin: 0 10px -6px 0;
    border: 3px solid var(--accent-color);
    border-top-color: var(--surface-color);
    animation: php-email-form-loading 1s linear infinite
}

@keyframes php-email-form-loading {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/*--------------------------------------------------------------
# Global Header, Navigation Menu & Footer
# → Estilos movidos a assets/css/layout.css
--------------------------------------------------------------*/




/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    background-color: var(--background-color);
    transition: all 0.6s ease-out;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center
}

#preloader div {
    width: 13px;
    height: 13px;
    background-color: var(--accent-green);
    border-radius: 50%;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
    position: absolute;
    left: 50%
}

#preloader div:nth-child(1) {
    left: calc(50% + 8px);
    animation: animate-preloader-1 0.6s infinite
}

#preloader div:nth-child(2) {
    left: calc(50% + 8px);
    animation: animate-preloader-2 0.6s infinite
}

#preloader div:nth-child(3) {
    left: calc(50% + 32px);
    animation: animate-preloader-2 0.6s infinite
}

#preloader div:nth-child(4) {
    left: calc(50% + 56px);
    animation: animate-preloader-3 0.6s infinite
}

@keyframes animate-preloader-1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes animate-preloader-3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes animate-preloader-2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: clamp(10px, 3vw, 18px);
    bottom: max(clamp(10px, 3vw, 18px), env(safe-area-inset-bottom));
    z-index: 1030;
    background-color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    transition: all 0.4s
}

.scroll-top i {
    font-size: 24px;
    color: #fff;
    line-height: 0
}

.scroll-top:hover {
    background-color: color-mix(in srgb, var(--accent-green), transparent 20%);
    color: var(--contrast-color)
}

.scroll-top.active {
    visibility: visible;
    opacity: 1
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: var(--section-py) 0;
    scroll-margin-top: 78px;
    overflow: hidden;
    /* Fallback para navegadores sin soporte de clip */
    overflow: clip
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
    text-align: center;
    padding-bottom: clamp(2rem, 4vw, 3.75rem);
    position: relative
}

.section-title h2 {
    font-size: clamp(1.375rem, 3vw + 0.5rem, 2rem);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 20px;
    position: relative
}

.section-title h2:before {
    content: "";
    position: absolute;
    display: block;
    width: clamp(80px, 30vw, 160px);
    height: 1px;
    background: color-mix(in srgb, var(--default-color), transparent 60%);
    left: 0;
    right: 0;
    bottom: 1px;
    margin: auto
}

.section-title h2::after {
    content: "";
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto
}

.section-title p {
    margin-bottom: 0
}

/* ==========================================
   Parallax Effect Integration
   ========================================== */

/* Wrapper to contain the parallax sections */
.parallax-new-wrapper {
    width: 100%;
    position: relative;
    /* Ensure it takes up space so we can scroll through it */
}



/* The Top "Mountain" Section */
.parallax-new-top {
    background: #fff;
    height: 100vh;
    overflow: hidden;
    width: 100%;
    position: relative;
}

/* Positioning helper for layers */
.parallax-new-section {
    height: 100vh;
    overflow: hidden;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.parallax-new-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10%;
    background: linear-gradient(180deg,
            rgba(248, 249, 250, 0) 10%,
            rgba(248, 249, 250, 0.747) 100%);
    pointer-events: none;
    z-index: 160;
}

/* Images Styling */
.parallax-new-image {
    height: 100vmax;
    left: calc(50% - 75vmax);
    width: 150vmax;
    top: calc(50% - 50vmax);
    position: absolute;
    pointer-events: none;
    /* Let clicks pass through */
}

.parallax-new-image2 {
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: var(--opacity, 1);
    transform: scale(var(--scale, 1.25));
    /* will-change: transform, opacity; Optimization */
}

.parallax-new-image1 {
    object-fit: cover;
    object-position: center;
    z-index: 15;
}
/* Title Styling */
.parallax-new-top-title {
    /* Colores y tipografía */
    color: white;
    font-family: var(--heading-font);
    font-weight: 800;
    /* Tamaño responsivo: mínimo 2rem, preferido 10vmax, máximo 12rem */
    font-size: clamp(2rem, 10vmax, 12rem);
    /* Espaciado entre caracteres relativo a la ventana */
    letter-spacing: 0.1vmax;

    /* Posicionamiento y diseño */
    position: absolute;
    /* Centro vertical */
    top: 50%;
    left: 50%;
    text-align: center;

    /* Animaciones parallax: desplazamiento vertical (--moveY) y escala (--scale) 
       Centrado absoluto usando traslaciones individuales para evitar que el minificador
       rompa los espacios en la función calc() */
    transform: translate(-50%, -50%) translateY(-18vh) translateY(var(--moveY, 0px)) scale(var(--scale, 1));

    width: 100%;
    z-index: 10;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.parallax-new-top-subtitle {
    /* Colores y tipografía */
    color: var(--accent-green);
    font-family: var(--heading-font);
    /* Tamaño responsivo: mínimo 1rem, preferido 2.5vmax, máximo 3rem */
    font-size: clamp(1rem, 2.5vmax, 3rem);
    font-weight: 500;

    /* Posicionamiento y diseño */
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
    letter-spacing: 0.1vmax;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    text-align: center;
    z-index: 11;
    white-space: normal;
    overflow: visible;

    /* Animaciones parallax: se mueve y escala con el título durante scroll 
       Acomodado debajo del título (offset distinto al título, ej. 2vh) */
    transform: translate(-50%, -50%) translateY(-2vh) translateY(var(--moveY, 0px)) scale(var(--scale, 1));
}

/* The Bottom Section (Content revealed below) */
.parallax-new-bottom {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 20;
    /* Ensure it sits on top of everything when scrolling */
    background: var(--background-color);
    /* Match site bg */
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    padding: 0;
    /* Mantenemos un color oscuro de base por si la imagen tarda en cargar */
    /* background: #000; */
    position: relative;
    overflow: hidden;
    /* min-height en lugar de height fijo: permite que la sección crezca en móvil
       cuando el contenido apilado (texto + imagen) supera 100vh */
    /* min-height: 100vh; */
    /* Centrado vertical del contenido en pantallas grandes */
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* background: transparent url(../img/bg/abstract-bg-1.webp) center center/cover no-repeat; */
    z-index: 1
}

.hero .hero-content {
    position: relative;
    z-index: 2;
    /* Ocupa todo el ancho disponible dentro del flex container */
    width: 100%;
}





.hero .hero-content .content {
    padding: clamp(2rem, 5vw, 5rem) 0
}

.hero .hero-content .content h1 {
    font-family: var(--heading-font);
    font-size: var(--fs-h1);
    font-weight: var(--fw-bold);
    margin-bottom: clamp(1.25rem, 2vw, 2rem);
    color: var(--default-color)
}

.hero .hero-content .content p {
    font-size: var(--fs-lead);
    line-height: 1.78;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    margin-bottom: 1.1rem;
    max-width: 100%
}

.hero .hero-content .content p:last-of-type {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem)
}

/* CTA group: apilado en móvil con gap reducido; vuelve a fila al entrar sm */
.hero .hero-content .content .cta-group {
    display: flex;
    align-items: stretch;
    gap: clamp(0.75rem, 2vw, 2rem);
    flex-wrap: wrap
}

@media (min-width: 576px) {
    .hero .hero-content .content .cta-group {
        align-items: center;
    }
}

.btn-cta {
    background: var(--btn-gradient);
    background-size: 200% 200%;
    background-position: left center;

    border: none;
    border-radius: var(--radius-2xl);
    color: #0b0b0b;
    text-decoration: none;
    padding: var(--btn-padding-lg);

    font-size: 14px;
    font-weight: var(--fw-semibold);
    letter-spacing: 1px;
    text-transform: uppercase;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-position 0.6s ease;

    box-shadow: 0 8px 18px var(--btn-gradient-shadow);
}

.btn-cta:hover {
    background-position: right center;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px var(--btn-gradient-shadow-hover);
    color: #0b0b0b;
    text-decoration: none;
}

.btn-cta .btn-icon {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.btn-cta:hover .btn-icon {
    transform: translateX(6px);
}



.hero .hero-content .content .cta-group .btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--default-color);
    text-decoration: none;
    font-weight: var(--fw-medium);
    transition: all 0.3s ease
}

.hero .hero-content .content .cta-group .btn-secondary i {
    font-size: 1.5rem;
    color: var(--default-color);
    transition: all 0.3s ease
}

.hero .hero-content .content .cta-group .btn-secondary:hover {
    color: var(--accent-green)
}

.hero .hero-content .content .cta-group .btn-secondary:hover i {
    transform: scale(1.1)
}

.hero .hero-content .hero-image {
    position: relative;
    padding: clamp(1.5rem, 4vw, 5rem) 0
}

.hero .hero-content .hero-image img {
    border-radius: 30% 70% 70% 30%/30% 30% 70% 70%;
    box-shadow: 0 20px 60px color-mix(in srgb, var(--default-color), transparent 85%);
    width: 100%;
    height: auto;
    transition: all 0.5s ease
}

.hero .hero-content .hero-image:hover img {
    border-radius: 70% 30% 30% 70%/70% 70% 30% 30%
}

/* Floating card: mobile-first se ajusta dentro de .hero-image.
   En ≥lg se "descuelga" por la izquierda como badge decorativo. */
.hero .hero-content .hero-image .floating-card {
    position: absolute;
    bottom: clamp(0.5rem, 2vw, 2.5rem);
    left: clamp(0.5rem, 2vw, 1.5rem);
    right: clamp(0.5rem, 2vw, 1.5rem);
    background: var(--surface-color);
    padding: clamp(1rem, 2vw, 2rem);
    border-radius: var(--border-radius-card);
    box-shadow: 0 15px 40px color-mix(in srgb, var(--default-color), transparent 85%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px)
}

@media (min-width: 992px) {
    .hero .hero-content .hero-image .floating-card {
        left: -40px;
        right: auto;
    }
}

.hero .hero-content .hero-image .floating-card .card-content {
    display: flex;
    justify-content: space-around;
    gap: clamp(1rem, 3vw, 2rem)
}

.hero .hero-content .hero-image .floating-card .metric {
    text-align: center
}

.hero .hero-content .hero-image .floating-card .metric .number {
    display: block;
    font-size: clamp(1.375rem, 2.5vw + 0.5rem, 2rem);
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1
}

.hero .hero-content .hero-image .floating-card .metric .label {
    font-size: var(--fs-small);
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    margin-top: 0.25rem
}


/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
/* =========================================
   3D FLIP CARDS (Estilo Kallyas Adaptado)
   ========================================= */
.square-flip {
    -webkit-perspective: 1000px;
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    /* Altura fluida para no generar scroll en móviles pequeños */
    height: clamp(380px, 38vw + 180px, 440px);
    cursor: pointer
}

.square,
.square2 {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    transition: transform 0.6s cubic-bezier(0.5, 0.3, 0.3, 1);
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    /* Redondeado igual que tu diseño original */
}

/* --- Cara Frontal --- */
.square-flip .square {
    transform: rotatey(0deg);
    z-index: 2
}

.square-flip:hover .square {
    transform: rotatey(-180deg)
}

/* --- Cara Trasera --- */
.square-flip .square2 {
    transform: rotatey(180deg);
    z-index: 1
}

.square-flip:hover .square2 {
    transform: rotatey(0deg)
}

/* --- Contenedores de Texto (Animación de desplazamiento) --- */
.square-container {
    padding: 30px;
    text-align: center;
    position: relative;
    top: 50%;
    transform: translatey(-50%) translatex(0) scale(1);
    transition: transform 0.6s cubic-bezier(0.5, 0.3, 0.3, 1);
    z-index: 2
}

.square-flip:hover .square-container {
    /* El texto frontal sale volando a la izquierda */
    transform: translatey(-50%) translatex(-650px) scale(0.88)
}

.square-container2 {
    padding: 30px;
    text-align: center;
    position: relative;
    top: 50%;
    /* El texto trasero espera a la derecha */
    transform: translatey(-50%) translatex(650px) translatez(60px) scale(0.88);
    transition: transform 0.6s cubic-bezier(0.5, 0.3, 0.3, 1);
    z-index: 2
}

.square-flip:hover .square-container2 {
    /* El texto trasero entra al centro */
    transform: translatey(-50%) translatex(0) translatez(0) scale(1)
}

/* --- Estilos de Texto y Elementos --- */
.square-flip h2 {
    color: white;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(1.25rem, 1vw + 1.05rem, 1.625rem);
    margin-top: 15px;
    margin-bottom: 10px
}

.square-flip h3 {
    color: white;
    font-family: var(--default-font);
    font-weight: 500;
    font-size: var(--fs-body);
    line-height: var(--lh-heading)
}

.square-flip p.text-white {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--fs-body);
    margin-bottom: 25px
}

/* Icono en la tarjeta 3D */
.service-icon-3d {
    font-size: clamp(2.25rem, 2.5vw + 1rem, 3.125rem);
    color: var(--accent-green);
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5)
}

/* Overlay oscuro para que se lea el texto sobre la imagen */
.flip-overlay {
    display: block;
    background: rgba(0, 0, 0, 0.35);
    /* Un poco más oscuro para legibilidad */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none
}

.align-center {
    margin: 0 auto
}

/* Botón adaptado a tu estilo */
.kallyas-button {
    display: inline-block;
    padding: clamp(0.625rem, 0.5vw + 0.5rem, 0.75rem) clamp(1rem, 1.5vw + 0.5rem, 1.375rem);
    font-family: var(--default-font);
    font-weight: 500;
    color: #000;
    background: var(--accent-green);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: var(--fs-btn);
    white-space: nowrap;
    text-align: center
}

.kallyas-button:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(105, 168, 47, 0.6)
}

/* Sombra exterior para botones con clase boxshadow (variante del kallyas-button) */
.boxshadow {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.3s ease
}

.boxshadow:hover {
    box-shadow: 0 6px 20px rgba(105, 168, 47, 0.35)
}

/* Sombras de texto */
.textshadow {
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5)
}

/* Override de acento — solo en la sección Services del home (#services).
   Usa el verde neón #54FE0C en iconos, botones y glows, dejando el resto
   del sitio con el verde institucional #69A82F. */
#services .service-icon-3d {
    color: #54FE0C
}

#services .kallyas-button {
    background: #54FE0C
}

#services .kallyas-button:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(84, 254, 12, 0.6)
}

#services .boxshadow:hover {
    box-shadow: 0 6px 20px rgba(84, 254, 12, 0.35)
}


/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content {
    /* padding-right solo cuando la imagen queda al lado (≥lg) */
    padding-right: 0;
}

@media (min-width: 992px) {
    .about .content {
        padding-right: 40px;
    }
}

.about .content h2 {
    font-size: clamp(1.75rem, 3.5vw + 0.5rem, 2.5rem);
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: clamp(1.25rem, 2vw, 1.875rem);
    color: var(--heading-color)
}


.about .content .description {
    margin-bottom: 16px
}

.about .content .description p {
    font-size: var(--fs-body);
    line-height: 1.78;
    margin-bottom: 16px;
    color: color-mix(in srgb, var(--default-color), transparent 10%)
}

.about .content .description p:last-child {
    margin-bottom: 0
}

/* ── Commitment & Values panel ───────────────────────────────── */
.about .commitment-values {
    padding-top: 28px;
}

.about .commitment-values h4 {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 14px;
}

.about .commitment-values ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about .commitment-values ul li {
    font-size: 0.92rem;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.5;
    min-height: 50px;
}

.about .commitment-values ul li::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-color);
    flex-shrink: 0;
}

.about .content .stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 3.75rem);
    margin-bottom: clamp(2rem, 4vw, 3.75rem)
}

.about .content .stats-row .stat-item {
    text-align: left
}

.about .content .stats-row .stat-item .stat-number {
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
    font-weight: 300;
    color: var(--accent-color);
    line-height: 1;
    margin-bottom: 8px
}

.about .content .stats-row .stat-item .stat-label {
    font-size: var(--fs-small);
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    text-transform: uppercase;
    letter-spacing: 0.5px
}

.about .image-container {
    position: relative;
    height: 100%;
    min-height: clamp(320px, 45vw + 100px, 500px)
}

.about .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px
}

.about .image-container .image-overlay {
    position: absolute;
    bottom: clamp(1rem, 2vw, 1.875rem);
    left: clamp(1rem, 2vw, 1.875rem);
    right: clamp(1rem, 2vw, 1.875rem);
    background-color: var(--surface-color);
    padding: clamp(1rem, 1.5vw + 0.5rem, 1.5625rem);
    border-radius: 8px;
    box-shadow: 0 8px 30px color-mix(in srgb, var(--default-color), transparent 85%);
    max-width: 260px;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@media (min-width: 576px) {
    .about .image-container .image-overlay {
        right: auto;
    }
}

.about .image-container .image-overlay .overlay-content {
    display: flex;
    align-items: center;
    gap: 15px
}

.about .image-container .image-overlay .overlay-content i {
    font-size: clamp(1.5rem, 1.5vw + 0.75rem, 2rem);
    color: var(--accent-color)
}

.about .image-container .image-overlay .overlay-content .overlay-text h4 {
    font-size: clamp(1rem, 0.5vw + 0.875rem, 1.1rem);
    margin-bottom: 4px;
    color: var(--heading-color);
    font-weight: 500
}

.about .image-container .image-overlay .overlay-content .overlay-text p {
    margin: 0;
    font-size: var(--fs-small);
    color: color-mix(in srgb, var(--default-color), transparent 30%)
}



.about .image-container .image-overlay:hover {
    transform: translatey(-8px);
    box-shadow: 0 16px 48px color-mix(in srgb, var(--default-color), transparent 80%)
}






/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats .section-headline {
    color: var(--heading-color);
    font-family: var(--heading-font);
    font-size: clamp(1.75rem, 3.5vw + 0.5rem, 2.75rem);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: -0.02em
}

.stats .section-description {
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    font-size: var(--fs-lead);
    line-height: 1.7;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto
}

.stats .stats-container {
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-color)
}

.stats .stat-item {
    padding: clamp(1.5rem, 2.5vw + 0.5rem, 3rem) clamp(1rem, 2vw + 0.25rem, 2.5rem);
    position: relative;
    transition: all 0.4s ease
}

/* Separadores entre celdas sin gap (el row usa g-0).
   Mobile (2 cols): separador vertical entre columna izq/der + horizontal entre filas.
   ≥md (4 cols en una fila): solo separadores verticales entre items 1-3. */
.stats .stat-item:nth-child(odd) {
    border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}
.stats .stat-item:nth-child(1),
.stats .stat-item:nth-child(2) {
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

@media (min-width: 768px) {
    .stats .stat-item:nth-child(odd) { border-right: 0; }
    .stats .stat-item:nth-child(1),
    .stats .stat-item:nth-child(2),
    .stats .stat-item:nth-child(3) {
        border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
        border-bottom: 0;
    }
}

/* A6 — at md range (768–991) 4-across is cramped; collapse to 2x2.
   Overrides col-md-3 width and re-establishes the 2x2 border pattern.
   Selectors match the specificity of the md+ rule above so order wins. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .stats .stats-container > [class*='col-'] {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .stats .stat-item:nth-child(1),
    .stats .stat-item:nth-child(2),
    .stats .stat-item:nth-child(3),
    .stats .stat-item:nth-child(4) {
        border-right: 0;
        border-bottom: 0;
    }
    .stats .stat-item:nth-child(odd) {
        border-right: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    }
    .stats .stat-item:nth-child(1),
    .stats .stat-item:nth-child(2) {
        border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    }
}

.stats .stat-item:hover {
    background: color-mix(in srgb, var(--accent-color), transparent 97%);
    transform: translatey(-2px)
}

.stats .stat-item .stat-content {
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start
}

.stats .stat-item .stat-number {
    color: var(--accent-color);
    font-family: var(--heading-font);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 200;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.03em
}

.stats .stat-item .stat-number .purecounter {
    font-size: inherit;
    color: inherit
}

.stats .stat-item .stat-divider {
    width: 40px;
    height: 1px;
    background: var(--accent-color);
    margin: 0 auto 1.5rem auto;
    opacity: 0.6
}

.stats .stat-item .stat-label {
    color: var(--heading-color);
    font-family: var(--heading-font);
    font-size: clamp(1rem, 0.8vw + 0.875rem, 1.25rem);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.01em
}

.stats .stat-item .stat-description {
    color: color-mix(in srgb, var(--default-color), transparent 30%);
    font-size: var(--fs-small);
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
    max-width: 200px
}

.stats .achievement-badge {
    background: var(--surface-color);
    border: 1px solid color-mix(in srgb, var(--accent-color), transparent 80%);
    border-radius: 8px;
    padding: clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem) clamp(1rem, 2vw + 0.5rem, 2rem);
    text-align: center;
    transition: all 0.4s ease
}

.stats .achievement-badge:hover {
    border-color: color-mix(in srgb, var(--accent-color), transparent 60%);
    transform: translatey(-3px)
}

.stats .achievement-badge .badge-icon {
    font-size: clamp(1.75rem, 2vw + 0.75rem, 2.5rem);
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    opacity: 0.8
}

.stats .achievement-badge .badge-title {
    color: var(--heading-color);
    font-family: var(--heading-font);
    font-size: clamp(1.125rem, 1vw + 0.875rem, 1.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    letter-spacing: 0.01em
}

.stats .achievement-badge .badge-text {
    color: color-mix(in srgb, var(--default-color), transparent 25%);
    font-size: var(--fs-body);
    line-height: 1.6;
    font-weight: 300;
    max-width: 400px;
    margin: 0 auto
}


/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials {
    position: relative;
    overflow: hidden;
    /* Swiper Navigation */
    /* Swiper Pagination */
    /* Responsive Styles */
}

.testimonials .testimonial-slider {
    position: relative;
    padding-bottom: 50px
}

.testimonials .testimonial-slider .swiper-wrapper {
    height: auto !important
}

.testimonials .testimonial-item {
    background: linear-gradient(135deg, var(--surface-color) 0%, color-mix(in srgb, var(--surface-color), var(--accent-color) 2%) 100%);
    border-radius: 20px;
    padding: 0;
    height: 100%;
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative
}

.testimonials .testimonial-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), color-mix(in srgb, var(--accent-color), var(--heading-color) 30%));
    transform: scalex(0);
    transform-origin: left;
    transition: transform 0.4s ease
}

.testimonials .testimonial-item:hover {
    border-color: var(--accent-color)
}

.testimonials .testimonial-item:hover::before {
    transform: scalex(1)
}

.testimonials .testimonial-item:hover .testimonial-header img {
    transform: scale(1.05)
}

.testimonials .testimonial-item:hover .quote-icon {
    color: var(--accent-color);
    transform: scale(1.1)
}

.testimonials .testimonial-header {
    position: relative;
    text-align: center;
    padding: clamp(1.25rem, 1.5vw + 0.75rem, 1.875rem) clamp(1rem, 1.5vw + 0.5rem, 1.875rem) clamp(0.75rem, 1vw + 0.5rem, 1.25rem);
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface-color), var(--accent-color) 3%) 0%, var(--surface-color) 100%)
}

.testimonials .testimonial-header img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid color-mix(in srgb, var(--accent-color), transparent 70%);
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1)
}

.testimonials .testimonial-header .rating {
    display: flex;
    justify-content: center;
    gap: 3px
}

.testimonials .testimonial-header .rating i {
    color: #ffc107;
    font-size: 0.9rem
}

.testimonials .testimonial-body {
    padding: 0 clamp(1rem, 1.5vw + 0.5rem, 1.875rem) clamp(0.75rem, 1vw + 0.5rem, 1.25rem)
}

.testimonials .testimonial-body p {
    font-size: var(--fs-body);
    line-height: 1.6;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
    margin: 0;
    font-style: italic;
    text-align: center;
    position: relative
}

.testimonials .testimonial-body p::before,
.testimonials .testimonial-body p::after {
    content: "\"";
    font-size: 1.5rem;
    color: var(--accent-color);
    opacity: 0.6;
    font-family: serif;
    position: absolute
}

.testimonials .testimonial-body p::before {
    top: -5px;
    left: -10px
}

.testimonials .testimonial-body p::after {
    bottom: -20px;
    right: -5px
}

.testimonials .testimonial-footer {
    padding: clamp(0.75rem, 1vw + 0.5rem, 1.25rem) clamp(1rem, 1.5vw + 0.5rem, 1.875rem) clamp(1.25rem, 1.5vw + 0.75rem, 1.875rem);
    text-align: center;
    position: relative
}

.testimonials .testimonial-footer h5 {
    font-size: clamp(1rem, 0.5vw + 0.875rem, 1.1rem);
    font-weight: 600;
    color: var(--heading-color);
    margin: 0 0 5px
}

.testimonials .testimonial-footer span {
    font-size: var(--fs-small);
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    display: block;
    margin-bottom: 15px
}

.testimonials .testimonial-footer .quote-icon {
    position: absolute;
    bottom: 15px;
    right: 25px;
    color: color-mix(in srgb, var(--accent-color), transparent 60%);
    font-size: 1.5rem;
    transition: all 0.3s ease
}

.testimonials .swiper-navigation {
    position: relative;
    margin-top: 25px;
    display: flex;
    justify-content: flex-end
}

.testimonials .swiper-button-prev,
.testimonials .swiper-button-next,
.portfolio-carousel-section .swiper-button-prev,
.portfolio-carousel-section .swiper-button-next {
    position: static;
    width: 45px;
    height: 45px;
    margin: 0 10px;
    background: var(--accent-color);
    border-radius: 50%;
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1)
}

.testimonials .swiper-button-prev:hover,
.testimonials .swiper-button-next:hover,
.portfolio-carousel-section .swiper-button-prev:hover,
.portfolio-carousel-section .swiper-button-next:hover {
    background: var(--accent-color);
    color: #fff;
    transform: scale(1.2)
}

.testimonials .swiper-button-prev::after,
.testimonials .swiper-button-next::after,
.portfolio-carousel-section .swiper-button-prev::after,
.portfolio-carousel-section .swiper-button-next::after {
    font-size: 16px;
    font-family: 'bootstrap-icons';
    font-weight: normal
}

.testimonials .swiper-button-prev::after,
.portfolio-carousel-section .swiper-button-prev::after {
    content: '\f284'
}

.testimonials .swiper-button-next::after,
.portfolio-carousel-section .swiper-button-next::after {
    content: '\f285'
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .faq-item {
    margin-bottom: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94)
}

.faq .faq-item:last-child {
    border-bottom: none
}

.faq .faq-item.faq-active .faq-header .faq-number {
    color: var(--accent-color);
    font-weight: 500
}

.faq .faq-item.faq-active .faq-header h4 {
    color: var(--accent-color)
}

.faq .faq-item.faq-active .faq-header .faq-toggle {
    color: var(--accent-color);
    transform: rotate(0deg)
}

.faq .faq-item.faq-active .faq-header .faq-toggle i.bi-plus {
    opacity: 0;
    transform: rotate(90deg)
}

.faq .faq-item.faq-active .faq-header .faq-toggle i.bi-dash {
    opacity: 1;
    transform: rotate(0deg)
}

.faq .faq-item.faq-active .faq-content {
    grid-template-rows: 1fr;
    visibility: visible;
    opacity: 1
}

.faq .faq-item:not(.faq-active) .faq-header .faq-toggle i.bi-plus {
    opacity: 1;
    transform: rotate(0deg)
}

.faq .faq-item:not(.faq-active) .faq-header .faq-toggle i.bi-dash {
    opacity: 0;
    transform: rotate(-90deg)
}

.faq .faq-item .faq-header {
    display: flex;
    align-items: center;
    padding: clamp(1.25rem, 2.5vw, 2.5rem) 0;
    cursor: pointer;
    gap: 0;
    min-height: 44px;
    transition: all 0.3s ease
}

.faq .faq-item .faq-header:hover .faq-number {
    transform: scale(1.1)
}

.faq .faq-item .faq-header:hover .faq-toggle {
    transform: scale(1.1)
}

.faq .faq-item .faq-header .faq-number {
    flex-shrink: 0;
    width: clamp(40px, 6vw, 80px);
    font-family: var(--heading-font);
    font-size: clamp(0.9375rem, 0.5vw + 0.8125rem, 1.1rem);
    font-weight: 300;
    color: color-mix(in srgb, var(--default-color), transparent 50%);
    transition: all 0.3s ease;
    letter-spacing: -0.02em
}

.faq .faq-item .faq-header h4 {
    flex: 1;
    margin: 0;
    font-family: var(--heading-font);
    font-size: clamp(1rem, 0.8vw + 0.875rem, 1.25rem);
    font-weight: 300;
    color: var(--heading-color);
    transition: all 0.3s ease;
    line-height: 1.5;
    letter-spacing: -0.01em;
    margin-right: clamp(0.5rem, 1vw + 0.25rem, 1.25rem)
}

.faq .faq-item .faq-header .faq-toggle {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative
}

.faq .faq-item .faq-header .faq-toggle i {
    position: absolute;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94)
}

.faq .faq-item .faq-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    visibility: hidden;
    opacity: 0
}

.faq .faq-item .faq-content .content-inner {
    /* Padding-left sigue el ancho del número + margen; padding-right alinea con el header */
    padding: 0 clamp(2rem, 5vw, 5rem) clamp(1rem, 2vw, 2.5rem) clamp(2.5rem, 6vw, 5rem);
    overflow: hidden
}

.faq .faq-item .faq-content .content-inner p {
    margin: 0;
    color: color-mix(in srgb, var(--default-color), transparent 25%);
    line-height: 1.8;
    font-size: var(--fs-body);
    font-weight: 300
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .contact-form-container {
    padding: clamp(2rem, 4vw, 3.75rem) 0
}

.contact .contact-form-container .form-intro {
    margin-bottom: clamp(2rem, 4vw, 3.75rem)
}

.contact .contact-form-container .form-intro h2 {
    font-size: clamp(1.625rem, 2.5vw + 0.5rem, 2.25rem);
    font-weight: 300;
    line-height: 1.3;
    margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
    color: var(--heading-color);
    letter-spacing: -0.5px
}

.contact .contact-form-container .form-intro p {
    font-size: var(--fs-lead);
    line-height: 1.7;
    color: var(--default-color);
    margin-bottom: 0;
    opacity: 0.85
}

.contact .contact-form-container .contact-form .row {
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem)
}

.contact .contact-form-container .contact-form .row:last-of-type {
    margin-bottom: 0
}

.contact .contact-form-container .contact-form .form-field {
    position: relative;
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem)
}

.contact .contact-form-container .contact-form .form-field.message-field {
    margin-bottom: clamp(1.75rem, 3.5vw, 3.125rem)
}

.contact .contact-form-container .contact-form .form-field .field-label {
    position: absolute;
    top: -10px;
    left: 0;
    font-size: var(--fs-xs);
    font-weight: 500;
    color: var(--heading-color);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.8
}

.contact .contact-form-container .contact-form .form-field .form-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
    background: transparent;
    padding: clamp(0.75rem, 1.5vw, 1.25rem) 0 clamp(0.625rem, 1vw, 0.9375rem) 0;
    font-size: var(--fs-input);
    color: var(--default-color);
    transition: all 0.3s ease;
    min-height: 44px
}

.contact .contact-form-container .contact-form .form-field .form-input:focus:not(:focus-visible) {
    outline: none;
    /* Oculta outline solo para clics de ratón */
    border-bottom-color: var(--accent-color);
    background: transparent
}

.contact .contact-form-container .contact-form .form-field .form-input:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-bottom-color: var(--accent-color);
    background: transparent
}

.contact .contact-form-container .contact-form .form-field .form-input::placeholder {
    color: color-mix(in srgb, var(--default-color), transparent 60%);
    opacity: 1
}

.contact .contact-form-container .contact-form .form-field .message-input {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
    padding-top: 25px
}

.contact .contact-form-container .contact-form .send-button {
    background: var(--btn-gradient);
    background-size: 200% 200%;
    background-position: left center;

    border: none;
    border-radius: var(--radius-2xl);
    color: #0b0b0b;
    padding: var(--btn-padding-lg);
    min-height: 44px;

    font-size: var(--fs-btn);
    font-weight: var(--fw-semibold);
    letter-spacing: 1px;
    text-transform: uppercase;

    display: inline-flex;
    align-items: center;
    gap: 12px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-position 0.6s ease;

    box-shadow: 0 8px 18px var(--btn-gradient-shadow);
}

.contact .contact-form-container .contact-form .send-button:hover {
    background-position: right center;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px var(--btn-gradient-shadow-hover);
}

.contact .contact-form-container .contact-form .send-button .button-arrow {
    font-size: 18px;
    transition: transform 0.25s ease;
}

.contact .contact-form-container .contact-form .send-button:hover .button-arrow {
    transform: translateX(6px);
}
.contact .contact-sidebar {
    background: color-mix(in srgb, var(--accent-color), transparent 97%);
    height: 100%;
    border-radius: clamp(16px, 2vw + 8px, 30px);
    padding: clamp(1.75rem, 4vw, 3.75rem) clamp(1.25rem, 3vw, 2.5rem)
}

.contact .contact-sidebar .contact-header {
    margin-bottom: clamp(1.75rem, 4vw, 3.75rem)
}

.contact .contact-sidebar .contact-header h3 {
    font-size: clamp(1.375rem, 2vw + 0.5rem, 1.75rem);
    font-weight: 300;
    margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem);
    color: var(--heading-color);
    letter-spacing: -0.3px
}

.contact .contact-sidebar .contact-header p {
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--default-color);
    margin-bottom: 0;
    opacity: 0.85
}

.contact .contact-sidebar .contact-methods {
    margin-bottom: clamp(2rem, 4vw, 3.75rem)
}

.contact .contact-sidebar .contact-method {
    display: flex;
    align-items: flex-start;
    gap: clamp(0.75rem, 1.5vw, 1.25rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.5rem)
}

.contact .contact-sidebar .contact-method:last-child {
    margin-bottom: 0
}

.contact .contact-sidebar .contact-method .contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color)
}

.contact .contact-sidebar .contact-method .contact-icon i {
    font-size: clamp(1.125rem, 1vw + 0.875rem, 1.25rem)
}

.contact .contact-sidebar .contact-method .contact-details {
    flex: 1;
    min-width: 0
}

.contact .contact-sidebar .contact-method .contact-details .method-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px
}

.contact .contact-sidebar .contact-method .contact-details p {
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--default-color);
    margin-bottom: 0;
    word-wrap: break-word
}

.contact .contact-sidebar .connect-section {
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    padding-top: clamp(1.5rem, 3vw, 2.5rem)
}

.contact .contact-sidebar .connect-section .connect-label {
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: block;
    margin-bottom: clamp(0.75rem, 1.5vw, 1.25rem)
}

.contact .contact-sidebar .connect-section .social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap
}

.contact .contact-sidebar .connect-section .social-links .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: var(--default-color);
    text-decoration: none;
    transition: all 0.3s ease
}

.contact .contact-sidebar .connect-section .social-links .social-link i {
    font-size: 16px
}

.contact .contact-sidebar .connect-section .social-links .social-link:hover {
    color: var(--accent-color);
    transform: translatey(-2px)
}

/*--------------------------------------------------------------
# Contact — Select dropdown (Project Type)
--------------------------------------------------------------*/
.contact .form-field--select {
    position: relative
}

.contact .form-select-input {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    background-color: transparent;
    padding-right: 40px
}

.contact .form-select-input option[value=""][disabled] {
    display: none
}

.contact .select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--default-color), transparent 40%);
    transition: transform 0.2s ease
}

.contact .form-select-input:focus~.select-arrow {
    transform: translateY(-50%) rotate(180deg)
}

/*--------------------------------------------------------------
# Contact — Form footer & disclaimer
--------------------------------------------------------------*/
.contact .form-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 8px
}

.contact .form-disclaimer {
    font-size: 0.8rem;
    color: color-mix(in srgb, var(--default-color), transparent 45%);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px
}

.contact .form-disclaimer i {
    color: var(--accent-green);
    font-size: 0.95rem;
    flex-shrink: 0
}

/*--------------------------------------------------------------
# Contact — Response promise
--------------------------------------------------------------*/
.contact .response-promise {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: color-mix(in srgb, var(--accent-green), transparent 88%);
    border-left: 3px solid var(--accent-green);
    border-radius: 0 8px 8px 0;
    padding: 14px 16px;
    margin-bottom: 28px
}

.contact .response-promise i {
    font-size: 1.2rem;
    color: color-mix(in srgb, var(--accent-green), var(--heading-color) 30%);
    flex-shrink: 0;
    margin-top: 2px
}

.contact .response-promise strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--heading-color)
}

.contact .response-promise span {
    font-size: 0.78rem;
    color: color-mix(in srgb, var(--default-color), transparent 35%)
}

/*--------------------------------------------------------------
# Contact — Trust badges (certifications)
--------------------------------------------------------------*/
.contact .contact-trust {
    border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
    padding-top: 24px;
    margin-top: 24px;
    margin-bottom: 24px
}

.contact .trust-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--default-color), transparent 45%);
    margin-bottom: 14px
}

.contact .trust-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.contact .trust-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: color-mix(in srgb, var(--heading-color), transparent 93%);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--heading-color)
}

.contact .trust-badge i {
    color: var(--accent-green);
    font-size: 0.95rem
}

/*--------------------------------------------------------------
# Contact — Clickable tel/email links
--------------------------------------------------------------*/
.contact .contact-details a {
    color: var(--default-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease
}

.contact .contact-details a:hover {
    color: color-mix(in srgb, var(--accent-green), var(--heading-color) 20%)
}

/* Ajustes ≥1400px / 1680 / 1920 / 2560 viven en responsive-extra.css */

/*--------------------------------------------------------------
# Prevención de scroll horizontal global
# Se activa solo como última línea de defensa.
--------------------------------------------------------------*/
/* overflow-x: clip en html y body evita scroll horizontal SIN crear un scroll
   container (a diferencia de hidden, que rompería position:sticky del header).
   clip = recorta visualmente pero no afecta el modelo de scroll del navegador. */
html,
body {
    overflow-x: clip
}

/*--------------------------------------------------------------
# Portfolio Section — Featured Swiper Carousel
--------------------------------------------------------------*/
.portfolio-carousel-section {
    padding: 0 0 20px
}

/* Individual card — fills the full Swiper slide */
.pf-item {
    width: 100%;
    height: clamp(360px, 35vw + 180px, 460px);
    display: flex;
    align-items: flex-end;
    background: #000000 no-repeat center center / cover;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    cursor: pointer
}

/* Dark gradient overlay */
.pf-item::after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background-image: linear-gradient(180deg,
            rgba(255, 255, 255, 0) 70%,
            rgb(248, 249, 250) 100%);
    border-radius: 16px;
    z-index: 0;
    transition: background-image 0.45s ease
}

/* Hover / locked card: stronger overlay */
.pf-item:hover::after,
.pf-item.pf-locked::after {
    background-image: linear-gradient(180deg,
            rgba(248, 249, 250, 0) 10%,
            rgba(248, 249, 250, 0.98) 100%)
}

/* Content area — hidden by default, slides up on hover/lock */
.pf-item-desc {
    padding: 0 22px 18px;
    color: #fff;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transform: translateY(calc(100% - 56px));
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%
}

/* Hover / locked: reveal full content */
.pf-item:hover .pf-item-desc,
.pf-item.pf-locked .pf-item-desc {
    transform: none
}

/* Category label */
.pf-item-category {
    display: inline-block;
    font-size: var(--fs-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #000;
    background-color: var(--accent-green);
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.35s ease 0.1s
}

.pf-item:hover .pf-item-category,
.pf-item.pf-locked .pf-item-category {
    opacity: 1;
    transform: translateY(0)
}

/* Title */
.pf-item-desc h3 {
    margin: 0 0 10px;
    font-size: clamp(1rem, 0.5vw + 0.875rem, 1.15rem);
    line-height: 1.35;
    font-family: var(--heading-font);
    color: var(--default-color);
    font-weight: var(--fw-bold);
    margin-bottom: 10px;
}

/* Description paragraph */
.pf-item-desc p {
    font-size: var(--fs-small);
    line-height: 1.6;
    color: var(--default-color);
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.4s ease 0.15s;
    margin-bottom: 14px
}

.pf-item:hover .pf-item-desc p,
.pf-item.pf-locked .pf-item-desc p {
    opacity: 1;
    transform: translateY(0)
}

/* Link */
.pf-item-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: var(--fs-small);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4af700;
    text-decoration: none;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.35s ease 0.22s;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px
}

.pf-item:hover .pf-item-link,
.pf-item.pf-locked .pf-item-link {
    opacity: 1;
    transform: translateY(0)
}

.pf-item-link:hover {
    color: #188001;
    border-bottom-color: #26a802
}

.pf-item-link i {
    transition: transform 0.2s ease
}

.pf-item-link:hover i {
    transform: translateX(4px)
}

/* Portfolio Swiper — navigation container */
.portfolio-carousel-section .swiper-navigation {
    position: relative;
    margin-top: 25px;
    display: flex;
    justify-content: flex-end
}

/* Button styles shared with .testimonials — see shared selectors above */

/*==============================================================
  Helpers globales (se mantienen mobile-first, sin @media)
==============================================================*/

/* Iconos de certificación — escalan fluidamente */
.cert-icon {
    width: auto;
    max-width: clamp(56px, 10vw, 96px);
    height: auto
}

/* Prevención de scroll horizontal: recorta decoraciones salientes */
.about .image-container,
.stats .stats-container,
.faq .faq-wrapper {
    overflow: hidden
}

/* ── Honeypot field (spam protection) ────────────────────────
   Hides the honeypot input from real users while remaining
   accessible to bots. Not using style="" to comply with CSP.
-------------------------------------------------------------- */
.honeypot-field {
    display: none !important;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

/*--------------------------------------------------------------
# Print Styles
--------------------------------------------------------------*/
@media print {

    /* Hide non-essential UI */
    .scroll-top,
    #preloader,
    .mobile-nav-toggle,
    .connect-section,
    .hero .cta-group,
    nav.navmenu,
    #header-placeholder,
    #footer-placeholder {
        display: none !important;
    }

    /* Ensure readable typography */
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: #000;
        page-break-after: avoid;
    }

    p,
    li {
        page-break-inside: avoid;
    }

    /* Remove decorative shadows & animations for print */
    * {
        box-shadow: none !important;
        text-shadow: none !important;
        animation: none !important;
        transition: none !important;
    }

    /* Ensure links are readable */
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.85em;
        color: #444;
    }

    /* Don't expand anchor links */
    a[href^="#"]::after {
        content: "";
    }
}

/*--------------------------------------------------------------
# Professional Certifications — scoped .dur-* block
--------------------------------------------------------------*/
.dur-cert-section {
    --dur-green: #8BC34A;
    --dur-green-soft: #B6D98A;
    --dur-green-glow: #DCEDC2;
    --dur-green-border: #C5E1A5;
    --dur-text-dark: #0B1B2B;
    --dur-text-muted: #3A4755;
    --dur-card-bg: #FFFFFF;

    position: relative;
    padding: clamp(2.5rem, 5vw, 5rem) 0;
    background: var(--background-color);
    overflow: hidden;
}
.dur-cert-section::before {
    content: "";
    position: absolute;
    top: -20px; left: -20px;
    width: clamp(220px, 40vw, 420px);
    height: clamp(220px, 40vw, 420px);
    background: radial-gradient(circle, var(--dur-green-glow) 0%, rgba(220,237,194,0) 70%);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
}
.dur-cert-section > .container { position: relative; z-index: 1; }

.dur-title {
    font-size: clamp(34px, 3.5vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 20px 0;
    color: var(--dur-text-dark);
}
.dur-title .dur-underline {
    position: relative;
    display: inline-block;
}
.dur-title .dur-underline::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 4px;
    background: var(--dur-green);
    border-radius: 2px;
}
.dur-description {
    font-size: var(--fs-lead);
    line-height: 1.55;
    color: var(--dur-text-muted);
    max-width: min(560px, 100%);
    margin: 0 0 clamp(1.25rem, 3vw, 2.5rem) 0;
}

.dur-cards-wrapper {
    background: var(--dur-card-bg);
    border: 1.5px solid var(--dur-green-border);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(15,30,50,0.08);
}
.dur-card {
    background: #FCFCFC;
    border: 1.5px solid var(--dur-green-border);
    border-radius: 14px;
    padding: 18px 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform .25s ease, box-shadow .25s ease;
}
.dur-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15,30,50,0.08);
}
.dur-logo { height: 34px; margin-bottom: 12px; display: flex; align-items: center; }
.dur-logo img, .dur-logo svg { max-height: 34px; max-width: 100%; width: auto; object-fit: contain; }
.dur-card h3 {
    font-size: 16px; font-weight: 700; line-height: 1.2;
    margin: 0 0 8px 0; color: var(--dur-text-dark);
}
.dur-card h3 .dur-nowrap { white-space: nowrap; }
.dur-card p {
    font-size: 13px; line-height: 1.4;
    color: var(--dur-text-muted); margin: 0;
}

.dur-tools-panel {
    position: relative;
    background-color: #FFFFFF;
    background-image: url("../img/bg/fondo-Essential-Tools.webp");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 1px solid rgba(139, 195, 74, 0.35);
    border-radius: 22px;
    padding: clamp(1rem, 2vw, 1.75rem) clamp(1rem, 2vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.75rem);
    box-shadow: 0 8px 28px rgba(15, 30, 50, 0.07);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}
.dur-tools-title {
    font-size: clamp(1.125rem, 1.2vw + 0.75rem, 1.5rem);
    font-weight: 800;
    text-align: center;
    margin: 0 0 clamp(0.75rem, 1.5vw, 1.125rem) 0;
    letter-spacing: -0.01em;
    color: var(--dur-text-dark);
}

/* Cluster de pebbles: flex-wrap centrado. Los pebbles ya NO son absolute,
   así que mantienen su forma orgánica (border-radius) pero se acomodan
   automáticamente en el ancho disponible sin amontonarse en móvil. */
.dur-tools-cluster {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: clamp(10px, 1.2vw, 16px);
    padding: 4px 0;
}
.dur-pebble {
    background: #FFFFFF;
    box-shadow:
        inset 2px 2px 6px rgba(255,255,255,0.9),
        inset -3px -3px 8px rgba(180,190,200,0.18),
        0 4px 12px rgba(15,30,50,0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dur-text-dark);
    transition: transform .3s ease;
    width: 115px;
    height: 85px;
    flex: 0 0 auto;
}
.dur-pebble:hover { transform: scale(1.05); z-index: 2; }
.dur-pebble .dur-icon {
    margin-top: 6px; width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center;
}
.dur-pebble .dur-icon svg,
.dur-pebble .dur-icon img { width: 100%; height: 100%; object-fit: contain; }
.dur-pebble .dur-icon i { font-size: 22px; line-height: 1; color: var(--dur-green); }

/* Cada pebble conserva solo su border-radius orgánico (sin top/left absolute).
   Esto preserva el aspecto "piedra" pero deja al flex-wrap decidir la posición. */
.dur-p1  { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
.dur-p2  { border-radius: 50% 55% 45% 60% / 55% 45% 55% 50%; }
.dur-p3  { border-radius: 55% 45% 60% 40% / 45% 55% 50% 55%; }
.dur-p4  { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
.dur-p5  { border-radius: 50% 55% 45% 60% / 55% 45% 55% 50%; }
.dur-p6  { border-radius: 55% 45% 60% 40% / 45% 55% 50% 55%; }
.dur-p7  { border-radius: 60% 40% 55% 45% / 50% 55% 45% 50%; }
.dur-p9  { border-radius: 50% 55% 45% 60% / 55% 45% 55% 50%; }
.dur-p10 { border-radius: 55% 45% 60% 40% / 45% 55% 50% 55%; }

/* A3 — Pebble cluster: shrink on very small phones (<420px) so each row
   fits 3 pebbles instead of overflowing or wrapping unevenly. */
@media (max-width: 419.98px) {
    .dur-tools-cluster {
        gap: 8px;
    }
    .dur-pebble {
        width: 96px;
        height: 72px;
        font-size: 12px;
        padding: 6px 10px;
    }
    .dur-pebble .dur-icon {
        margin-top: 4px;
        width: 20px;
        height: 20px;
    }
    .dur-pebble .dur-icon i {
        font-size: 18px;
    }
}


/* ═════════════════════════════════════════════════════════════════════
 * TIER 2 — Index sections: mobile + tablet polish
 *   A2 — services .square-flip taller fluid range no longer needed at md
 *   A4 — certifications: 3 cards in a row at sm; orphan 3rd centers
 *   A7 — testimonials + portfolio swiper buttons shrink at <420px
 *   A8 — FAQ header/number padding & alignment tightens at <576px
 *   A9 — contact-sidebar releases height: 100% below lg
 *   A10 — contact-method icon shrinks at <376px
 * ═════════════════════════════════════════════════════════════════════ */

/* A4 — Certifications: orphan 3rd card centers nicely at sm (576–767) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .dur-cards-wrapper .row > .col-md-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .dur-cards-wrapper .row > .col-md-4:nth-child(3) {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .dur-cards-wrapper .row > .col-md-4:nth-child(3) .dur-card {
        max-width: 360px;
        margin-inline: auto;
    }
}

/* A2 — Services .square-flip: at md range cards looked too tall.
   Trim height so 2x2 grid feels balanced at tablet. */
@media (min-width: 768px) and (max-width: 991.98px) {
    .square-flip {
        height: clamp(340px, 32vw + 120px, 400px);
    }
}

/* A7 — Swiper navigation: shrink + tighten at <420px (testimonials + portfolio) */
@media (max-width: 419.98px) {
    .testimonials .swiper-button-prev,
    .testimonials .swiper-button-next,
    .portfolio .swiper-button-prev,
    .portfolio .swiper-button-next {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    .swiper-navigation {
        gap: 8px;
    }
}

/* A8 — FAQ at <576px: tighten number column + content indent */
@media (max-width: 575.98px) {
    .faq .faq-item .faq-header {
        padding: 1rem 0;
    }
    .faq .faq-item .faq-header .faq-number {
        width: 36px;
        font-size: 0.95rem;
    }
    .faq .faq-item .faq-header h4 {
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    .faq .faq-item .faq-content .content-inner {
        padding: 0 0.5rem 1.25rem 3rem;
    }
}

/* A9 — Contact sidebar height: 100% only makes sense in 2-col layout.
   Below lg the row stacks, so release the height anchor. */
@media (max-width: 991.98px) {
    .contact .contact-sidebar {
        height: auto;
    }
}

/* A10 — Contact method icon shrinks on very small phones */
@media (max-width: 375px) {
    .contact .contact-sidebar .contact-method {
        gap: 0.75rem;
    }
    .contact .contact-sidebar .contact-method .contact-icon {
        width: 38px;
        height: 38px;
    }
    .contact .contact-sidebar .contact-method .contact-icon i {
        font-size: 1.05rem;
    }
}


/* ═════════════════════════════════════════════════════════════════════
 * HERO — Laptop-range adjustment (992–1679px)
 *
 *   On 13"–16" laptops the original hero overflowed the viewport
 *   (1043px tall at 1366×768) and the h1 broke into 4 lines because
 *   the lg col is narrow (~543–636px). Below is a surgical override
 *   scoped strictly to `#hero` inside the laptop range — it does NOT
 *   touch:
 *     · the parallax mountain (.parallax-new-*)
 *     · the mobile/tablet hero (<992px)
 *     · the big-screen scaling (≥1680px is handled by responsive-extra.css)
 *     · the blob border-radius, floating-card, or HTML structure
 *
 *   Effect: hero fits ~700–740px tall, h1 settles in 2–3 lines, and
 *   the blob image fills the column height so the two columns balance.
 * ═════════════════════════════════════════════════════════════════════ */

/* 992–1399px — laptops 13"–15" and 16" non-Retina (1280, 1366, 1440) */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .hero .hero-content .content {
        padding: 2rem 0;
    }
    .hero .hero-content .content h1 {
        font-size: clamp(1.875rem, 3vw + 0.25rem, 2.75rem);
        line-height: 1.15;
        margin-bottom: 1rem;
    }
    .hero .hero-content .content p {
        font-size: 1rem;
        line-height: 1.65;
        margin-bottom: 0.75rem;
    }
    .hero .hero-content .content p:last-of-type {
        margin-bottom: 1.5rem;
    }
    .hero .hero-content .hero-image {
        display: flex;
        align-items: center;
        padding: 1rem 0;
    }
    .hero .hero-content .hero-image img {
        max-height: 540px;
        width: 100%;
        object-fit: cover;
    }
}

/* 1400–1679px — portátiles 16" FHD, monitores QHD entrada */
@media (min-width: 1400px) and (max-width: 1679.98px) {
    .hero .hero-content .content {
        padding: 2.5rem 0;
    }
    .hero .hero-content .content h1 {
        font-size: clamp(2.25rem, 3vw, 3rem);
        line-height: 1.15;
        margin-bottom: 1.25rem;
    }
    .hero .hero-content .content p {
        font-size: 1.0625rem;
        line-height: 1.7;
        margin-bottom: 0.85rem;
    }
    .hero .hero-content .hero-image {
        display: flex;
        align-items: center;
    }
    .hero .hero-content .hero-image img {
        max-height: 620px;
        width: 100%;
        object-fit: cover;
    }
}