/* ======================================================================
   TRACTO PARTS HUB — Main stylesheet
   Dark / Light dual-theme industrial aesthetic. Heavy machinery catalog.
   ====================================================================== */

/* DARK (default — preserva look actual del sitio) */
:root,
:root[data-theme="dark"] {
    --tph-bg:            #0a0c10;
    --tph-bg-2:          #11141b;
    --tph-bg-3:          #1a1f2a;
    --tph-surface:       #1e2433;
    --tph-line:          rgba(255, 255, 255, 0.08);
    --tph-line-strong:   rgba(255, 255, 255, 0.18);
    --tph-text:          #e8ecf3;
    --tph-text-dim:      #9aa3b2;
    --tph-text-mute:     #6b7384;
    --tph-accent:        #c9a04a;   /* Logo gold - Tracto Parts dorado */
    --tph-accent-2:      #d9b35d;   /* Hover gold */
    --tph-accent-hot:    #ff6a00;
    --tph-cyan:          #00d4ff;
    --tph-success:       #2ecc71;
    --tph-danger:        #ef4444;
    --tph-orange:        #ff6a00;
    --tph-blue:          #2a3548;   /* Logo blue text */
    --tph-grad-hot:      linear-gradient(135deg, #ff6a00 0%, #c9a04a 100%);
    --tph-grad-cool:     linear-gradient(135deg, #00d4ff 0%, #0066ff 100%);
    --tph-grad-netutral: linear-gradient(180deg, #0a0c10 0%, #11141b 100%);
    --tph-grad-gold:     linear-gradient(135deg, #c9a04a 0%, #8b6914 100%);
    --tph-shadow:        0 10px 40px rgba(0, 0, 0, 0.5);
    --tph-shadow-glow:   0 0 60px rgba(201, 160, 74, 0.18);
    --tph-radius:        6px;
    --tph-radius-lg:     14px;
    --tph-easing:        cubic-bezier(0.22, 1, 0.36, 1);
    --tph-font-display:  'Rajdhani', 'Inter', sans-serif;
    --tph-font-body:     'Inter', system-ui, sans-serif;
    --tph-header-h:      88px;
    --tph-container:     1280px;
    --tph-header-bg:     linear-gradient(
        180deg,
        #2c3447 0%,
        #1e2433 30%,
        #11141b 50%,
        #1e2433 70%,
        #2c3447 100%
    );
    --tph-header-bg-scrolled: linear-gradient(
        180deg,
        #1e2433 0%,
        #11141b 30%,
        #05070a 50%,
        #11141b 70%,
        #1e2433 100%
    );
    --tph-header-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --tph-logo-shadow:   drop-shadow(0 4px 14px rgba(201, 160, 74, 0.35));
    --tph-logo-shadow-hover: drop-shadow(0 6px 18px rgba(201, 160, 74, 0.55));
    color-scheme: dark;
}

/* LIGHT — industrial clear, mismo dorado de acento */
:root[data-theme="light"] {
    --tph-bg:            #f5f6f8;
    --tph-bg-2:          #ffffff;
    --tph-bg-3:          #eef0f4;
    --tph-surface:       #ffffff;
    --tph-line:          rgba(15, 23, 42, 0.08);
    --tph-line-strong:   rgba(15, 23, 42, 0.18);
    --tph-text:          #1a1f2a;
    --tph-text-dim:      #4a5466;
    --tph-text-mute:     #8b94a6;
    --tph-accent:        #b8862f;
    --tph-accent-2:      #c9a04a;
    --tph-accent-hot:    #e85d00;
    --tph-cyan:          #0088c2;
    --tph-success:       #1f9d57;
    --tph-danger:        #d92d2d;
    --tph-orange:        #e85d00;
    --tph-blue:          #2a3548;
    --tph-grad-hot:      linear-gradient(135deg, #e85d00 0%, #b8862f 100%);
    --tph-grad-cool:     linear-gradient(135deg, #0088c2 0%, #0052cc 100%);
    --tph-grad-netutral: linear-gradient(180deg, #ffffff 0%, #eef0f4 100%);
    --tph-grad-gold:     linear-gradient(135deg, #c9a04a 0%, #8b6914 100%);
    --tph-shadow:        0 10px 40px rgba(15, 23, 42, 0.08);
    --tph-shadow-glow:   0 0 60px rgba(184, 134, 47, 0.15);
    --tph-header-bg:     linear-gradient(
        180deg,
        #ffffff 0%,
        #f5f6f8 30%,
        #eef0f4 50%,
        #f5f6f8 70%,
        #ffffff 100%
    );
    --tph-header-bg-scrolled: linear-gradient(
        180deg,
        #ffffff 0%,
        #f5f6f8 30%,
        #eef0f4 50%,
        #f5f6f8 70%,
        #ffffff 100%
    );
    --tph-header-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --tph-logo-shadow:   drop-shadow(0 4px 14px rgba(184, 134, 47, 0.18));
    --tph-logo-shadow-hover: drop-shadow(0 6px 18px rgba(184, 134, 47, 0.32));
    color-scheme: light;
}

/* ------- Reset / base ------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--tph-font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--tph-text);
    background: var(--tph-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: var(--tph-accent); text-decoration: none; transition: color 0.2s var(--tph-easing); }
a:hover { color: var(--tph-accent-2); }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--tph-font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--tph-text);
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1.2em; color: var(--tph-text-dim); }

::selection { background: var(--tph-accent); color: var(--tph-bg); }

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

/* =====================================================================
   TOP UTILITY BAR
   ===================================================================== */
/* =====================================================================
   TOP UTILITY BAR — steel/light-blue metallic, shine MUY sutil
   Top bar debe verse CLARO para contrastar con el header oscuro.
   Shine animado a 14s (casi imperceptible) para que no distraiga.
   ===================================================================== */
:root {
    /* Dark mode: gris azulado CLARO (steel) — más claro que el header */
    --tph-topbar-bg-base:    #3a4658;       /* steel mid */
    --tph-topbar-bg-mid:     #54657a;       /* steel highlight */
    --tph-topbar-bg-hi:      #6b7d92;       /* steel top */
    --tph-topbar-bg-lo:      #2a3540;       /* steel shadow */
    --tph-topbar-shine:      rgba(255, 255, 255, 0.10);  /* shine sutil */
    --tph-topbar-text:       #f0f4f9;       /* blanco sobre steel */
    --tph-topbar-text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
}
:root[data-theme="light"] {
    --tph-topbar-bg-base:    #b8c2d1;
    --tph-topbar-bg-mid:     #d4dbe5;
    --tph-topbar-bg-hi:      #e8ecf2;
    --tph-topbar-bg-lo:      #9aa6b8;
    --tph-topbar-shine:      rgba(255, 255, 255, 0.45);
    --tph-topbar-text:       #1a1f2a;
    --tph-topbar-text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.tph-topbar {
    position: relative;
    overflow: hidden;
    padding: 8px 0;
    font-size: 13px;
    color: var(--tph-topbar-text);
    background:
        /* Shine band — animado a 14s, casi imperceptible */
        linear-gradient(
            105deg,
            transparent 0%,
            transparent 40%,
            var(--tph-topbar-shine) 49%,
            var(--tph-topbar-shine) 51%,
            transparent 60%,
            transparent 100%
        ),
        /* Steel/light-blue gradient vertical */
        linear-gradient(
            180deg,
            var(--tph-topbar-bg-hi) 0%,
            var(--tph-topbar-bg-mid) 35%,
            var(--tph-topbar-bg-base) 50%,
            var(--tph-topbar-bg-mid) 70%,
            var(--tph-topbar-bg-hi) 100%
        );
    background-size: 280% 100%, 100% 100%;
    background-position: -120% 0, 0 0;
    background-blend-mode: screen, normal;
    animation: tph-topbar-shine 14s linear infinite;
    /* Borde dorado abajo para separarlo visualmente del header */
    border-bottom: 1px solid var(--tph-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 1px 0 rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.15);
    text-shadow: var(--tph-topbar-text-shadow);
}
@keyframes tph-topbar-shine {
    0%   { background-position: -150% 0, 0 0; }
    100% { background-position: 250% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .tph-topbar { animation: none; background-position: 0 0, 0 0; }
}
.tph-topbar a {
    color: var(--tph-topbar-text) !important;
    font-weight: 500;
    transition: color 0.2s var(--tph-easing);
}
.tph-topbar a:hover {
    color: var(--tph-cyan) !important;
}
.tph-topbar-loc .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow:
        0 0 0 2px rgba(46, 204, 113, 0.25),
        0 0 8px rgba(46, 204, 113, 0.7);
    animation: pulseDot 2s infinite;
}
.tph-topbar-loc .dot.us {
    background: #00d4ff;
    box-shadow:
        0 0 0 2px rgba(0, 212, 255, 0.25),
        0 0 8px rgba(0, 212, 255, 0.7);
}
.tph-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.tph-topbar-loc {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.tph-topbar-loc span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.85); }
}
.tph-topbar-cta {
    display: flex;
    gap: 14px;
    align-items: center;
}
.tph-topbar-cta a {
    color: var(--tph-text-dim);
    font-weight: 500;
}
.tph-topbar-cta a:hover { color: var(--tph-accent); }

/* =====================================================================
   HEADER + MAIN NAV
   ===================================================================== */
/* =====================================================================
   HEADER — metallic gradient with animated shine + premium border
   ===================================================================== */
:root {
    --tph-header-shine-1:    rgba(255, 255, 255, 0.08);
    --tph-header-shine-2:    rgba(255, 255, 255, 0.10);
}
:root[data-theme="light"] {
    --tph-header-shine-1:    rgba(255, 255, 255, 0.6);
    --tph-header-shine-2:    rgba(255, 255, 255, 0.8);
}
.tph-header {
    position: sticky;
    top: 0;
    z-index: 100;
    /* Multi-layer metallic bg + animated shine.
       Las variables --tph-header-bg y --tph-header-bg-scrolled ya tienen
       el degradado metalizado (definido en :root arriba). Aqui anado una
       capa de shine que se desliza en diagonal. */
    background:
        linear-gradient(
            105deg,
            transparent 0%,
            transparent 38%,
            var(--tph-header-shine-1) 48%,
            var(--tph-header-shine-2) 50%,
            transparent 62%,
            transparent 100%
        ),
        var(--tph-header-bg);
    background-size: 280% 100%, 100% 100%;
    background-position: -100% 0, 0 0;
    background-blend-mode: screen, normal;
    animation: tph-header-shine 14s linear infinite;
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--tph-line);
    transition: box-shadow 0.3s var(--tph-easing);
}
.tph-header.scrolled {
    background:
        linear-gradient(
            105deg,
            transparent 0%,
            transparent 38%,
            var(--tph-header-shine-1) 48%,
            var(--tph-header-shine-2) 50%,
            transparent 62%,
            transparent 100%
        ),
        var(--tph-header-bg-scrolled);
    background-size: 280% 100%, 100% 100%;
    background-position: -100% 0, 0 0;
    background-blend-mode: screen, normal;
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}
:root[data-theme="light"] .tph-header.scrolled {
    box-shadow:
        0 6px 28px rgba(15, 23, 42, 0.1),
        inset 0 -1px 0 rgba(15, 23, 42, 0.04);
}
.tph-header::before {
    /* Thin shine line on the bottom edge — dorado metalico fino */
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201, 160, 74, 0.5) 30%,
        rgba(255, 215, 130, 0.95) 50%,
        rgba(201, 160, 74, 0.5) 70%,
        transparent 100%);
    pointer-events: none;
    z-index: 101;
}
@keyframes tph-header-shine {
    0%   { background-position: -150% 0, 0 0; }
    100% { background-position: 250% 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .tph-header { animation: none; background-position: 0 0, 0 0; }
    .tph-header.scrolled { background-position: 0 0, 0 0; }
}
.tph-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--tph-header-h);
    gap: 28px;
}
.tph-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--tph-text);
    line-height: 0;
}
.tph-logo img,
.tph-logo svg {
    display: block;
    filter: var(--tph-logo-shadow);
    transition: transform 0.3s var(--tph-easing);
}
.tph-logo .tph-logo-img {
    height: 60px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}
.tph-logo:hover .tph-logo-img {
    transform: scale(1.04);
    filter: var(--tph-logo-shadow-hover);
}

/* =====================================================================
   LOGO — un solo <img>, el JS theme-switch.js cambia el src
   segun data-theme. No hay 2 logos al tiempo, garantizado.
   ===================================================================== */
.tph-logo-img--light { display: none; }
:root[data-theme="light"] .tph-logo-img--dark { display: none; }
:root[data-theme="light"] .tph-logo-img--light { display: block; }

/* =====================================================================
   FOOTER — logo dual mismo patron
   ===================================================================== */
.tph-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}
.tph-footer-brand .tph-logo-img {
    height: 48px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 4px;
}
.tph-footer-brand p {
    margin: 0;
    line-height: 1.6;
}

.tph-nav { display: flex; align-items: center; gap: 6px; }
.tph-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
    align-items: center;
}
.tph-nav > ul > li { position: relative; }
.tph-nav a {
    display: inline-block;
    padding: 14px 18px;
    color: var(--tph-text);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    position: relative;
    transition: color 0.2s var(--tph-easing);
}
.tph-nav a::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 8px;
    height: 2px;
    background: var(--tph-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--tph-easing);
}
.tph-nav a:hover { color: var(--tph-accent); }
.tph-nav a:hover::after,
.tph-nav .current-menu-item > a::after { transform: scaleX(1); }

/* Submenu */
.tph-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: var(--tph-bg-2);
    border: 1px solid var(--tph-line);
    border-radius: var(--tph-radius);
    box-shadow: var(--tph-shadow);
    padding: 12px;
    flex-direction: column;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s var(--tph-easing);
    z-index: 99;
}
.tph-nav li:hover > .sub-menu,
.tph-nav li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.tph-nav .sub-menu li { width: 100%; }
.tph-nav .sub-menu a {
    padding: 10px 14px;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0.02em;
    width: 100%;
    border-radius: 4px;
}
.tph-nav .sub-menu a::after { display: none; }
.tph-nav .sub-menu a:hover { background: var(--tph-bg-3); }

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

/* Buttons */
.tph-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--tph-line-strong);
    border-radius: var(--tph-radius);
    background: transparent;
    color: var(--tph-text);
    font-family: var(--tph-font-display);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.25s var(--tph-easing);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}
.tph-btn:hover {
    border-color: var(--tph-accent);
    color: var(--tph-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 194, 16, 0.2);
}
.tph-btn-primary {
    background: var(--tph-accent);
    color: var(--tph-bg);
    border-color: var(--tph-accent);
}
.tph-btn-primary:hover {
    background: var(--tph-accent-2);
    color: var(--tph-bg);
    border-color: var(--tph-accent-2);
}
.tph-btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
}

/* =====================================================================
   HERO
   ===================================================================== */
.tph-hero {
    position: relative;
    min-height: calc(100vh - var(--tph-header-h));
    display: flex;
    align-items: center;
    background: var(--tph-bg);
    overflow: hidden;
    padding: 80px 0 60px;
}
.tph-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 75% 30%, rgba(243, 194, 16, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 212, 255, 0.12) 0%, transparent 55%);
    z-index: 0;
}
.tph-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
    opacity: 0.5;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.tph-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
}
.tph-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: rgba(243, 194, 16, 0.08);
    border: 1px solid rgba(243, 194, 16, 0.3);
    border-radius: 100px;
    font-family: var(--tph-font-display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--tph-accent);
    margin-bottom: 28px;
}
.tph-hero-eyebrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--tph-accent);
    box-shadow: 0 0 12px var(--tph-accent);
    animation: pulseDot 1.5s infinite;
}
.tph-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}
.tph-hero h1 .accent {
    background: var(--tph-grad-hot);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}
.tph-hero p {
    font-size: 1.18rem;
    color: var(--tph-text-dim);
    max-width: 540px;
    margin-bottom: 36px;
}
.tph-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--tph-line);
}
.tph-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tph-hero-stat .num {
    font-family: var(--tph-font-display);
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--tph-accent);
    line-height: 1;
}
.tph-hero-stat .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tph-text-mute);
}
.tph-hero-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--tph-radius-lg);
    overflow: visible;
    background: var(--tph-bg-3);
    box-shadow: var(--tph-shadow);
}

.tph-hero-visual .tph-hero-slider {
    border-radius: var(--tph-radius-lg);
    overflow: hidden;
    position: absolute;
    inset: 0;
}

.tph-hero-visual .tph-hero-dots {
    z-index: 4;
}
.tph-hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--tph-easing);
}
.tph-hero-visual:hover img { transform: scale(1.04); }
.tph-hero-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(243, 194, 16, 0.1), transparent 40%, rgba(0, 212, 255, 0.15));
    pointer-events: none;
}
.tph-hero-floating {
    position: absolute;
    background: var(--tph-bg-2);
    border: 1px solid var(--tph-line-strong);
    border-radius: var(--tph-radius);
    padding: 14px 18px;
    backdrop-filter: blur(20px);
    box-shadow: var(--tph-shadow);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2;
}
.tph-hero-floating .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tph-grad-hot);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tph-bg);
    font-weight: 700;
}
.tph-hero-floating.top {
    top: 8%;
    left: -8%;
    animation: floatY 4s ease-in-out infinite;
}
.tph-hero-floating.bottom {
    bottom: 12%;
    right: -6%;
    animation: floatY 4s ease-in-out infinite 2s;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* =====================================================================
   SECTIONS — general
   ===================================================================== */
.tph-section {
    padding: 100px 0;
    position: relative;
}
.tph-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}
.tph-section-head .eyebrow {
    display: inline-block;
    font-family: var(--tph-font-display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--tph-accent);
    margin-bottom: 16px;
}
.tph-section-head h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 18px;
}
.tph-section-head p {
    font-size: 1.1rem;
    color: var(--tph-text-dim);
}

/* =====================================================================
   MARCAS SCROLLER
   ===================================================================== */
.tph-marcas {
    padding: 60px 0;
    background: var(--tph-bg-2);
    border-top: 1px solid var(--tph-line);
    border-bottom: 1px solid var(--tph-line);
    overflow: hidden;
}
.tph-marcas-label {
    text-align: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: var(--tph-text-mute);
    margin-bottom: 30px;
}
.tph-marcas-track {
    display: flex;
    gap: 60px;
    align-items: center;
    animation: scrollX 30s linear infinite;
    width: max-content;
}
.tph-marca-item {
    height: 80px;
    display: flex;
    align-items: center;
    filter: brightness(1);
    opacity: 0.95;
    transition: all 0.3s var(--tph-easing);
    flex-shrink: 0;
    background: linear-gradient(135deg, #0a0c10, #1a1f2a);
    padding: 8px 20px;
    border-radius: 6px;
    border: 1px solid rgba(201, 160, 74, 0.15);
}
.tph-marca-item:hover {
    filter: brightness(1) saturate(1.15);
    opacity: 1;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(255, 255, 255, 0.15);
}
.tph-marca-item img { height: 100%; width: auto; max-width: 200px; object-fit: contain; }
@keyframes scrollX {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* =====================================================================
   CATEGORIAS (catalog grid)
   ===================================================================== */
.tph-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.tph-cat-card {
    position: relative;
    background: var(--tph-bg-2);
    border: 1px solid var(--tph-line);
    border-radius: var(--tph-radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--tph-easing);
    cursor: pointer;
    text-decoration: none;
    color: var(--tph-text);
    display: block;
}
.tph-cat-card:hover {
    border-color: var(--tph-accent);
    transform: translateY(-6px);
    box-shadow: var(--tph-shadow-glow);
    color: var(--tph-text);
}
.tph-cat-card .thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tph-bg-3);
    position: relative;
}
.tph-cat-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--tph-easing);
}
.tph-cat-card:hover .thumb img { transform: scale(1.08); }
.tph-cat-card .thumb::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, var(--tph-bg) 90%);
}
.tph-cat-card .body {
    padding: 24px;
    position: relative;
}
.tph-cat-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tph-text-mute);
}
.tph-cat-card .meta .sku {
    color: var(--tph-accent);
    font-weight: 600;
}
.tph-cat-card h3 {
    font-size: 1.45rem;
    margin-bottom: 8px;
    font-weight: 600;
}
.tph-cat-card .desc {
    color: var(--tph-text-dim);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}
.tph-cat-card .arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--tph-font-display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tph-accent);
    transition: transform 0.3s var(--tph-easing);
}
.tph-cat-card:hover .arrow { transform: translateX(6px); }

/* =====================================================================
   PRODUCTOS / CATALOGO
   ===================================================================== */
.tph-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.tph-product-card {
    background: var(--tph-bg-2);
    border: 1px solid var(--tph-line);
    border-radius: var(--tph-radius);
    overflow: hidden;
    transition: all 0.3s var(--tph-easing);
    position: relative;
}
.tph-product-card:hover {
    border-color: var(--tph-line-strong);
    transform: translateY(-4px);
    box-shadow: var(--tph-shadow);
}
.tph-product-card .thumb {
    aspect-ratio: 1;
    background: var(--tph-bg-3);
    overflow: hidden;
}
.tph-product-card .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--tph-easing);
}
.tph-product-card:hover .thumb img { transform: scale(1.06); }
.tph-product-card .badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--tph-accent);
    color: var(--tph-bg);
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    z-index: 2;
}
.tph-product-card .body {
    padding: 18px 20px;
}
.tph-product-card .sku {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tph-accent);
    font-weight: 600;
    margin-bottom: 8px;
}
.tph-product-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}
.tph-product-card .meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--tph-line);
    font-size: 13px;
    color: var(--tph-text-mute);
}
.tph-product-card .meta .cta {
    color: var(--tph-accent);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* =====================================================================
   WHY US — cards
   ===================================================================== */
.tph-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}
.tph-why-card {
    background: var(--tph-bg-2);
    border: 1px solid var(--tph-line);
    border-radius: var(--tph-radius-lg);
    padding: 36px 28px;
    transition: all 0.3s var(--tph-easing);
    position: relative;
    overflow: hidden;
}
.tph-why-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--tph-grad-hot);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--tph-easing);
}
.tph-why-card:hover {
    border-color: var(--tph-line-strong);
    transform: translateY(-4px);
}
.tph-why-card:hover::before { transform: scaleX(1); }
.tph-why-card .icon {
    width: 60px;
    height: 60px;
    border-radius: var(--tph-radius);
    background: rgba(243, 194, 16, 0.1);
    border: 1px solid rgba(243, 194, 16, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tph-accent);
    font-size: 28px;
    margin-bottom: 24px;
}
.tph-why-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}
.tph-why-card p {
    color: var(--tph-text-dim);
    font-size: 15px;
    margin: 0;
}

/* =====================================================================
   CONTACT DUAL (CO + USA)
   ===================================================================== */
.tph-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.tph-contact-card {
    background: var(--tph-bg-2);
    border: 1px solid var(--tph-line);
    border-radius: var(--tph-radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.tph-contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}
.tph-contact-card.co::before { background: var(--tph-accent); }
.tph-contact-card.us::before { background: var(--tph-cyan); }
.tph-contact-card .country {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--tph-font-display);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}
.tph-contact-card.co .country { color: var(--tph-accent); }
.tph-contact-card.us .country { color: var(--tph-cyan); }
.tph-contact-card .flag {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.tph-contact-card .flag.co { background: linear-gradient(180deg, #fcd116 50%, #003893 50%); }
.tph-contact-card .flag.us {
    background:
        linear-gradient(180deg, #b22234 0%, #b22234 14%, #fff 14%, #fff 28%, #b22234 28%, #b22234 42%, #fff 42%, #fff 57%, #b22234 57%, #b22234 71%, #fff 71%, #fff 85%, #b22234 85%);
    position: relative;
}
.tph-contact-card .flag.us::before {
    content: '';
    position: absolute;
    inset: 0 65% 60% 0;
    background: #3c3b6e;
}
.tph-contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 24px;
}
.tph-contact-card .row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tph-line);
}
.tph-contact-card .row:last-child { border-bottom: 0; }
.tph-contact-card .row .icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tph-bg-3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--tph-accent);
}
.tph-contact-card.us .row .icon { color: var(--tph-cyan); }
.tph-contact-card .row .label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--tph-text-mute);
    margin-bottom: 4px;
}
.tph-contact-card .row .value {
    font-family: var(--tph-font-display);
    font-weight: 500;
    color: var(--tph-text);
    font-size: 1.05rem;
    line-height: 1.4;
}
.tph-contact-card .row .value a { color: var(--tph-text); }
.tph-contact-card .row .value a:hover { color: var(--tph-accent); }
.tph-contact-card .row .value.sub { color: var(--tph-text-dim); font-size: 0.95rem; font-weight: 400; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.tph-footer {
    background: var(--tph-bg-2);
    border-top: 1px solid var(--tph-line);
    padding: 80px 0 0;
    margin-top: 80px;
}
.tph-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}
.tph-footer-brand img {
    height: 96px;
    width: auto;
    max-width: 380px;
    margin-bottom: 24px;
    filter: var(--tph-logo-shadow);
}
.tph-footer-brand p {
    color: var(--tph-text-dim);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
}
.tph-footer-socials {
    display: flex;
    gap: 12px;
}
.tph-footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tph-bg-3);
    border: 1px solid var(--tph-line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tph-text-dim);
    transition: all 0.3s var(--tph-easing);
}
.tph-footer-socials a:hover {
    background: var(--tph-accent);
    color: var(--tph-bg);
    border-color: var(--tph-accent);
    transform: translateY(-3px);
}
.tph-footer-title {
    font-family: var(--tph-font-display);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--tph-text);
    margin-bottom: 24px;
    font-weight: 600;
}
.tph-footer-links { list-style: none; padding: 0; margin: 0; }
.tph-footer-links li { margin-bottom: 10px; }
.tph-footer-links a {
    color: var(--tph-text-dim);
    font-size: 14px;
    transition: color 0.2s var(--tph-easing);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tph-footer-links a:hover { color: var(--tph-accent); }
.tph-footer-bottom {
    border-top: 1px solid var(--tph-line);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--tph-text-mute);
    font-size: 13px;
}
.tph-footer-bottom .regulatory {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* =====================================================================
   DOCUMENT DOWNLOADS — catalog cards
   ===================================================================== */
.tph-downloads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 32px;
}
.tph-doc-card {
    background: var(--tph-bg-2);
    border: 1px solid var(--tph-line);
    border-radius: var(--tph-radius-lg);
    overflow: hidden;
    transition: all 0.3s var(--tph-easing);
}
.tph-doc-card:hover {
    border-color: var(--tph-accent);
    transform: translateY(-4px);
    box-shadow: var(--tph-shadow-glow);
}
.tph-doc-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tph-bg-3);
    position: relative;
}
.tph-doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--tph-easing);
}
.tph-doc-card:hover .tph-doc-thumb img { transform: scale(1.05); }
.tph-doc-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--tph-accent);
    color: var(--tph-bg);
    padding: 6px 12px;
    border-radius: 4px;
    font-family: var(--tph-font-display);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.tph-doc-body { padding: 28px; }
.tph-doc-tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--tph-accent);
    margin-bottom: 12px;
    font-weight: 600;
}
.tph-doc-body h3 {
    font-size: 1.6rem;
    margin-bottom: 4px;
    color: var(--tph-text);
}
.tph-doc-subtitle {
    font-family: var(--tph-font-display);
    font-size: 14px;
    color: var(--tph-text-dim);
    margin-bottom: 14px;
}
.tph-doc-body p {
    color: var(--tph-text-dim);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 18px;
}
.tph-doc-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 12px;
    color: var(--tph-text-mute);
    padding-top: 16px;
    border-top: 1px solid var(--tph-line);
    margin-bottom: 22px;
}
.tph-pdf-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.tph-pdf-preview > div {
    background: var(--tph-bg-2);
    border: 1px solid var(--tph-line);
    border-radius: var(--tph-radius-lg);
    overflow: hidden;
}
.tph-pdf-preview h4 {
    padding: 20px 24px;
    margin: 0;
    border-bottom: 1px solid var(--tph-line);
    font-family: var(--tph-font-display);
    font-size: 1.1rem;
    color: var(--tph-text);
}
.tph-pdf-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* =====================================================================
   WOOCOMMERCE - No sidebar, full-width
   ===================================================================== */
body.tph-no-sidebar #sidebar,
body.woocommerce #sidebar,
body.woocommerce .widget-area,
body.single-product #secondary,
body.archive #secondary,
body.tax-product_cat #secondary {
    display: none !important;
}

body.tph-no-sidebar .content-area,
body.woocommerce .content-area,
body.tax-product_cat .woocommerce,
body.single-product .woocommerce {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    flex: 0 0 100% !important;
}

/* WooCommerce default archive wrapper - fix margins */
body.archive main.site-main,
body.tax-product_cat main.site-main,
body.tax-product_tag main.site-main,
body.woocommerce main.site-main,
main.site-main {
    padding: 40px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: block !important;
}

body.archive .tph-main,
body.tax-product_cat .tph-main,
body.woocommerce .tph-main {
    padding: 40px 0 !important;
}


/* =====================================================================
   HERO IMAGE SLIDER — auto-rotating
   ===================================================================== */
.tph-hero-slider {
    position: absolute;
    inset: 0;
}
.tph-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s var(--tph-easing);
}
.tph-hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}
.tph-hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: var(--tph-bg-3);
    transition: transform 8s ease-out;
}
.tph-hero-slide.is-active img {
    transform: scale(1.08);
}
.tph-hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(201, 160, 74, 0.12), transparent 40%, rgba(0, 212, 255, 0.15));
    pointer-events: none;
    z-index: 2;
}
.tph-hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}
.tph-hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}
.tph-hero-dot.is-active {
    background: var(--tph-accent);
    width: 24px;
    border-radius: 4px;
}

/* =====================================================================
   FLOATING WHATSAPP BUTTON
   ===================================================================== */
.tph-fab-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4);
    transition: all 0.3s var(--tph-easing);
    animation: tph-wa-pulse 2s infinite;
}
.tph-fab-wa:hover {
    transform: scale(1.1) translateY(-2px);
    background: #20bf5b;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
    color: white;
}
@keyframes tph-wa-pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .tph-fab-wa { animation: none; }
}

/* =====================================================================
   ANIMATIONS — entrance reveals
   ===================================================================== */
.tph-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--tph-easing), transform 0.8s var(--tph-easing);
}
.tph-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.tph-reveal.delay-1 { transition-delay: 0.1s; }
.tph-reveal.delay-2 { transition-delay: 0.2s; }
.tph-reveal.delay-3 { transition-delay: 0.3s; }
.tph-reveal.delay-4 { transition-delay: 0.4s; }
.tph-reveal.delay-5 { transition-delay: 0.5s; }

.tph-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s var(--tph-easing), transform 0.8s var(--tph-easing);
}
.tph-reveal-left.is-visible { opacity: 1; transform: translateX(0); }

.tph-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s var(--tph-easing), transform 0.8s var(--tph-easing);
}
.tph-reveal-right.is-visible { opacity: 1; transform: translateX(0); }

.tph-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s var(--tph-easing), transform 0.8s var(--tph-easing);
}
.tph-reveal-scale.is-visible { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
    .tph-reveal,
    .tph-reveal-left,
    .tph-reveal-right,
    .tph-reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .tph-marcas-track { animation: none; }
}

/* =====================================================================
   WOOCOMMERCE — catalog styling
   ===================================================================== */
.woocommerce-notices-wrapper { margin: 30px auto; max-width: var(--tph-container); }
.tph-catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px 24px;
    background: var(--tph-bg-2);
    border: 1px solid var(--tph-line);
    border-radius: var(--tph-radius);
}
.tph-catalog-toolbar .woocommerce-ordering select {
    background: var(--tph-bg-3);
    color: var(--tph-text);
    border: 1px solid var(--tph-line);
    padding: 8px 14px;
    border-radius: var(--tph-radius);
}

/* =====================================================================
   FORMS
   ===================================================================== */
.tph-form {
    background: var(--tph-bg-2);
    border: 1px solid var(--tph-line);
    border-radius: var(--tph-radius-lg);
    padding: 40px;
}
.tph-form .form-row { margin-bottom: 20px; }
.tph-form label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tph-text-dim);
    margin-bottom: 8px;
    font-weight: 500;
}
.tph-form input[type="text"],
.tph-form input[type="email"],
.tph-form input[type="tel"],
.tph-form input[type="search"],
.tph-form textarea,
.tph-form select {
    width: 100%;
    padding: 14px 16px;
    background: var(--tph-bg-3);
    border: 1px solid var(--tph-line);
    border-radius: var(--tph-radius);
    color: var(--tph-text);
    font-family: var(--tph-font-body);
    font-size: 15px;
    transition: all 0.2s var(--tph-easing);
}
.tph-form input:focus,
.tph-form textarea:focus,
.tph-form select:focus {
    outline: none;
    border-color: var(--tph-accent);
    background: var(--tph-bg);
}
.tph-form textarea { min-height: 140px; resize: vertical; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid { border-color: var(--tph-danger) !important; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
    .tph-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .tph-hero-visual { max-width: 480px; margin: 0 auto; }
    .tph-contact-grid { grid-template-columns: 1fr; }
    .tph-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .tph-nav { display: none; }
    .tph-section { padding: 60px 0; }
    .tph-hero { padding: 40px 0; min-height: auto; }
    .tph-hero-stats { grid-template-columns: 1fr; gap: 16px; }
    .tph-hero-floating { display: none; }
    .tph-footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .tph-contact-card { padding: 28px; }
    .tph-form { padding: 24px; }
}

/* Mobile menu */
.tph-mobile-toggle {
    display: none;
    background: transparent;
    border: 0;
    color: var(--tph-text);
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
}
@media (max-width: 768px) {
    .tph-mobile-toggle { display: block; }
    .tph-nav.is-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--tph-bg-2);
        border-top: 1px solid var(--tph-line);
        padding: 20px;
    }
    .tph-nav.is-open ul { flex-direction: column; align-items: stretch; gap: 0; }
    .tph-nav.is-open a { padding: 12px 0; display: block; }
    .tph-nav.is-open .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: 0;
        background: transparent;
        box-shadow: none;
        padding: 0 0 0 16px;
    }
}

/* =====================================================================
   THEME TOGGLE BUTTON (Day / Night switch)
   ===================================================================== */
.tph-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: transparent;
    color: var(--tph-text);
    border: 1px solid var(--tph-line-strong);
    border-radius: var(--tph-radius);
    cursor: pointer;
    transition: all 0.25s var(--tph-easing);
    font-family: var(--tph-font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}
.tph-theme-toggle:hover {
    color: var(--tph-accent);
    border-color: var(--tph-accent);
    background: rgba(201, 160, 74, 0.06);
}
:root[data-theme="light"] .tph-theme-toggle:hover {
    background: rgba(184, 134, 47, 0.06);
}
.tph-theme-toggle:focus-visible {
    outline: 2px solid var(--tph-accent);
    outline-offset: 2px;
}
.tph-theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    position: relative;
    flex-shrink: 0;
}
.tph-theme-toggle-icon svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s var(--tph-easing), opacity 0.25s var(--tph-easing);
    position: absolute;
    inset: 0;
    margin: auto;
}
/* Sol visible en dark mode (porque esta oscuro, ofrecer ir a dia) */
.tph-theme-toggle-icon [data-tph-theme-icon][data-active="dark"] svg.sun { opacity: 1; transform: rotate(0deg) scale(1); }
.tph-theme-toggle-icon [data-tph-theme-icon][data-active="dark"] svg.moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
/* Luna visible en light mode (porque esta claro, ofrecer ir a noche) */
.tph-theme-toggle-icon [data-tph-theme-icon][data-active="light"] svg.sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
.tph-theme-toggle-icon [data-tph-theme-icon][data-active="light"] svg.moon { opacity: 1; transform: rotate(0deg) scale(1); }
@media (prefers-reduced-motion: reduce) {
    .tph-theme-toggle,
    .tph-theme-toggle-icon svg {
        transition: none;
    }
}

/* Mobile: solo icono, sin texto */
@media (max-width: 640px) {
    .tph-theme-toggle {
        padding: 0;
        width: 40px;
        min-width: 40px;
    }
    .tph-theme-toggle-label {
        display: none;
    }
}

/* =====================================================================
   LANGUAGE SELECTOR — custom ES/EN dropdown (replaces GTranslate wrapper)
   ===================================================================== */
.tph-lang-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 44px;
    border-radius: var(--tph-radius);
    color: var(--tph-text);
    font-family: var(--tph-font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
}
.tph-lang-trigger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 100%;
    background: transparent;
    border: 1px solid var(--tph-line-strong);
    border-radius: var(--tph-radius);
    color: var(--tph-text);
    cursor: pointer;
    transition: all 0.25s var(--tph-easing);
    text-transform: uppercase;
    line-height: 1;
}
.tph-lang-trigger:hover,
.tph-lang-selector.is-open .tph-lang-trigger {
    border-color: var(--tph-accent);
    color: var(--tph-accent);
    background: rgba(201, 160, 74, 0.06);
}
:root[data-theme="light"] .tph-lang-trigger:hover,
:root[data-theme="light"] .tph-lang-selector.is-open .tph-lang-trigger {
    background: rgba(184, 134, 47, 0.06);
}
.tph-lang-flag {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}
.tph-lang-flag svg {
    display: block;
}
.tph-lang-code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}
.tph-lang-caret {
    transition: transform 0.25s var(--tph-easing);
    flex-shrink: 0;
}
.tph-lang-selector.is-open .tph-lang-caret {
    transform: rotate(180deg);
}

.tph-lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--tph-surface);
    border: 1px solid var(--tph-accent);
    border-radius: var(--tph-radius);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(201, 160, 74, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transition: all 0.22s var(--tph-easing);
    z-index: 200;
}
:root[data-theme="light"] .tph-lang-menu {
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.15),
        0 0 0 1px rgba(184, 134, 47, 0.15);
}
.tph-lang-selector.is-open .tph-lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.tph-lang-menu li {
    list-style: none;
}
.tph-lang-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: calc(var(--tph-radius) - 2px);
    color: var(--tph-text);
    cursor: pointer;
    transition: background 0.18s var(--tph-easing);
    font-family: inherit;
    text-align: left;
}
.tph-lang-menu button:hover,
.tph-lang-menu button:focus-visible {
    background: rgba(201, 160, 74, 0.12);
    outline: none;
}
:root[data-theme="light"] .tph-lang-menu button:hover,
:root[data-theme="light"] .tph-lang-menu button:focus-visible {
    background: rgba(184, 134, 47, 0.12);
}
.tph-lang-name {
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}
.tph-lang-menu .tph-lang-code {
    color: var(--tph-text-mute);
    font-size: 11px;
}

@media (max-width: 640px) {
    .tph-lang-selector { height: 40px; }
    .tph-lang-trigger {
        padding: 0 8px;
        gap: 6px;
    }
    .tph-lang-code { font-size: 11px; }
    .tph-lang-menu { min-width: 180px; }
}

/* =====================================================================
   HERO -- Ken Burns slideshow (front-page.php)
   ===================================================================== */
.tph-hero--kb {
    position: relative;
    height: clamp(560px, 86vh, 820px);
    overflow: hidden;
    isolation: isolate;
    background: var(--tph-bg);
}
.tph-hero-slides {
    position: absolute;
    inset: 0;
}
.tph-hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s var(--tph-easing);
}
.tph-hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}
.tph-hero-slide-bg {
    position: absolute;
    inset: -40px;  /* un poco mas grande para permitir pan del Ken Burns */
    background-size: cover;
    background-position: center;
    filter: saturate(0.85);
    transform: scale(1.05);
    transition: transform 7s linear;
    will-change: transform;
}
.tph-hero-slide.is-active .tph-hero-slide-bg {
    transform: scale(1.18) translate(-1.5%, -1%);
}
.tph-hero-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(10, 12, 16, 0.55) 0%, transparent 70%),
        linear-gradient(180deg, rgba(10, 12, 16, 0.35) 0%, rgba(10, 12, 16, 0.85) 100%);
    z-index: 1;
}
:root[data-theme="light"] .tph-hero-slide-overlay {
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(245, 246, 248, 0.45) 0%, transparent 70%),
        linear-gradient(180deg, rgba(245, 246, 248, 0.20) 0%, rgba(245, 246, 248, 0.65) 100%);
}
.tph-hero-slide-inner {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 100px;
    max-width: var(--tph-container);
}
.tph-hero-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(201, 160, 74, 0.15);
    border: 1px solid rgba(201, 160, 74, 0.35);
    color: var(--tph-accent);
    font-family: var(--tph-font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: tph-hero-in 0.7s var(--tph-easing) 0.1s forwards;
}
.tph-hero-slide-inner h1.tph-hero-title {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1;
    margin: 0 0 24px;
    color: #ffffff;
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
    max-width: 18ch;
    opacity: 0;
    transform: translateY(40px);
    animation: tph-hero-in 0.9s var(--tph-easing) 0.25s forwards;
}
:root[data-theme="light"] .tph-hero-slide-inner h1.tph-hero-title {
    color: #0a0c10;
    text-shadow: 0 2px 18px rgba(255, 255, 255, 0.6);
}
.tph-hero-slide-inner .accent {
    color: var(--tph-accent);
    font-style: italic;
}
.tph-hero-sub {
    font-size: clamp(15px, 1.3vw, 18px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.85);
    max-width: 56ch;
    margin: 0 0 32px;
    opacity: 0;
    transform: translateY(30px);
    animation: tph-hero-in 0.9s var(--tph-easing) 0.4s forwards;
}
:root[data-theme="light"] .tph-hero-sub {
    color: rgba(15, 23, 42, 0.85);
}
.tph-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: tph-hero-in 0.9s var(--tph-easing) 0.55s forwards;
}
@keyframes tph-hero-in {
    to { opacity: 1; transform: translateY(0); }
}

/* Hero dots */
.tph-hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 10px;
}
.tph-hero-dot {
    width: 36px;
    height: 4px;
    border: none;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 0;
    transition: all 0.35s var(--tph-easing);
}
:root[data-theme="light"] .tph-hero-dot {
    background: rgba(15, 23, 42, 0.3);
}
.tph-hero-dot.is-active {
    background: var(--tph-accent);
    width: 56px;
    box-shadow: 0 0 12px rgba(201, 160, 74, 0.6);
}

/* Hero arrows */
.tph-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(10, 12, 16, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--tph-easing);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
:root[data-theme="light"] .tph-hero-arrow {
    background: rgba(255, 255, 255, 0.55);
    border-color: rgba(15, 23, 42, 0.18);
    color: #1a1f2a;
}
.tph-hero-arrow:hover {
    background: var(--tph-accent);
    color: var(--tph-bg);
    border-color: var(--tph-accent);
    transform: translateY(-50%) scale(1.08);
}
.tph-hero-arrow--prev { left: 24px; }
.tph-hero-arrow--next { right: 24px; }

/* Hero stats floating */
.tph-hero-stats--floating {
    position: absolute;
    right: max(24px, calc((100vw - var(--tph-container)) / 2 + 24px));
    bottom: 90px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px 26px;
    background: rgba(10, 12, 16, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--tph-radius-lg);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}
:root[data-theme="light"] .tph-hero-stats--floating {
    background: rgba(255, 255, 255, 0.75);
    border-color: rgba(15, 23, 42, 0.1);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
}
.tph-hero-stats--floating .tph-hero-stat {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 200px;
}
.tph-hero-stats--floating .tph-hero-stat .num {
    font-family: var(--tph-font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--tph-accent);
    min-width: 64px;
}
.tph-hero-stats--floating .tph-hero-stat .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.7);
}
:root[data-theme="light"] .tph-hero-stats--floating .tph-hero-stat .label {
    color: rgba(15, 23, 42, 0.7);
}

/* Reduced motion: NO zoom, solo crossfade */
.tph-reduced-motion .tph-hero-slide-bg,
.tph-reduced-motion .tph-hero-slide.is-active .tph-hero-slide-bg {
    transition: none;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .tph-hero-slide-bg,
    .tph-hero-slide.is-active .tph-hero-slide-bg {
        transition: none;
        transform: none;
    }
}

/* Responsive: tablet */
@media (max-width: 1024px) {
    .tph-hero-stats--floating {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin: 24px auto 0;
        max-width: var(--tph-container);
        padding: 18px 22px;
    }
    .tph-hero-stats--floating .tph-hero-stat {
        min-width: 140px;
        flex-direction: column;
        align-items: center;
        gap: 2px;
    }
    .tph-hero-stats--floating .tph-hero-stat .num {
        font-size: 24px;
        min-width: auto;
    }
}

/* Responsive: mobile */
@media (max-width: 640px) {
    .tph-hero--kb { height: clamp(520px, 90vh, 700px); }
    .tph-hero-slide-inner {
        padding-bottom: 220px;
    }
    .tph-hero-arrow { width: 40px; height: 40px; }
    .tph-hero-arrow--prev { left: 12px; }
    .tph-hero-arrow--next { right: 12px; }
    .tph-hero-dots { bottom: 20px; }
    .tph-hero-stats--floating {
        bottom: 60px;
        margin: 0 16px;
        padding: 14px 16px;
        gap: 10px;
    }
    .tph-hero-stats--floating .tph-hero-stat {
        min-width: 0;
        flex: 1 1 40%;
    }
}

/* =====================================================================
   CATEGORIAS — grid fuerte con WhatsApp por categoria
   ===================================================================== */
.tph-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 48px;
}
.tph-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--tph-bg-2);
    border: 1px solid var(--tph-line);
    border-radius: var(--tph-radius-lg);
    overflow: hidden;
    transition: all 0.35s var(--tph-easing);
}
.tph-cat-card:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 160, 74, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 160, 74, 0.15);
}
:root[data-theme="light"] .tph-cat-card:hover {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(184, 134, 47, 0.2);
}
.tph-cat-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--tph-bg-3);
}
.tph-cat-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--tph-easing);
    filter: saturate(0.92);
}
.tph-cat-card:hover .tph-cat-card-media img {
    transform: scale(1.08);
    filter: saturate(1.1);
}
.tph-cat-card-count {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--tph-accent);
    font-family: var(--tph-font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(201, 160, 74, 0.3);
}
:root[data-theme="light"] .tph-cat-card-count {
    background: rgba(255, 255, 255, 0.85);
    color: var(--tph-accent);
    border-color: rgba(184, 134, 47, 0.3);
}
.tph-cat-card-body {
    padding: 24px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
}
.tph-cat-card-title {
    font-size: 1.35rem;
    line-height: 1.2;
    margin: 0;
    color: var(--tph-text);
}
.tph-cat-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s var(--tph-easing);
}
.tph-cat-card-title a:hover { color: var(--tph-accent); }
.tph-cat-card-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--tph-text-dim);
    margin: 0;
    flex: 1 1 auto;
}
.tph-cat-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--tph-line);
}
.tph-cat-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tph-text);
    font-family: var(--tph-font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s var(--tph-easing);
}
.tph-cat-card-link:hover {
    color: var(--tph-accent);
}
.tph-cat-card-link svg {
    transition: transform 0.25s var(--tph-easing);
}
.tph-cat-card-link:hover svg {
    transform: translateX(4px);
}
.tph-cat-card-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border: 1px solid rgba(37, 211, 102, 0.35);
    font-family: var(--tph-font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s var(--tph-easing);
}
.tph-cat-card-wa:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}
.tph-cat-card-wa svg { transition: transform 0.25s var(--tph-easing); }
.tph-cat-card-wa:hover svg { transform: scale(1.15); }

@media (max-width: 768px) {
    .tph-cats-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 18px;
    }
}
@media (max-width: 480px) {
    .tph-cats-grid {
        grid-template-columns: 1fr;
    }
}

/* =====================================================================
   WhatsApp CTA button — variant XL (cierre comercial en portada)
   ===================================================================== */
.tph-btn-wa {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff !important;
    border: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}
.tph-btn-wa:hover {
    background: linear-gradient(135deg, #1ebe5a 0%, #0e7468 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
}
.tph-btn-wa--xl {
    font-size: 16px;
    padding: 18px 36px;
    text-transform: none;
    letter-spacing: 0.02em;
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}
.tph-btn-wa--xl:hover {
    box-shadow: 0 14px 36px rgba(37, 211, 102, 0.5);
}

/* =====================================================================
   GTRANSLATE — el widget nativo se inyecta en el footer via shortcode
   pero lo escondemos para no duplicar UI (ya tenemos dropdown custom en
   el header). El script del plugin AUN se carga y queda disponible
   para traducir via la cookie googtrans.
   ===================================================================== */
.gtranslate-hidden-wrapper {
    position: absolute;
    left: -99999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    pointer-events: none;
}
