/* ==========================================================================
   CLIMA-G · Landing Page
   Paleta corporativa
   - Gris fondo:    #f3f2f0
   - Azul principal:#223e61
   - Naranja acento:#e68c3a
   Tipografía: Montserrat (títulos) + Roboto (texto)
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
    /* Colores */
    --color-primary: #223e61;
    --color-primary-dark: #162a44;
    --color-primary-light: #2e5180;
    --color-accent: #e68c3a;
    --color-accent-2: #d27830;
    --color-accent-light: #f3a560;
    --color-cyan: #c97a30;

    --color-white: #ffffff;
    --color-bg: #f3f2f0;
    --color-bg-alt: #e8e6e2;
    --color-text: #1a2f4d;
    --color-text-muted: #5a6b80;
    --color-text-light: #8a99b3;
    --color-border: #dcd9d3;
    --color-card: #ffffff;

    /* Tipografía */
    --font-sans: 'Roboto', system-ui, -apple-system, sans-serif;
    --font-display: 'Montserrat', sans-serif;

    /* Layout */
    --container: 1240px;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    /* Sombras */
    --shadow-sm: 0 4px 12px rgba(34, 62, 97, 0.06);
    --shadow: 0 10px 30px rgba(34, 62, 97, 0.08);
    --shadow-lg: 0 25px 60px rgba(34, 62, 97, 0.14);
    --shadow-glow: 0 15px 50px rgba(230, 140, 58, 0.35);

    /* Transiciones */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease, color .3s ease;
    cursor: pointer;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    box-shadow: 0 10px 25px rgba(34, 62, 97, .3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(34, 62, 97, .45);
}

.btn-ghost {
    background: rgba(255, 255, 255, .05);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, .25);
    backdrop-filter: blur(6px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .5);
    transform: translateY(-3px);
}

/* En secciones claras */
.empresa .btn-ghost,
.soluciones .btn-ghost,
.contacto .btn-ghost,
.cta-card .btn-ghost {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, .4);
    background: rgba(255, 255, 255, .05);
}

.cta-card .btn-ghost i {
    color: var(--color-white);
}

.cta-card .btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
    box-shadow: 0 10px 25px rgba(230, 140, 58, .35);
}

.cta-card .btn-primary:hover {
    box-shadow: 0 15px 35px rgba(230, 140, 58, .5);
}

.empresa .btn-ghost:hover,
.soluciones .btn-ghost:hover,
.contacto .btn-ghost:hover,
.cta-card .btn-ghost:hover {
    background: rgba(255, 255, 255, .15);
    border-color: var(--color-white);
    color: white;
}

.cta-card .btn-ghost:hover i {
    color: var(--color-white);
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: all .4s var(--ease);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(34, 62, 97, .08);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    transition: color .3s ease;
}

.navbar.scrolled .logo {
    color: var(--color-primary);
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: transform .4s var(--ease);
    flex-shrink: 0;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo:hover .logo-mark {
    transform: scale(1.08);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: .5px;
}

.logo-tag {
    font-size: 11px;
    opacity: .75;
    letter-spacing: .3px;
    font-weight: 500;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    font-weight: 500;
    font-size: 15px;
    color: rgba(255, 255, 255, .9);
    border-radius: 8px;
    position: relative;
    transition: color .3s ease;
}

.navbar.scrolled .nav-link {
    color: var(--color-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: all .35s var(--ease);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 24px;
}

.nav-link.active {
    color: white;
}

.navbar.scrolled .nav-link.active {
    color: var(--color-primary);
}

.nav-cta {
    margin-left: 10px;
    padding: 11px 22px;
    font-size: 14px;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all .3s var(--ease);
}

.navbar.scrolled .nav-toggle span {
    background: var(--color-primary);
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    color: white;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-color: transparent;
    background-image: url('../assets/general/inicio_oficina.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(21, 39, 63, .85) 0%, rgba(34, 62, 97, .8) 50%, rgba(46, 81, 128, .75) 100%),
        radial-gradient(ellipse at top right, rgba(255, 255, 255, .15), transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(255, 255, 255, .08), transparent 50%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .35;
    animation: float 12s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    top: 10%;
    right: 5%;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: var(--color-cyan);
    bottom: 10%;
    left: 10%;
    animation-delay: -4s;
}

.hero-orb-3 {
    width: 250px;
    height: 250px;
    background: #e68c3a;
    top: 50%;
    left: 40%;
    animation-delay: -8s;
    opacity: .2;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -40px) scale(1.1); }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    justify-items: stretch;
    text-align: left;
}

.hero-content {
    width: 100%;
    justify-self: stretch;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 28px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(230, 140, 58, .25);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(230, 140, 58, .25); }
    50% { box-shadow: 0 0 0 8px rgba(230, 140, 58, .05); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #223e61 0%, #2e5180 50%, #4a7299 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-white-solid {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
}

.text-orange-solid {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    -webkit-text-fill-color: #e68c3a;
    color: #e68c3a;
}

.hero-description {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, .9);
    margin: 0 0 14px;
    max-width: 620px;
}

.hero-tagline {
    font-size: 19px;
    color: white;
    font-weight: 600;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 56px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 28px 36px;
    background: linear-gradient(180deg, rgba(15, 23, 42, .85), rgba(15, 23, 42, .7));
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 22px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    max-width: 940px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-stats::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(230, 140, 58, .18), transparent 70%);
    pointer-events: none;
}

.hero-stats-group {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    min-width: 0;
}

.stat {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    white-space: nowrap;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.stat-value {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    line-height: 1;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -1.5px;
}

.stat-suffix {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    margin-top: 6px;
    line-height: 1.2;
    white-space: normal;
    letter-spacing: .2px;
}

.stat-divider {
    display: none;
}

.hero-stats-cta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 320px;
    padding-left: 28px;
    border-left: 1px solid rgba(255, 255, 255, .12);
    position: relative;
    z-index: 1;
}

.hero-stats-cta p {
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .8);
    margin: 0;
}

.hero-scroll-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    color: rgba(255, 255, 255, .7);
    font-size: 22px;
    animation: bounce-down 1.8s ease-in-out infinite;
}

.hero-scroll-arrow i {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, .3));
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); opacity: .7; }
    50% { transform: translateY(10px); opacity: 1; }
}

.placeholder {
    background: linear-gradient(135deg, #2e5180 0%, #223e61 100%);
}

.placeholder-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255, 255, 255, .7);
    text-align: center;
    padding: 20px;
}

.placeholder-content i {
    font-size: 64px;
    opacity: .6;
}

.placeholder-content span {
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, .25);
    padding: 6px 16px;
    border-radius: 999px;
}

/* ---------- Marquee ---------- */
.marquee-section {
    padding: 50px 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

.marquee-title {
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    font-weight: 600;
}

.marquee {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.marquee-set {
    display: flex;
    gap: 60px;
    padding-right: 60px;
    flex-shrink: 0;
}

.marquee-set span {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    opacity: .55;
    transition: opacity .3s ease;
    white-space: nowrap;
}

.marquee-set span:hover {
    opacity: 1;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% / 4 * 2)); }
}

/* ---------- Sections ---------- */
.section {
    padding: 110px 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 70px;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(230, 140, 58, .18);
    border-radius: 999px;
}

.eyebrow.light {
    color: var(--color-accent);
    background: rgba(255, 255, 255, .12);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 18px;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ---------- Empresa ---------- */
.empresa {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--color-bg) 100%);
}

.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
    margin-bottom: 90px;
}

.empresa-image {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    box-shadow: var(--shadow-lg);
}

.empresa-image img,
.empresa-image video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
    display: block;
}

.empresa-image:hover img,
.empresa-image:hover video {
    transform: scale(1.05);
}

.empresa-image-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    padding: 14px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    font-weight: 700;
    color: var(--color-primary);
}

.empresa-image-badge i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.empresa-lead {
    font-size: 19px;
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: 20px;
}

.empresa-info p {
    color: var(--color-text-muted);
    margin-bottom: 18px;
    line-height: 1.7;
}

.empresa-info strong {
    color: var(--color-primary);
    font-weight: 600;
}

/* Certificaciones */
.certificaciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 70px;
}

.cert-card {
    padding: 28px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: white;
    border-radius: var(--radius-lg);
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(230, 140, 58, .3), transparent 70%);
    transition: opacity .4s ease;
}

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

.cert-card > * {
    position: relative;
}

.cert-card i {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.cert-card h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cert-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, .85);
    line-height: 1.55;
}

/* ---------- Soluciones ---------- */
.soluciones {
    background: var(--color-bg);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 90px;
}

.servicio-card {
    padding: 36px 30px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: all .4s var(--ease);
    position: relative;
    overflow: hidden;
}

.servicio-card > * {
    transition: color .3s ease;
}

.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: var(--color-accent);
    background: linear-gradient(180deg, white, var(--color-bg));
}

.servicio-card:hover h3 {
    color: var(--color-primary);
}

.servicio-card:hover .servicio-link {
    color: var(--color-primary-light);
}

.servicio-card:hover .servicio-link i {
    transform: translateX(4px);
}

.servicio-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(230, 140, 58, .15), rgba(34, 62, 97, .1));
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
    transition: transform .4s var(--ease);
}

.servicio-card:hover .servicio-icon {
    transform: scale(1.15);
}

.servicio-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.3;
}

.servicio-card p {
    color: var(--color-text-muted);
    font-size: 14.5px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.servicio-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-primary);
}

.servicio-link i {
    transition: transform .3s var(--ease);
}

/* Sistemas y sectores */
.soluciones-extra {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 90px;
}

.extra-block {
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.extra-block h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.extra-block h3 i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Carousel de equipos */
/* Carousel compacto de equipos */
.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.chips li {
    padding: 8px 16px;
    background: var(--color-bg);
    color: var(--color-text);
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 500;
    border: 1px solid var(--color-border);
    transition: all .3s var(--ease);
    cursor: default;
}

.chips li:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: translateY(-2px);
}

.chips li.chip-img {
    padding: 6px 16px 6px 6px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

.chips li.chip-img img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Why us */
.why-us {
    background: linear-gradient(135deg, #0f1929 0%, #162a44 50%, #0d1623 100%);
    color: white;
    padding: 48px 40px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
}

.why-us::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(230, 140, 58, .12), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(46, 81, 128, .25), transparent 40%);
    pointer-events: none;
}

.why-us > * {
    position: relative;
    z-index: 1;
}

.why-title {
    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
}

.why-bento {
    display: grid;
    grid-template-columns: 1fr 320px 1fr;
    gap: 18px;
    align-items: stretch;
}

.why-side {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.why-side-left {
    grid-template-rows: 1fr 1fr auto;
}

.why-side-right {
    grid-template-rows: auto 1fr;
}

.why-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    min-width: 0;
}

.why-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: 30px 28px;
    transition: all .35s var(--ease);
    min-width: 0;
}

.why-card:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(230, 140, 58, .35);
    transform: translateY(-3px);
}

.why-card-lg {
    display: flex;
    align-items: center;
    gap: 22px;
}

.why-card-sm {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 30px 22px;
}

.why-card-icon {
    width: 72px;
    height: 72px;
    min-width: 72px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
}

.why-card-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.why-card-num {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.4px;
    color: var(--color-accent);
}

.why-card h4 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: white;
}

.why-image {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    min-height: 100%;
}

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

/* ---------- Proyectos ---------- */
.proyectos {
    background: var(--color-white);
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 28px;
}

.proyecto-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all .4s var(--ease);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

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

.proyecto-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
}

.proyecto-image img,
.proyecto-image video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}

.proyecto-card:hover .proyecto-image img,
.proyecto-card:hover .proyecto-image video {
    transform: scale(1.08);
}

.proyecto-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

/* ---------- Carousel de proyectos ---------- */
.proyecto-carousel {
    position: relative;
    overflow: hidden;
}

.proyecto-carousel .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform .6s var(--ease);
}

.proyecto-carousel .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.proyecto-carousel .carousel-slide img,
.proyecto-carousel .carousel-slide video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s var(--ease);
}

.proyecto-carousel .carousel-slide-full {
    padding: 0;
}

.proyecto-modal-media .carousel-slide-full img,
.proyecto-modal-media .carousel-slide-full video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

/* Slide con imagen centrada verticalmente con margenes (object-fit: contain) */
.proyecto-modal-media .carousel-slide-centered {
    align-self: stretch;
    height: 100%;
    padding: 20px;
}

.proyecto-modal-media .carousel-slide-centered img,
.proyecto-modal-media .carousel-slide-centered video {
    position: static;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, .5),
        0 6px 20px rgba(0, 0, 0, .3);
}

.proyecto-card:hover .proyecto-carousel .carousel-slide img,
.proyecto-card:hover .proyecto-carousel .carousel-slide video {
    transform: scale(1.08);
}

.slide-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(6px);
    color: white;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
    pointer-events: none;
}

.slide-badge i {
    color: var(--color-accent);
    font-size: 12px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border: none;
    z-index: 3;
    opacity: 0;
    transition: opacity .3s ease, background .3s ease, transform .3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.proyecto-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-50%) scale(1.08);
}

.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }

.carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.carousel-dots .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
    transition: background .3s ease, transform .3s ease;
    border: none;
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--color-accent);
    transform: scale(1.25);
}

.proyecto-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.proyecto-body h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.proyecto-loc {
    font-size: 13px;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
    border: 1px solid rgba(255, 255, 255, .15);
    padding: 5px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(230, 140, 58, .25);
}

.proyecto-loc i {
    color: var(--color-white);
}

/* Mayor especificidad para que el color blanco gane sobre .proyecto-body p */
.proyecto-body .proyecto-loc,
.proyecto-locs .proyecto-loc {
    color: var(--color-white);
}

.proyecto-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}

.proyecto-meta .proyecto-loc {
    margin-bottom: 0;
}

.proyecto-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    color: #8a5a0a;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f5b942;
}

.proyecto-status i {
    color: #b8770e;
    font-size: 13px;
}

.proyecto-locs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 12px;
}

.proyecto-body p {
    color: var(--color-text-muted);
    font-size: 14px;
    line-height: 1.55;
}

.proyecto-body p:last-of-type {
    margin-bottom: 16px;
}

.proyecto-extras {
    display: none;
}

.proyecto-ver-mas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding: 10px 20px;
    border-radius: 999px;
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    font-family: inherit;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    transition: all .3s var(--ease);
    align-self: flex-start;
}

.proyecto-ver-mas i {
    transition: transform .3s var(--ease);
    font-size: 12px;
}

.proyecto-ver-mas:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 62, 97, .25);
}

.proyecto-ver-mas:hover i {
    transform: translateX(3px);
}

/* ---------- Modal de proyecto expandido ---------- */
.proyecto-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s var(--ease);
}

.proyecto-modal.open {
    opacity: 1;
    visibility: visible;
}

.proyecto-modal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 25, 45, .82) 0%, rgba(22, 42, 68, .75) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
}

.proyecto-modal-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: calc(100vh - 56px);
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow:
        0 50px 120px rgba(0, 0, 0, .45),
        0 20px 40px rgba(0, 0, 0, .25);
    transform: translateY(40px) scale(.96);
    transition: transform .5s var(--ease);
    display: flex;
    flex-direction: column;
}

.proyecto-modal.open .proyecto-modal-content {
    transform: translateY(0) scale(1);
}

.proyecto-modal-back {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    color: var(--color-primary);
    font-family: inherit;
    font-weight: 600;
    font-size: 13.5px;
    border: 1px solid rgba(34, 62, 97, .12);
    cursor: pointer;
    transition: all .3s var(--ease);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
    letter-spacing: .2px;
}

.proyecto-modal-back i {
    font-size: 12px;
    transition: transform .3s var(--ease);
}

.proyecto-modal-back:hover {
    background: var(--color-accent);
    color: white;
    border-color: var(--color-accent);
    transform: translateX(-3px);
    box-shadow: 0 10px 25px rgba(230, 140, 58, .4);
}

.proyecto-modal-back:hover i {
    transform: translateX(-3px);
}

.proyecto-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.proyecto-modal-media {
    position: relative;
    background:
        radial-gradient(circle at 30% 20%, rgba(46, 81, 128, .4), transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(230, 140, 58, .12), transparent 50%),
        linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #0f1929 100%);
    min-height: 380px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.proyecto-modal-media::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.proyecto-modal-media .proyecto-image {
    height: 100%;
    aspect-ratio: auto;
}

.proyecto-modal-media .proyecto-carousel {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.proyecto-modal-media .proyecto-carousel .carousel-track {
    align-items: center;
}

.proyecto-modal-media .carousel-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.proyecto-modal-media .carousel-slide img,
.proyecto-modal-media .carousel-slide video {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, .5),
        0 6px 20px rgba(0, 0, 0, .3);
}

/* Imágenes verticales: edge-to-edge (sin margen ni padding) */
.proyecto-modal-media .carousel-slide-vertical {
    padding: 0;
}

.proyecto-modal-media .carousel-slide-vertical img,
.proyecto-modal-media .carousel-slide-vertical video {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.proyecto-modal-media .proyecto-tag {
    display: none;
}

.proyecto-modal-media .placeholder-content {
    color: rgba(255, 255, 255, .85);
}

.proyecto-modal-media .carousel-btn {
    opacity: 0;
    width: 46px;
    height: 46px;
    font-size: 15px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(8px);
    transition: opacity .3s ease, background .3s ease, transform .3s ease;
}

.proyecto-modal-media:hover .carousel-btn {
    opacity: 1;
}

/* Móvil: flechas siempre visibles (no hay hover) */
@media (max-width: 1024px) {
    .proyecto-modal-media .carousel-btn {
        opacity: .9;
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

.proyecto-modal-media .carousel-btn:hover {
    background: var(--color-accent);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.proyecto-modal-media .carousel-dots {
    bottom: 18px;
}

.proyecto-modal-media .carousel-dots .dot {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, .45);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
}

.proyecto-modal-media .carousel-dots .dot.active {
    background: var(--color-accent);
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(230, 140, 58, .3);
}

.proyecto-modal-info {
    padding: 48px 48px 44px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfaf8 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(34, 62, 97, .25) transparent;
}

.proyecto-modal-info::-webkit-scrollbar {
    width: 8px;
}

.proyecto-modal-info::-webkit-scrollbar-track {
    background: transparent;
}

.proyecto-modal-info::-webkit-scrollbar-thumb {
    background: rgba(34, 62, 97, .2);
    border-radius: 999px;
}

.proyecto-modal-info::-webkit-scrollbar-thumb:hover {
    background: rgba(34, 62, 97, .35);
}

.proyecto-modal-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 7px 16px;
    background: linear-gradient(135deg, rgba(230, 140, 58, .15) 0%, rgba(230, 140, 58, .08) 100%);
    color: var(--color-accent);
    border: 1px solid rgba(230, 140, 58, .25);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.proyecto-modal-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(230, 140, 58, .2);
}

.proyecto-modal-info h3 {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1.15;
    letter-spacing: -.8px;
}

.proyecto-modal-locations {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.proyecto-modal-info p {
    color: var(--color-text);
    font-size: 15.5px;
    line-height: 1.7;
    font-weight: 400;
}

.proyecto-modal-extras {
    border-top: 1px solid var(--color-border);
    padding-top: 22px;
    margin-top: 6px;
}

.proyecto-modal-scroll-hint {
    position: sticky;
    bottom: -12px;
    left: 0;
    right: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-end;
    gap: 10px;
    padding: 14px 18px;
    margin: 12px -48px -12px 0;
    color: white;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .8px;
    text-transform: uppercase;
    opacity: 1;
    transition: opacity .3s var(--ease), transform .3s var(--ease);
    pointer-events: none;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(34, 62, 97, .35);
}

.proyecto-modal-scroll-hint i {
    font-size: 16px;
    color: white;
    animation: scroll-down-bounce 1.8s ease-in-out infinite;
}

.proyecto-modal-scroll-hint.hidden {
    opacity: 0;
}

@keyframes scroll-down-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.modal-featured-cards,
.modal-detail-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-featured-cards {
    margin-bottom: 16px;
}

.modal-detail-cards {
    margin-bottom: 16px;
}

.modal-card {
    border-radius: var(--radius);
    color: var(--color-white);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    position: relative;
    overflow: hidden;
}

.modal-card-content {
    color: var(--color-white);
    font-size: 14.5px;
    line-height: 1.5;
}

.modal-card-content strong {
    color: var(--color-white);
    font-weight: 700;
}

/* Cards destacadas naranjas (3 primeros detalles) */
.modal-card-featured {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow:
        0 10px 24px rgba(230, 140, 58, .25),
        inset 0 1px 0 rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .08);
}

.modal-card-featured::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, .2), transparent 60%);
    pointer-events: none;
}

.modal-card-featured::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: rgba(255, 255, 255, .35);
}

.modal-card-featured:hover {
    transform: translateY(-2px);
    box-shadow:
        0 14px 30px rgba(230, 140, 58, .35),
        inset 0 1px 0 rgba(255, 255, 255, .2);
}

/* Card "En proceso": estado de proyecto en desarrollo */
.modal-card-in-progress {
    background: linear-gradient(135deg, #f5b942 0%, #d68f1f 100%);
    box-shadow:
        0 10px 24px rgba(245, 185, 66, .3),
        inset 0 1px 0 rgba(255, 255, 255, .18);
}

.modal-card-in-progress:hover {
    box-shadow:
        0 14px 30px rgba(245, 185, 66, .4),
        inset 0 1px 0 rgba(255, 255, 255, .25);
}

.modal-card-in-progress::before {
    background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 60%);
}

/* Ícono de obra dentro de la card "En proceso" */
.modal-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .15);
    border: 1.5px solid rgba(255, 255, 255, .3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.modal-card-icon i {
    font-size: 22px;
    color: var(--color-white);
}

@keyframes workingPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, .35);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
        transform: scale(1.04);
    }
}

.modal-card-in-progress .modal-card-icon {
    animation: workingPulse 2.4s ease-in-out infinite;
}

.modal-card-featured .modal-card-content {
    font-size: 15px;
    font-weight: 500;
    flex: 1;
    position: relative;
    z-index: 1;
}

.modal-card-badge {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    color: rgba(255, 255, 255, .55);
    line-height: 1.1;
    flex-shrink: 1;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    max-width: 60%;
}

/* Cards azules (resto de los detalles) */
.modal-card-detail {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    box-shadow:
        0 4px 12px rgba(34, 62, 97, .14),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .06);
}

.modal-card-detail:hover {
    transform: translateX(4px);
    box-shadow:
        0 8px 18px rgba(34, 62, 97, .22),
        inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* Card oscura con texto blanco (descripciones largas de texto) */
.modal-card-text {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: var(--color-white);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, .2),
        inset 0 1px 0 rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .06);
}

.modal-card-text .modal-card-content {
    color: var(--color-white);
    font-size: 14px;
    line-height: 1.55;
}

.modal-card-text .modal-card-content strong {
    color: var(--color-white);
    font-weight: 700;
}

.modal-card-text:hover {
    transform: translateX(4px);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, .3),
        inset 0 1px 0 rgba(255, 255, 255, .12);
}

/* Últimas 2 o 3 cards: side-by-side con divisor */
.modal-last-cards {
    display: flex;
    align-items: stretch;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--radius);
    box-shadow:
        0 10px 24px rgba(34, 62, 97, .22),
        inset 0 1px 0 rgba(255, 255, 255, .1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
}

.modal-card-last {
    flex: 1;
    padding: 20px 22px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.modal-last-cards-trio .modal-card-last {
    padding: 18px 16px;
}

.modal-last-cards-trio .modal-card-content {
    font-size: 13.5px;
    line-height: 1.45;
}

.modal-last-cards-trio .modal-card-divider {
    margin: 14px 0;
}

.modal-last-cards-trio .modal-card-divider-dot {
    width: 22px;
    height: 22px;
    border-width: 2px;
}

.modal-card-divider {
    width: 1px;
    background: rgba(255, 255, 255, .22);
    margin: 18px 0;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-card-divider-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-accent);
    border: 3px solid var(--color-primary);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

body.modal-open {
    overflow: hidden;
}

/* ---------- Clientes ---------- */
.clientes {
    background: var(--color-bg);
}

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

.cliente-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    text-align: center;
}

.cliente-item {
    aspect-ratio: 5/3;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.cliente-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
    position: relative;
    z-index: 1;
}

.cliente-nombre {
    font-weight: 600;
    font-size: 13px;
    color: var(--color-primary);
    text-align: center;
    line-height: 1.3;
}

.cliente-item.placeholder {
    background: linear-gradient(135deg, #e8e6e2, #dcd9d3);
}

.cliente-placeholder-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: var(--color-primary-light);
    letter-spacing: 1px;
}

/* ---------- CTA ---------- */
.cta-section {
    padding: 60px 0 100px;
    background: var(--color-white);
}

.cta-card {
    background: url('../assets/general/contact_card.jpg') center/cover no-repeat;
    color: white;
    padding: 70px;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(22, 42, 68, .8) 0%, rgba(34, 62, 97, .76) 50%, rgba(46, 81, 128, .8) 100%),
        radial-gradient(circle at 90% 50%, rgba(230, 140, 58, .3), transparent 60%),
        radial-gradient(circle at 10% 80%, rgba(210, 120, 48, .15), transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 14px 0 20px;
    letter-spacing: -.5px;
}

.cta-content p {
    color: rgba(255, 255, 255, .85);
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 32px;
}

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

.cta-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 220px;
}

.cta-circle {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-primary-light));
    opacity: .2;
    animation: pulse 3s infinite;
}

.cta-icon {
    font-size: 80px;
    color: white;
    position: relative;
    z-index: 1;
    animation: floatCard 4s ease-in-out infinite;
}

/* ---------- Contacto ---------- */
.contacto {
    background: var(--color-bg);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: stretch;
}

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    justify-content: space-between;
}

.contacto-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 24px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: all .35s var(--ease);
}

.contacto-item:hover {
    transform: translateX(6px);
    box-shadow: var(--shadow);
    border-color: var(--color-accent);
}

.contacto-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contacto-item > div {
    display: flex;
    flex-direction: column;
}

.contacto-item span {
    font-size: 12px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contacto-item a {
    font-weight: 600;
    font-size: 16px;
    color: var(--color-text);
    margin-top: 2px;
}

.contacto-item a:hover {
    color: var(--color-primary-light);
}

/* Form */
.contacto-form {
    padding: 40px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.contacto-form h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 26px;
    color: var(--color-primary);
}

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

.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
    transition: all .3s var(--ease);
    outline: none;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(230, 140, 58, .15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 12px;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 12px;
}

/* ---------- Footer ---------- */
.footer {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #0f1f33 100%);
    color: white;
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 18px;
}

.footer-brand .logo-mark {
    box-shadow: none;
}

.footer-brand p {
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: var(--color-accent);
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, .7);
    font-size: 14px;
    margin-bottom: 12px;
    transition: all .3s var(--ease);
}

.footer-col a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, .5);
}

.footer-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .85);
    font-weight: 500;
    transition: color .3s ease;
}

.footer-bottom a:hover {
    color: white;
}

.footer-bottom a i {
    font-size: 14px;
    color: rgba(255, 255, 255, .45);
    transition: color .3s ease, transform .3s ease;
}

.footer-bottom a:hover i {
    color: rgba(255, 255, 255, .9);
}

.footer-bottom a:hover i {
    transform: scale(1.15);
}

/* ---------- WhatsApp flotante ---------- */
.float-whatsapp {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
    z-index: 999;
    transition: transform .3s var(--ease);
}

.float-whatsapp:hover {
    transform: scale(1.1);
}

.float-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25d366;
    animation: pulseWhats 2s infinite;
    z-index: -1;
}

@keyframes pulseWhats {
    0% { transform: scale(1); opacity: .8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Scroll top ---------- */
.scroll-top {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-2) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 10px 25px rgba(230, 140, 58, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .4s var(--ease);
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: linear-gradient(135deg, var(--color-accent-2) 0%, #b8651e 100%);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(230, 140, 58, .5);
}

/* ---------- Reveal animations ---------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
}

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

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet: <= 1024px */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 30px;
    }

    .hero-stats {
        flex-direction: column;
        align-items: stretch;
        max-width: 520px;
        margin: 0 auto;
        padding: 24px 26px;
        gap: 24px;
    }

    .hero-stats-group {
        justify-content: space-between;
        gap: 16px;
    }

    .stat { min-width: 0; flex: 1; }

    .stat-number { font-size: 36px; }
    .stat-suffix { font-size: 22px; }

    .hero-stats-cta {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, .12);
        padding-top: 18px;
        max-width: none;
    }

    .hero-description,
    .hero-tagline {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-actions { justify-content: flex-start; }

    .empresa-grid,
    .cta-card,
    .contacto-grid,
    .soluciones-extra {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .proyecto-modal { padding: 16px; }

    .proyecto-modal-content { max-height: calc(100vh - 32px); }

    .proyecto-modal-grid {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .proyecto-modal-media { min-height: 280px; aspect-ratio: 16/10; }

    .proyecto-modal-media .carousel-slide {
        display: block;
        padding: 0;
    }

    .proyecto-modal-media .carousel-slide img,
    .proyecto-modal-media .carousel-slide video {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        border-radius: 0;
        box-shadow: none;
    }

    .proyecto-modal-media .proyecto-carousel .carousel-track {
        align-items: stretch;
    }

    .proyecto-modal-info { padding: 32px 32px 36px; gap: 18px; }

    .proyecto-modal-info h3 { font-size: 26px; }

    .proyecto-modal-back { top: 14px; left: 14px; padding: 8px 14px; font-size: 13px; }
}

/* Tablet vertical / móvil grande: <= 768px */
@media (max-width: 768px) {
    html { scroll-padding-top: 78px; }

    .container { padding: 0 20px; }

    /* Navbar */
    .navbar { padding: 14px 0; }

    .logo-name { font-size: 16px; }
    .logo-tag { font-size: 10px; }
    .logo-mark { width: 40px; height: 40px; font-size: 18px; }

    .nav-menu {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px 20px;
        gap: 4px;
        box-shadow: 0 20px 40px rgba(34, 62, 97, .15);
        transform: translateY(-150%);
        transition: transform .4s var(--ease);
        align-items: stretch;
        border-radius: 0 0 24px 24px;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }

    .nav-menu.open { transform: translateY(0); }

    .nav-link {
        color: var(--color-text) !important;
        padding: 14px 18px;
        border-radius: 10px;
        text-align: center;
        font-size: 16px;
    }

    .nav-link:hover,
    .nav-link.active {
        background: var(--color-bg);
        color: var(--color-primary) !important;
    }

    .nav-link::after { display: none; }

    .nav-cta {
        margin-top: 14px;
        justify-content: center;
    }

    .nav-toggle { display: flex; width: 38px; height: 38px; }

    /* Hero */
    .hero {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .hero-orb { filter: blur(60px); }
    .hero-orb-1 { width: 280px; height: 280px; }
    .hero-orb-2 { width: 220px; height: 220px; }
    .hero-orb-3 { display: none; }

    .hero-badge { margin-bottom: 28px; }

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        letter-spacing: -.8px;
        margin-bottom: 32px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-tagline {
        font-size: 17px;
        margin-bottom: 36px;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 36px;
    }

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

    /* Stats */
    .hero-stats {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 18px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .stat {
        flex-direction: row;
        text-align: left;
        min-width: 0;
        justify-content: flex-start;
    }

    .stat-icon { width: 40px; height: 40px; font-size: 16px; }

    .stat-number { font-size: 24px; }
    .stat-suffix { font-size: 15px; }
    .stat-label { font-size: 11px; margin-top: 2px; }

    /* Sections */
    .section { padding: 70px 0; }

    .section-head {
        margin-bottom: 44px;
    }

    .section-title {
        font-size: clamp(1.7rem, 6vw, 2.2rem);
        letter-spacing: -.5px;
    }

    .section-subtitle { font-size: 15.5px; }

    .eyebrow { font-size: 11px; letter-spacing: 2px; padding: 5px 14px; }

    /* Marquee */
    .marquee-section { padding: 50px 0 40px; }
    .marquee-title { font-size: 12px; letter-spacing: 2px; margin-bottom: 24px; }
    .marquee-set span { font-size: 22px; }
    .marquee-set { gap: 40px; padding-right: 40px; }

    /* Empresa */
    .empresa-grid { gap: 40px; margin-bottom: 60px; }

    .empresa-image {
        aspect-ratio: 4/5;
        max-width: 100%;
        margin: 0 auto;
    }

    .empresa-lead { font-size: 17px; }
    .empresa-info p { font-size: 15px; }

    .certificaciones { gap: 14px; margin-top: 50px; }
    .cert-card { padding: 22px; }
    .cert-card i { font-size: 28px; margin-bottom: 12px; }
    .cert-card h4 { font-size: 16px; }
    .cert-card p { font-size: 13px; }

    /* Soluciones */
    .servicios-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 60px;
    }

    .servicio-card { padding: 26px 22px; }
    .servicio-icon { width: 52px; height: 52px; font-size: 20px; margin-bottom: 16px; }
    .servicio-card h3 { font-size: 17px; }
    .servicio-card p { font-size: 14px; }

    .soluciones-extra { gap: 18px; margin-bottom: 60px; }

    .extra-block { padding: 28px 22px; }
    .extra-block h3 { font-size: 18px; margin-bottom: 18px; gap: 10px; }
    .extra-block h3 i { width: 36px; height: 36px; font-size: 15px; }
    .chips li { font-size: 12.5px; padding: 7px 13px; }

    .why-us { padding: 36px 28px; border-radius: var(--radius-lg); }
    .why-title { font-size: 24px; margin-bottom: 28px; }
    .why-bento { grid-template-columns: 1fr 220px 1fr; gap: 12px; }
    .why-row { gap: 12px; }
    .why-side { gap: 12px; }
    .why-card { padding: 22px; border-radius: 16px; }
    .why-card-sm { padding: 20px 16px; }
    .why-card-icon { width: 58px; height: 58px; min-width: 58px; font-size: 24px; border-radius: 14px; }
    .why-card h4 { font-size: 15px; }

    /* Proyectos */
    .proyectos-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .proyecto-card { max-width: 480px; margin: 0 auto; width: 100%; }
    .proyecto-image { aspect-ratio: 16/9; }
    .proyecto-body { padding: 20px; }
    .proyecto-body h3 { font-size: 17px; }

    .proyecto-modal { padding: 10px; }
    .proyecto-modal-content { max-height: calc(100vh - 20px); border-radius: var(--radius-lg); }
    .proyecto-modal-info { padding: 28px 24px 32px; gap: 16px; }
    .proyecto-modal-scroll-hint { bottom: -8px; margin: 12px -24px -8px 0; padding: 12px 16px; font-size: 12px; }
    .proyecto-modal-info h3 { font-size: 22px; }
    .proyecto-modal-info p { font-size: 14.5px; }
    .proyecto-modal-extras { padding-top: 18px; }
    .proyecto-modal-media { min-height: 220px; }

    .proyecto-modal-media .carousel-slide {
        display: block;
        padding: 0;
    }

    .proyecto-modal-media .carousel-slide img,
    .proyecto-modal-media .carousel-slide video {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        border-radius: 0;
        box-shadow: none;
    }

    .proyecto-modal-media .proyecto-carousel .carousel-track {
        align-items: stretch;
    }
    .proyecto-modal-back { font-size: 12.5px; padding: 8px 12px; }

    .modal-featured-cards,
    .modal-detail-cards { gap: 10px; }

    .modal-card-featured {
        padding: 16px 18px;
        gap: 14px;
    }

    .modal-card-icon {
        width: 44px;
        height: 44px;
    }

    .modal-card-icon i { font-size: 18px; }

    .modal-card-badge { font-size: 24px; }

    .modal-card-featured .modal-card-content { font-size: 14.5px; }

    .modal-card-detail { padding: 12px 16px; }

    .modal-last-cards { flex-direction: column; }

    .modal-card-divider {
        width: auto;
        height: 1px;
        margin: 0 18px;
    }

    .modal-card-divider-dot { display: none; }

    .modal-card-last { padding: 16px 18px; }

    /* Clientes */
    .clientes-grid {
        grid-template-columns: repeat(2, 130px);
        justify-content: center;
        gap: 36px 32px;
    }

    .cliente-card { gap: 8px; }
    .cliente-item { aspect-ratio: 4/3; }
    .cliente-item img { padding: 2px; }
    .cliente-nombre { font-size: 12px; }
    .cliente-placeholder-text { font-size: 22px; }

    /* CTA */
    .cta-section { padding: 30px 0 60px; }
    .cta-card {
        padding: 36px 24px;
        text-align: center;
        border-radius: var(--radius-lg);
        gap: 30px;
    }

    .cta-content h2 {
        font-size: clamp(1.4rem, 5vw, 1.9rem);
    }

    .cta-content p { font-size: 14.5px; margin-bottom: 24px; }

    .cta-actions {
        flex-direction: column;
        gap: 12px;
    }

    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-visual { display: none; }

    /* Contacto */
    .contacto-grid { gap: 36px; }

    .contacto-item { padding: 16px 18px; gap: 14px; }
    .contacto-icon { width: 42px; height: 42px; font-size: 17px; }
    .contacto-item span { font-size: 11px; }
    .contacto-item a { font-size: 14.5px; word-break: break-word; }

    .contacto-form { padding: 26px 22px; }
    .contacto-form h3 { font-size: 19px; margin-bottom: 20px; }

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

    .form-group { margin-bottom: 14px; }
    .form-group label { font-size: 11.5px; margin-bottom: 6px; }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 14px;
        font-size: 14.5px;
    }

    /* Footer */
    .footer { padding: 60px 0 24px; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-bottom: 40px;
    }

    .footer-brand p { font-size: 13.5px; }
    .footer-col h4 { font-size: 13px; margin-bottom: 14px; letter-spacing: 1.2px; }
    .footer-col a { font-size: 13.5px; margin-bottom: 10px; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 6px;
        font-size: 12px;
    }

    /* Flotantes */
    .float-whatsapp {
        width: 54px;
        height: 54px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-top {
        width: 42px;
        height: 42px;
        font-size: 14px;
        bottom: 20px;
        left: 20px;
    }
}

/* Móvil pequeño: <= 480px */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .hero { padding: 90px 0 0; }

    .hero-badge {
        font-size: 11.5px;
        padding: 7px 14px;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -.5px;
        margin-bottom: 28px;
    }

    .hero-description { font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
    .hero-tagline { font-size: 16px; margin-bottom: 32px; }

    .hero-stats {
        padding: 14px;
        gap: 12px;
    }

    .stat { gap: 12px; }
    .stat-icon { width: 38px; height: 38px; font-size: 14px; }
    .stat-number { font-size: 22px; }
    .stat-label { font-size: 10.5px; }

    .btn { padding: 12px 22px; font-size: 14px; }
    .btn-lg { padding: 14px 24px; font-size: 14.5px; }

    .section { padding: 56px 0; }
    .section-head { margin-bottom: 36px; }

    .section-title { font-size: 1.65rem; }
    .eyebrow { font-size: 10.5px; padding: 4px 12px; margin-bottom: 12px; }

    .marquee-section { padding: 40px 0; }
    .marquee-set span { font-size: 20px; }
    .marquee-set { gap: 30px; padding-right: 30px; }

    .empresa-lead { font-size: 16px; }
    .empresa-info p { font-size: 14.5px; }

    .cert-card { padding: 20px; }
    .cert-card i { font-size: 24px; }
    .cert-card h4 { font-size: 15px; }
    .cert-card p { font-size: 12.5px; }

    .servicio-card { padding: 22px 18px; }
    .servicio-icon { width: 46px; height: 46px; font-size: 18px; }

    .extra-block { padding: 24px 18px; }
    .extra-block h3 { font-size: 16px; }
    .chips li { font-size: 12px; padding: 6px 12px; }

    .why-us { padding: 32px 18px; }
    .why-title { font-size: 19px; }
    .why-bento { grid-template-columns: 1fr; gap: 12px; }
    .why-image { order: -1; height: 200px; }
    .why-side-left, .why-side-right { grid-template-rows: auto; }
    .why-card { padding: 14px; }
    .why-card-lg { gap: 14px; }
    .why-card-icon { width: 42px; height: 42px; min-width: 42px; font-size: 18px; border-radius: 12px; }
    .why-card h4 { font-size: 13.5px; }

    .proyecto-body { padding: 18px; }
    .proyecto-body h3 { font-size: 16px; }
    .proyecto-body p { font-size: 13.5px; }
    .proyecto-tag { font-size: 11px; padding: 5px 12px; }

    .modal-card-featured { padding: 14px 16px; gap: 12px; }
    .modal-card-badge { font-size: 20px; }
    .modal-card-featured .modal-card-content { font-size: 14px; }
    .modal-card-detail { padding: 11px 14px; }
    .modal-card-last { padding: 14px 16px; }
    .modal-card-divider { margin: 0 14px; }

    .cta-card { padding: 30px 20px; }
    .cta-content h2 { font-size: 1.5rem; }
    .cta-content p { font-size: 14px; }

    .contacto-item { padding: 14px 16px; }
    .contacto-item a { font-size: 13.5px; }

    .contacto-form { padding: 22px 18px; }
    .contacto-form h3 { font-size: 17px; }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 11px 13px;
        font-size: 14px;
    }

    .footer { padding: 50px 0 20px; }
    .footer-brand .logo .logo-name { font-size: 16px; }
    .footer-brand .logo .logo-tag { font-size: 10px; }
}

/* Móvil muy pequeño: <= 380px */
@media (max-width: 380px) {
    .container { padding: 0 14px; }

    .logo-text { display: none; }

    .hero-title { font-size: 1.75rem; }
    .hero-actions .btn-lg { font-size: 13.5px; padding: 13px 18px; }

    .stat-icon { width: 34px; height: 34px; font-size: 13px; }
    .stat-number { font-size: 20px; }

    .section-title { font-size: 1.5rem; }

    .nav-menu { padding: 20px 16px; }
    .nav-link { font-size: 15px; padding: 12px 16px; }

    .float-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 22px;
        bottom: 16px;
        right: 16px;
    }

    .scroll-top {
        width: 38px;
        height: 38px;
        font-size: 13px;
        bottom: 16px;
        left: 16px;
    }
}
