/* ============================================
   CSS VARIABLES & RESET
   B&B Profesional — Gestión Financiera y Operativa
============================================ */
:root {
    --navy:       #0d1b2a;
    --navy-mid:   #162236;
    --navy-light: #1e304a;
    --gold:       #c9a84c;
    --gold-light: #e0c07a;
    --gold-pale:  #f5ead0;
    --cream:      #faf6ee;
    --sand:       #e8ddc8;
    --teal:       #2a7a6e;
    --teal-light: #3aa898;
    --white:      #ffffff;
    --text-dark:  #1a1a2e;
    --text-mid:   #4a5568;
    --text-light: #8a95a3;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Outfit', sans-serif;
    --radius:     12px;
    --radius-lg:  20px;
    --shadow-sm:  0 2px 12px rgba(13,27,42,0.08);
    --shadow-md:  0 8px 32px rgba(13,27,42,0.14);
    --shadow-lg:  0 20px 60px rgba(13,27,42,0.20);
    --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================
   UTILITIES
============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
}

.section-title.light { color: var(--white); }

.gold-line {
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin: 16px 0 24px;
}

.gold-line.center { margin: 16px auto 24px; }

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    padding: 14px 28px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(201,168,76,0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(201,168,76,0.45);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--gold);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    padding: 13px 26px;
    border-radius: 6px;
    border: 1.5px solid var(--gold);
    cursor: pointer;
    transition: var(--transition);
}

.btn-outline:hover {
    background: rgba(201,168,76,0.1);
    transform: translateY(-2px);
}

/* ============================================
   ALERTAS (feedback formulario contacto)
============================================ */
.site-alert {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 200;
    min-width: 280px;
    max-width: 380px;
    padding: 14px 20px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.3s ease;
}

.site-alert.success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

.site-alert.error {
    background: #fff5f5;
    border: 1px solid #feb2b2;
    color: #c53030;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================
   COOKIE BANNER
============================================ */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 27, 42, 0.97);
    backdrop-filter: blur(12px);
    color: var(--white);
    padding: 20px 24px;
    z-index: 9999;
    border-top: 1px solid rgba(201,168,76,0.3);
}

#cookie-banner.hidden { display: none; }

#cookie-banner .inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

#cookie-banner p { font-size: 0.85rem; color: rgba(255,255,255,0.8); }
#cookie-banner a { color: var(--gold-light); }

#accept-cookies {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 10px 22px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

/* ============================================
   HEADER
============================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 27, 42, 0.96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(201,168,76,0.18);
    transition: var(--transition);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link { display: flex; align-items: center; gap: 12px; }

.logo-link img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    filter: brightness(1.1);
}

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

.logo-text .brand {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

.logo-text .tagline {
    font-size: 0.62rem;
    font-weight: 400;
    color: var(--gold-light);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

nav.desktop-nav { display: flex; gap: 36px; }

nav.desktop-nav a {
    font-size: 0.83rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
    position: relative;
    padding-bottom: 2px;
}

nav.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width 0.3s ease;
}

nav.desktop-nav a:hover { color: var(--gold-light); }
nav.desktop-nav a:hover::after { width: 100%; }

.header-cta {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 5px;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(201,168,76,0.3);
}

.header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(201,168,76,0.45);
}

#menuBtn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

#mobileMenu {
    background: var(--navy-mid);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid rgba(201,168,76,0.12);
}

#mobileMenu a {
    display: block;
    padding: 14px 24px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s, background 0.2s;
}

#mobileMenu a:hover {
    color: var(--gold-light);
    background: rgba(201,168,76,0.06);
}

/* ============================================
   HERO
============================================ */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../img/cartagena3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.28;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13,27,42,0.92) 0%,
        rgba(13,27,42,0.7) 50%,
        rgba(42,122,110,0.3) 100%
    );
}

.hero-decor {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 50%;
    pointer-events: none;
}

.hero-decor::before {
    content: '';
    position: absolute;
    inset: 24px;
    border: 1px solid rgba(201,168,76,0.12);
    border-radius: 50%;
}

.hero-decor::after {
    content: '';
    position: absolute;
    inset: 48px;
    border: 1px solid rgba(201,168,76,0.08);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    padding-top: 60px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 20px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1.5px;
    background: var(--gold);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.1;
    max-width: 680px;
    margin-bottom: 24px;
}

.hero h1 em { font-style: italic; color: var(--gold-light); }

.hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    margin-bottom: 40px;
    line-height: 1.75;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 72px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
}

.hero-stat .num {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.hero-stat .label {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ============================================
   QUIÉNES SOMOS
============================================ */
#quienes-somos {
    padding: 100px 0;
    background: var(--cream);
    position: relative;
}

.qs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.qs-left p {
    color: var(--text-mid);
    font-size: 0.97rem;
    margin-bottom: 16px;
    line-height: 1.8;
}

.qs-left p strong { color: var(--navy); font-weight: 600; }

.qs-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 36px;
}

.qs-card {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: var(--transition);
}

.qs-card:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.qs-card .icon { font-size: 1.5rem; margin-bottom: 10px; }

.qs-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.qs-card p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.65; margin: 0; }

.qs-right { position: relative; }

.qs-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.qs-image-wrap img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
}

.qs-image-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow-md);
}

.qs-image-badge .num {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.qs-image-badge .lbl {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ============================================
   VALORES
============================================ */
#valores {
    padding: 100px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

#valores::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.valores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.valor-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.valor-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.4s ease;
}

.valor-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-4px);
}

.valor-card:hover::before { width: 100%; }

.valor-icon { font-size: 1.8rem; margin-bottom: 14px; }

.valor-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.valor-card p { font-size: 0.83rem; color: rgba(255,255,255,0.55); line-height: 1.65; }

/* ============================================
   SERVICIOS
============================================ */
#servicios { padding: 100px 0; background: var(--cream); }

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

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.servicio-card {
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius);
    padding: 28px 24px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--gold), var(--teal));
    transition: height 0.4s ease;
}

.servicio-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.servicio-card:hover::before { height: 100%; }
.servicio-card.open { border-color: var(--gold); box-shadow: var(--shadow-md); }
.servicio-card.open::before { height: 100%; }

.servicio-num {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 10px;
}

.servicio-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.servicio-header h3 {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.35;
}

.servicio-toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--sand);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-mid);
    transition: var(--transition);
    margin-top: 2px;
}

.servicio-card.open .servicio-toggle,
.servicio-card:hover .servicio-toggle {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201,168,76,0.08);
}

.servicio-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.servicio-card.open .servicio-content { max-height: 400px; opacity: 1; }

.servicio-content ul {
    list-style: none;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--sand);
}

.servicio-content ul li {
    font-size: 0.83rem;
    color: var(--text-mid);
    padding: 5px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}

.servicio-content ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 300;
}

/* ============================================
   SOCIOS
============================================ */
#socios {
    padding: 100px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

#socios::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(42,122,110,0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.socios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 880px;
    margin: 0 auto;
}

.socio-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
}

.socio-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-5px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.25);
}

.socio-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 2px solid rgba(201,168,76,0.4);
    box-shadow: 0 0 0 6px rgba(201,168,76,0.08);
}

.socio-card h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}

.socio-role {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.socio-bio { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.7; }

/* ============================================
   INSTAGRAM / FEED SECTION
============================================ */
#instagram { padding: 100px 0; background: var(--cream); }

.instagram-header { text-align: center; margin-bottom: 48px; }

/* Feed real (desde mostrar_feed.php) */
.ig-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}

.ig-post {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    aspect-ratio: 1 / 1;
    background: var(--sand);
}

.ig-post__img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.ig-post__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ig-post:hover .ig-post__img-wrap img { transform: scale(1.05); }

.ig-post__overlay {
    position: absolute;
    inset: 0;
    background: rgba(13,27,42,0.78);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ig-post:hover .ig-post__overlay { opacity: 1; }

.ig-post__overlay-inner { text-align: center; padding: 20px; color: var(--white); }

.ig-post__ig-icon {
    font-size: 2rem;
    color: var(--gold-light);
    margin-bottom: 10px;
    display: block;
}

.ig-post__desc {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ig-post__cta {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Fallback sin posts */
.feed-empty {
    text-align: center;
    padding: 64px 40px;
    background: var(--white);
    border: 1.5px dashed var(--sand);
    border-radius: var(--radius-lg);
    max-width: 480px;
    margin: 0 auto;
    color: var(--text-mid);
    font-size: 0.9rem;
}

.feed-empty i { font-size: 3rem; display: block; margin-bottom: 16px; }
.feed-empty a { color: var(--gold); font-weight: 600; }

.feed-error {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 40px;
}

/* ============================================
   CONTACTO
============================================ */
#contacto {
    padding: 100px 0;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

#contacto::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('../img/cartagena2.webp');
    background-size: cover;
    background-position: center;
    opacity: 0.07;
}

.contacto-inner { position: relative; z-index: 2; }
.contacto-header { text-align: center; margin-bottom: 60px; }
.contacto-header p { color: rgba(255,255,255,0.6); font-size: 1rem; max-width: 500px; margin: 16px auto 0; }

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 48px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.contact-channels h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 8px; }
.contact-channels > p { font-size: 0.85rem; color: rgba(255,255,255,0.5); margin-bottom: 28px; line-height: 1.6; }

.channel-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 12px;
    transition: var(--transition);
    text-decoration: none;
}

.channel-card:hover { transform: translateX(4px); border-color: rgba(201,168,76,0.3); background: rgba(255,255,255,0.07); }
.channel-card.whatsapp-card:hover { border-color: rgba(37,211,102,0.4); background: rgba(37,211,102,0.06); }
.channel-card.instagram-card:hover { border-color: rgba(220,39,67,0.4); background: rgba(220,39,67,0.05); }

.channel-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.channel-icon.email-icon { background: rgba(201,168,76,0.15); color: var(--gold-light); }
.channel-icon.wa-icon { background: rgba(37,211,102,0.15); color: #25d366; }
.channel-icon.ig-icon {
    background: linear-gradient(135deg, rgba(240,148,51,0.2), rgba(220,39,67,0.2), rgba(188,24,136,0.2));
    color: #e1306c;
}

.channel-info .ch-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 2px; }
.channel-info .ch-value { font-size: 0.88rem; color: var(--white); font-weight: 500; }

.channel-badge {
    margin-left: auto;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(37,211,102,0.2);
    color: #25d366;
    padding: 3px 8px;
    border-radius: 20px;
    border: 1px solid rgba(37,211,102,0.3);
}

.contact-form-wrap {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.contact-form-wrap h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 6px; }
.contact-form-wrap > p { font-size: 0.83rem; color: rgba(255,255,255,0.45); margin-bottom: 28px; }

.form-group { margin-bottom: 18px; }

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--white);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(201,168,76,0.5);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

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

#btn-enviar-contacto {
    width: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 15px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(201,168,76,0.3);
}

#btn-enviar-contacto:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.45); }
#btn-enviar-contacto:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================================
   FOOTER
============================================ */
footer {
    background: #080f1a;
    border-top: 1px solid rgba(201,168,76,0.15);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 30px;
}

.footer-brand .brand-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 44px; height: 44px; object-fit: contain; }
.footer-brand .brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.footer-brand .brand-sub { font-size: 0.65rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.footer-brand p { font-size: 0.83rem; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 260px; }
.footer-brand .location { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 0.8rem; color: rgba(255,255,255,0.35); }

.footer-col h4 { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 0.85rem; color: rgba(255,255,255,0.45); padding: 5px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }

.footer-social { display: flex; gap: 10px; margin-top: 4px; }

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    transition: var(--transition);
    padding: 0;
}

.footer-social a:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(201,168,76,0.08); }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    flex-wrap: wrap;
    gap: 8px;
}

/* ============================================
   BACK TO TOP
============================================ */
#backToTop {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    z-index: 50;
    box-shadow: 0 4px 16px rgba(201,168,76,0.35);
    transition: var(--transition);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop.visible { opacity: 1; pointer-events: auto; }
#backToTop:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(201,168,76,0.45); }

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .servicios-grid { grid-template-columns: repeat(2, 1fr); }
    .qs-grid { gap: 48px; }
}

@media (max-width: 768px) {
    nav.desktop-nav, .header-cta { display: none; }
    #menuBtn { display: block; }

    .hero { min-height: 80vh; }
    .hero-decor { display: none; }
    .hero-stats { gap: 24px; margin-top: 48px; }

    .qs-grid { grid-template-columns: 1fr; gap: 40px; }
    .qs-image-wrap img { height: 300px; }
    .qs-image-badge { left: 12px; bottom: 12px; }
    .qs-cards { grid-template-columns: 1fr; }

    .socios-grid { grid-template-columns: 1fr; max-width: 420px; }
    .servicios-grid { grid-template-columns: 1fr; }
    .contacto-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .ig-feed-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-content { padding: 0 16px; padding-top: 40px; }
    .hero-actions { flex-direction: column; }
    .contact-form-wrap { padding: 24px; }
    .ig-feed-grid { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
    .scroll-mt-mobile { scroll-margin-top: 80px; }
}



/* ====================================================================
   ACTUALIZACIONES DE DISEÑO — v2.0
   Agregar estos estilos al final del style.css existente.
   Reemplazan/extienden estilos previos donde corresponde.
==================================================================== */

/* ============================================
   SECTION SUBTITLE (nuevo helper)
============================================ */
.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-mid);
    max-width: 580px;
    margin: 16px auto 0;
    text-align: center;
    line-height: 1.7;
}
.section-subtitle.light { color: rgba(255,255,255,0.6); }

/* ============================================
   HEADER CTA — ahora con ícono WhatsApp
============================================ */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.header-cta i { font-size: 0.95rem; }

/* ============================================
   FRANJA DE VALOR (nueva)
   Aparece entre Hero y Servicios.
   Funciona como puente visual y refuerza propuesta.
============================================ */
.value-strip {
    background: var(--white);
    padding: 32px 0;
    border-bottom: 1px solid var(--sand);
    position: relative;
    z-index: 2;
}

.value-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 0;
}

.value-item:not(:last-child) {
    border-right: 1px solid var(--sand);
    padding-right: 32px;
}

.value-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gold-pale), rgba(201,168,76,0.15));
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    border: 1px solid rgba(201,168,76,0.25);
}

.value-text h4 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
    line-height: 1.3;
}
.value-text p {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.5;
    margin: 0;
}

/* ============================================
   SERVICIOS — extensión (servicio-tag visible siempre)
============================================ */
.servicio-tag {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 8px;
    margin-bottom: 0;
    opacity: 0.85;
}

.servicio-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* ============================================
   QUIÉNES SOMOS — valores integrados como pills
============================================ */
.qs-values {
    margin: 32px 0 24px;
    padding: 24px 0;
    border-top: 1px solid var(--sand);
    border-bottom: 1px solid var(--sand);
}

.qs-values-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.qs-values-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qs-value-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--white);
    border: 1px solid var(--sand);
    color: var(--navy);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 100px;
    transition: var(--transition);
}

.qs-value-pill i {
    font-size: 0.7rem;
    color: var(--gold);
}

.qs-value-pill:hover {
    border-color: var(--gold);
    background: var(--gold-pale);
    transform: translateY(-1px);
}

/* ============================================
   CHAINS BAND — Cadenas internacionales (con logos)
============================================ */
.chains-band {
    margin-top: 72px;
    padding: 36px 32px;
    background: var(--white);
    border: 1px solid var(--sand);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.chains-band::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.chains-band-label {
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 28px;
}

.chains-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
    flex-wrap: wrap;
}

.chain-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    transition: var(--transition);
    cursor: default;
}

.chain-logo img {
    max-height: 100%;
    max-width: 220px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.chain-logo:hover img {
    transform: scale(1.06);
}

/* Fallback: si la imagen falla en cargar,
   se muestra el nombre del data-fallback en estilo elegante */
.chain-logo.logo-fallback::before {
    content: attr(data-fallback);
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: 0.02em;
    opacity: 0.6;
    transition: var(--transition);
}

.chain-logo.logo-fallback:hover::before {
    opacity: 1;
    color: var(--gold);
}

/* ============================================
   RESULTADOS — Casos cualitativos (sin métricas)
============================================ */
#resultados {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--cream) 0%, #f3ecd9 100%);
    position: relative;
    overflow: hidden;
}

#resultados::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(201,168,76,0.08), transparent 70%);
    pointer-events: none;
}

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

.resultados-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 980px;
    margin: 0 auto 56px;
}

.resultado-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: stretch;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--sand);
    transition: var(--transition);
    position: relative;
}

.resultado-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}

.resultado-icon {
    flex-shrink: 0;
    width: 110px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    position: relative;
    overflow: hidden;
}

.resultado-icon::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

.resultado-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(201,168,76,0.12), transparent 60%);
    pointer-events: none;
}

.resultado-body {
    padding: 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.resultado-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.resultado-tag i {
    font-size: 0.78rem;
}

.resultado-body h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.resultado-body p {
    font-size: 0.88rem;
    color: var(--text-mid);
    line-height: 1.65;
    margin: 0;
}

.resultados-cta {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--gold);
    max-width: 680px;
    margin: 0 auto;
}

.resultados-cta p {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 500;
    font-style: italic;
    color: var(--navy);
    margin-bottom: 18px;
}

/* ============================================
   INSTAGRAM CTA
============================================ */
.instagram-cta {
    text-align: center;
    margin-top: 40px;
}

.btn-instagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 14px 32px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(220,39,67,0.25);
}

.btn-instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(220,39,67,0.4);
}

.btn-instagram i {
    font-size: 1.15rem;
}

/* ============================================
   WHATSAPP FLOTANTE
============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(37,211,102,0.4);
    z-index: 90;
    transition: var(--transition);
    animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(37,211,102,0.55);
    animation-play-state: paused;
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,0.4);
    animation: whatsapp-ring 2.5s ease-out infinite;
    pointer-events: none;
}

@keyframes whatsapp-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.4); }
    50% { box-shadow: 0 8px 32px rgba(37,211,102,0.65); }
}

@keyframes whatsapp-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-tooltip {
    position: absolute;
    left: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--navy);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: var(--shadow-md);
}

.whatsapp-tooltip::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-style: solid;
    border-width: 5px 5px 5px 0;
    border-color: transparent var(--navy) transparent transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}

/* ============================================
   RESPONSIVE — ajustes para nuevas secciones
============================================ */
@media (max-width: 900px) {
    .resultados-grid {
        grid-template-columns: 1fr;
    }
    .resultado-card {
        flex-direction: column;
    }
    .resultado-icon {
        width: 100%;
        height: 80px;
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .value-strip {
        padding: 28px 0;
    }
    .value-strip-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .value-item:not(:last-child) {
        border-right: none;
        border-bottom: 1px solid var(--sand);
        padding-right: 0;
        padding-bottom: 16px;
    }

    .chains-band {
        margin-top: 48px;
        padding: 28px 20px;
    }
    .chains-list {
        gap: 32px;
    }
    .chain-logo {
        height: 60px;
    }
    .chain-logo img {
        max-width: 170px;
    }
    .chain-logo.logo-fallback::before {
        font-size: 1.25rem;
    }

    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    .whatsapp-tooltip {
        display: none;
    }
}

@media (max-width: 480px) {
    .resultado-body {
        padding: 20px 22px;
    }
    .resultado-body h4 {
        font-size: 1.05rem;
    }
    .resultados-cta p {
        font-size: 1.1rem;
    }
}


/* ====================================================================
   ACTUALIZACIONES DE DISEÑO — v3.0
   Optimizaciones de densidad y experiencia móvil.
   Implementa las 7 mejoras: stats Hero, carrusel franja valor,
   servicios expandibles, imagen Quiénes Somos oculta, valores en acordeón,
   resultados reducidos, feed limitado, footer simplificado.
==================================================================== */

/* ============================================
   BTN-EXPAND — Botón "Ver más servicios"
============================================ */
.servicios-expand-wrap {
    text-align: center;
    margin-top: 32px;
    display: none; /* Oculto en desktop, visible en móvil */
}

.btn-expand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--navy);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    padding: 13px 26px;
    border: 1.5px solid var(--gold);
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-expand:hover {
    background: var(--gold-pale);
    transform: translateY(-1px);
}

.btn-expand i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.btn-expand.expanded {
    background: var(--navy);
    color: var(--gold-light);
    border-color: var(--navy);
}

/* ============================================
   QS-VALUES-TOGGLE — Acordeón de valores en móvil
============================================ */
.qs-values-toggle {
    display: none; /* Oculto en desktop */
    background: transparent;
    border: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    cursor: pointer;
    color: var(--gold);
    font-family: var(--font-body);
}

.qs-values-toggle i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
    color: var(--gold);
}

.qs-values.open .qs-values-toggle i {
    transform: rotate(180deg);
}

/* ============================================
   INSTAGRAM CTA — Texto adaptativo
============================================ */
.ig-btn-mobile { display: none; }
.ig-btn-desktop { display: inline; }

/* ============================================
   FRANJA DE VALOR — Dots del carrusel (solo móvil)
============================================ */
.value-dots {
    display: none; /* Oculto en desktop */
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.value-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--sand);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}

.value-dot.active {
    background: var(--gold);
    width: 24px;
    border-radius: 4px;
}

/* ====================================================================
   MEDIA QUERIES MÓVIL — v3.0
==================================================================== */

@media (max-width: 768px) {

    /* ── 1. HERO: solo 2 stats prioritarias ── */
    .hero-stats {
        display: flex;
        justify-content: space-between;
        gap: 16px;
        margin-top: 36px;
    }
    .hero-stat {
        display: none;
    }
    .hero-stat.stat-mobile-priority {
        display: block;
        flex: 1;
    }
    .hero-stat .num {
        font-size: 2rem;
    }
    .hero-stat .label {
        font-size: 0.72rem;
    }

    /* ── 2. FRANJA DE VALOR: carrusel táctil horizontal ── */
    .value-strip {
        padding: 24px 0;
    }
    .value-strip .container {
        padding: 0; /* Permite scroll edge-to-edge */
    }
    .value-strip-grid {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        gap: 0;
        padding: 0 20px;
    }
    .value-strip-grid::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }
    .value-item {
        flex: 0 0 100%;
        scroll-snap-align: center;
        padding: 8px 4px !important;
        border-right: none !important;
        border-bottom: none !important;
        padding-right: 4px !important;
        padding-bottom: 8px !important;
    }
    .value-dots {
        display: flex;
    }

    /* ── 3. SERVICIOS: ocultar los extras hasta que se expanda ── */
    .servicios-expand-wrap {
        display: block;
    }
    .servicios-grid .servicio-extra {
        display: none;
    }
    .servicios-grid.show-extras .servicio-extra {
        display: block;
        animation: fadeInUp 0.4s ease both;
    }

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

    /* ── 4. QUIÉNES SOMOS: ocultar imagen, valores en acordeón ── */
    .qs-hide-mobile {
        display: none;
    }
    .qs-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Valores como acordeón */
    .qs-values {
        padding: 0;
        border-top: none;
        border-bottom: none;
        margin: 24px 0;
    }
    .qs-values-toggle {
        display: flex;
        padding: 14px 0;
        border-top: 1px solid var(--sand);
        border-bottom: 1px solid var(--sand);
    }
    .qs-values-label {
        margin-bottom: 0;
        font-size: 0.78rem;
    }
    .qs-values-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, margin 0.3s ease;
        margin-top: 0;
    }
    .qs-values.open .qs-values-list {
        max-height: 300px;
        margin-top: 14px;
        padding-bottom: 14px;
        border-bottom: 1px solid var(--sand);
    }

    /* ── 5. CADENAS: scroll horizontal, todos visibles ── */
    .chains-band {
        padding: 24px 16px;
    }
    .chains-list {
        gap: 28px;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 4px 0 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .chains-list::-webkit-scrollbar { display: none; }
    .chain-logo {
        flex-shrink: 0;
        height: 56px;
    }
    .chain-logo img {
        max-width: 140px;
    }
    .chain-logo.logo-fallback::before {
        font-size: 1.15rem;
    }

    /* ── 6. RESULTADOS: solo 2 casos visibles ── */
    .resultado-card.resultado-extra {
        display: none;
    }
    .resultados-grid {
        margin-bottom: 40px;
    }

    /* ── 7. INSTAGRAM: solo 3 posts visibles ── */
    .ig-post.ig-post-extra {
        display: none;
    }
    .ig-feed-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .instagram-cta {
        margin-top: 24px;
    }
    .ig-btn-desktop { display: none; }
    .ig-btn-mobile { display: inline; }

    /* ── 8. FOOTER: ocultar columna navegación redundante ── */
    .footer-hide-mobile {
        display: none;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .footer-brand .brand-row {
        justify-content: center;
    }
    .footer-brand p,
    .footer-brand .location {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }
    .footer-brand .location {
        display: inline-flex;
    }
    .footer-social {
        justify-content: center;
    }

    /* ── Tipografía móvil ajustada para mejor lectura ── */
    .section-subtitle {
        font-size: 0.92rem;
        padding: 0 8px;
    }
    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }
    .hero p {
        font-size: 0.95rem;
    }
}

/* Tablet pequeña (entre 480 y 640): feed en 2 columnas */
@media (max-width: 640px) {
    .ig-feed-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    /* Reducir aún más en móviles pequeños */
    .servicios-header,
    .resultados-header,
    .instagram-header,
    .contacto-header {
        margin-bottom: 36px;
    }
    .section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .resultado-body {
        padding: 18px 20px;
    }
    .resultado-body h4 {
        font-size: 1rem;
    }
    .resultado-icon {
        height: 70px;
        font-size: 1.6rem;
    }
    .qs-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ig-feed-grid {
        gap: 6px;
    }
}