/*
Theme Name: Farma-Medical Industrial
Theme URI: https://www.farma-medical.mx
Author: Farma-Medical Industrial
Author URI: https://www.farma-medical.mx
Description: Tema oficial de Farma-Medical Industrial. Diseño moderno, premium y completamente editable desde el Customizer. Empresa especializada en la distribución de medicamentos, mobiliario médico, pruebas rápidas de diagnóstico y equipo médico general para la industria en México.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: farmamedical
Tags: business, medical, pharmaceutical, corporate, responsive, custom-menu, featured-images, custom-logo
*/

/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root {
    --fm-primary: #5690D0;
    --fm-primary-dark: #3E77B8;
    --fm-primary-light: #E8F2FB;
    --fm-secondary: #1B313F;
    --fm-secondary-light: #2A4759;
    --fm-accent: #ED0642;
    --fm-accent-dark: #C70538;
    --fm-white: #FFFFFF;
    --fm-off-white: #FAFBFC;
    --fm-light: #F4F7FB;
    --fm-gray-100: #EEF2F7;
    --fm-gray-200: #D8DFE8;
    --fm-gray-300: #B4BECD;
    --fm-text: #2A3B4D;
    --fm-text-light: #6B7B8C;
    --fm-text-muted: #9AA6B2;

    --fm-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Sombras suaves modernas */
    --fm-shadow-xs: 0 1px 2px rgba(27, 49, 63, 0.04);
    --fm-shadow-sm: 0 2px 8px rgba(27, 49, 63, 0.06);
    --fm-shadow-md: 0 8px 24px rgba(27, 49, 63, 0.08);
    --fm-shadow-lg: 0 20px 50px rgba(27, 49, 63, 0.12);
    --fm-shadow-xl: 0 30px 80px rgba(27, 49, 63, 0.16);
    --fm-shadow-accent: 0 10px 30px rgba(237, 6, 66, 0.25);
    --fm-shadow-primary: 0 10px 30px rgba(86, 144, 208, 0.25);

    /* Bordes redondeados modernos */
    --fm-radius-sm: 10px;
    --fm-radius-md: 16px;
    --fm-radius-lg: 24px;
    --fm-radius-xl: 32px;
    --fm-radius-pill: 999px;

    --fm-transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --fm-transition-fast: 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    --fm-container: 1240px;

    --fm-gradient-primary: linear-gradient(135deg, #5690D0 0%, #3E77B8 100%);
    --fm-gradient-dark: linear-gradient(135deg, #1B313F 0%, #2A4759 100%);
    --fm-gradient-accent: linear-gradient(135deg, #ED0642 0%, #C70538 100%);
    --fm-gradient-overlay: linear-gradient(135deg, rgba(27, 49, 63, 0.85) 0%, rgba(86, 144, 208, 0.75) 100%);
}

/* =========================================================
   RESET Y BASE
   ========================================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--fm-font);
    font-weight: 400;
    line-height: 1.65;
    color: var(--fm-text);
    background-color: var(--fm-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    width: 100%;
}

.fm-main {
    overflow-x: hidden;
}

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

a {
    color: var(--fm-primary);
    text-decoration: none;
    transition: color var(--fm-transition-fast);
}

a:hover { color: var(--fm-accent); }

button { font-family: inherit; cursor: pointer; }

/* Tipografía con jerarquía clara */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--fm-font);
    font-weight: 700;
    line-height: 1.15;
    color: var(--fm-secondary);
    margin-bottom: 0.5em;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.875rem, 4vw, 3rem); font-weight: 800; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.25rem; font-weight: 600; }

p { margin-bottom: 1rem; font-weight: 400; }

/* Selection */
::selection { background: var(--fm-accent); color: var(--fm-white); }

/* =========================================================
   LAYOUT - CONTENEDOR Y SECCIONES
   ========================================================= */
.fm-container {
    max-width: var(--fm-container);
    margin: 0 auto;
    padding: 0 28px;
    width: 100%;
}

.fm-container-narrow {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 28px;
}

.fm-section {
    padding: 120px 0;
    position: relative;
}

.fm-section-sm { padding: 80px 0; }
.fm-section-alt { background-color: var(--fm-off-white); }

@media (max-width: 768px) {
    .fm-section { padding: 70px 0; }
    .fm-section-sm { padding: 50px 0; }
    .fm-container { padding: 0 20px; }
}

/* Eyebrow - etiquetas pequeñas sobre títulos */
.fm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fm-primary);
    margin-bottom: 16px;
}

.fm-eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--fm-accent);
    display: inline-block;
    border-radius: 2px;
}

/* =========================================================
   BOTONES MODERNOS CON MICROINTERACCIONES
   ========================================================= */
.fm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--fm-font);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    border: none;
    border-radius: var(--fm-radius-pill);
    cursor: pointer;
    transition: all var(--fm-transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.fm-btn svg {
    transition: transform var(--fm-transition);
    width: 18px;
    height: 18px;
}

.fm-btn:hover svg {
    transform: translateX(4px);
}

/* Efecto ripple sutil */
.fm-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: 0;
}

.fm-btn:hover::before {
    width: 400px;
    height: 400px;
}

.fm-btn > * { position: relative; z-index: 1; }

.fm-btn-primary {
    background: var(--fm-gradient-accent);
    color: var(--fm-white);
    box-shadow: var(--fm-shadow-accent);
}

.fm-btn-primary:hover {
    color: var(--fm-white);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(237, 6, 66, 0.4);
}

.fm-btn-secondary {
    background: var(--fm-gradient-primary);
    color: var(--fm-white);
    box-shadow: var(--fm-shadow-primary);
}

.fm-btn-secondary:hover {
    color: var(--fm-white);
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(86, 144, 208, 0.4);
}

.fm-btn-outline {
    background: transparent;
    color: var(--fm-white);
    border: 2px solid var(--fm-white);
}

.fm-btn-outline:hover {
    background: var(--fm-white);
    color: var(--fm-secondary);
    transform: translateY(-3px);
}

.fm-btn-ghost {
    background: var(--fm-white);
    color: var(--fm-secondary);
    border: 1.5px solid var(--fm-gray-200);
}

.fm-btn-ghost:hover {
    border-color: var(--fm-primary);
    color: var(--fm-primary);
    transform: translateY(-3px);
    box-shadow: var(--fm-shadow-md);
}

.fm-btn-sm { padding: 12px 22px; font-size: 0.85rem; }
.fm-btn-lg { padding: 20px 42px; font-size: 1.05rem; }

/* =========================================================
   HEADER / NAVEGACIÓN
   ========================================================= */
.fm-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(27, 49, 63, 0.06);
    transition: all var(--fm-transition);
}

.fm-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--fm-shadow-sm);
}

.fm-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    gap: 32px;
}

.fm-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--fm-secondary);
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--fm-transition-fast);
}

.fm-logo:hover { transform: scale(1.02); color: var(--fm-secondary); }
.fm-logo img { max-height: 48px; width: auto; }

.fm-logo-text { display: flex; flex-direction: column; line-height: 1; }
.fm-logo-text strong {
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    color: var(--fm-secondary);
}
.fm-logo-text span {
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.35em;
    color: var(--fm-text-light);
    margin-top: 3px;
}

.fm-nav-wrap {
    display: flex;
    align-items: center;
    gap: 24px;
}

.fm-nav ul {
    display: flex;
    gap: 4px;
    list-style: none;
    align-items: center;
}

.fm-nav a {
    color: var(--fm-text);
    font-weight: 500;
    font-size: 0.92rem;
    padding: 10px 18px;
    border-radius: var(--fm-radius-pill);
    transition: all var(--fm-transition-fast);
    position: relative;
}

.fm-nav a:hover {
    color: var(--fm-primary);
    background: var(--fm-primary-light);
}

.fm-nav .current-menu-item > a,
.fm-nav .current_page_item > a {
    color: var(--fm-primary);
    background: var(--fm-primary-light);
}

.fm-header-cta {
    display: inline-flex;
}

/* Mobile toggle */
.fm-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.fm-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--fm-secondary);
    margin: 5px 0;
    transition: all var(--fm-transition);
    border-radius: 2px;
}

.fm-menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.fm-menu-toggle.active span:nth-child(2) { opacity: 0; }
.fm-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1024px) {
    .fm-header-cta { display: none; }
    .fm-menu-toggle { display: block; }

    .fm-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 340px;
        height: 100vh;
        background: var(--fm-white);
        padding: 100px 24px 32px;
        transition: right var(--fm-transition);
        box-shadow: var(--fm-shadow-xl);
        overflow-y: auto;
    }
    .fm-nav.active { right: 0; }

    .fm-nav ul {
        flex-direction: column;
        gap: 4px;
        align-items: stretch;
    }

    .fm-nav a {
        display: block;
        padding: 14px 20px;
        border-radius: var(--fm-radius-sm);
        font-size: 1rem;
    }
}

/* =========================================================
   HERO SECTION - IMPACTANTE
   ========================================================= */
.fm-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0 120px;
    isolation: isolate;
}

.fm-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.fm-hero-bg-default {
    background: var(--fm-gradient-primary);
}

.fm-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--fm-gradient-overlay);
}

/* Decoración - círculos flotantes */
.fm-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: floatSlow 20s ease-in-out infinite;
}

.fm-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(237, 6, 66, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: floatSlow 25s ease-in-out infinite reverse;
}

@keyframes floatSlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, -40px); }
}

.fm-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.fm-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--fm-white);
    padding: 8px 18px;
    border-radius: var(--fm-radius-pill);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.fm-hero-badge-dot {
    width: 8px;
    height: 8px;
    background: #4ADE80;
    border-radius: 50%;
    box-shadow: 0 0 10px #4ADE80;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.fm-hero-title {
    color: var(--fm-white);
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
    animation: fadeInUp 0.9s ease-out 0.1s backwards;
}

.fm-hero-title .fm-hero-accent {
    background: linear-gradient(135deg, #FFD6DC 0%, #FFFFFF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.fm-hero-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 400;
    line-height: 1.6;
    max-width: 620px;
    margin-bottom: 40px;
    animation: fadeInUp 0.9s ease-out 0.2s backwards;
}

.fm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 60px;
    animation: fadeInUp 0.9s ease-out 0.3s backwards;
}

/* Stats en hero */
.fm-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 0.9s ease-out 0.4s backwards;
}

.fm-hero-stat-num {
    color: var(--fm-white);
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.fm-hero-stat-label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Scroll indicator */
.fm-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--fm-white);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.7;
    animation: bounce 2s ease-in-out infinite;
}

.fm-scroll-indicator svg { margin-top: 8px; }

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

@media (max-width: 768px) {
    .fm-hero { min-height: auto; padding: 60px 0 80px; }
    .fm-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* =========================================================
   SERVICIOS - CARDS CON ICONOS
   ========================================================= */
.fm-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.fm-service-card {
    background: var(--fm-white);
    border: 1px solid var(--fm-gray-100);
    border-radius: var(--fm-radius-lg);
    padding: 36px 28px;
    transition: all var(--fm-transition);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.fm-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--fm-gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--fm-transition);
}

.fm-service-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow: var(--fm-shadow-lg);
    color: inherit;
}

.fm-service-card:hover::before { transform: scaleX(1); }

.fm-service-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--fm-radius-sm);
    background: var(--fm-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all var(--fm-transition);
}

.fm-service-card:hover .fm-service-icon {
    background: var(--fm-gradient-primary);
    transform: rotate(-5deg) scale(1.05);
}

.fm-service-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--fm-primary);
    transition: stroke var(--fm-transition);
}

.fm-service-card:hover .fm-service-icon svg { stroke: var(--fm-white); }

.fm-service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--fm-secondary);
}

.fm-service-card p {
    color: var(--fm-text-light);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 968px) {
    .fm-services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .fm-services-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ABOUT / QUIÉNES SOMOS - SPLIT MODERNO
   ========================================================= */
.fm-about-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.fm-about-visual {
    position: relative;
    aspect-ratio: 4 / 5;
}

.fm-about-visual-main {
    position: absolute;
    inset: 0;
    border-radius: var(--fm-radius-lg);
    overflow: hidden;
    box-shadow: var(--fm-shadow-xl);
    z-index: 2;
}

.fm-about-visual-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-about-visual-default {
    width: 100%;
    height: 100%;
    background: var(--fm-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.fm-about-visual-default::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.fm-about-visual-default svg { width: 40%; height: 40%; opacity: 0.35; }

.fm-about-visual::before {
    content: '';
    position: absolute;
    top: 30px;
    left: -30px;
    width: 100%;
    height: 100%;
    background: var(--fm-primary-light);
    border-radius: var(--fm-radius-lg);
    z-index: 1;
}

.fm-about-visual::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    background: var(--fm-gradient-accent);
    border-radius: var(--fm-radius-lg);
    z-index: 0;
    opacity: 0.9;
}

/* Badge años */
.fm-about-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--fm-white);
    padding: 16px 20px;
    border-radius: var(--fm-radius-md);
    box-shadow: var(--fm-shadow-md);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fm-about-badge strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--fm-accent);
    line-height: 1;
}

.fm-about-badge span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fm-text);
    line-height: 1.2;
    max-width: 80px;
}

.fm-about-content h2 { margin-bottom: 24px; }

.fm-about-content p {
    color: var(--fm-text-light);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.fm-about-features {
    list-style: none;
    margin: 28px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fm-about-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--fm-text);
}

.fm-about-features li svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 4px;
    background: var(--fm-primary-light);
    border-radius: 50%;
    color: var(--fm-primary);
}

@media (max-width: 968px) {
    .fm-about-inner { grid-template-columns: 1fr; gap: 40px; }
    .fm-about-visual { max-width: 100%; margin: 0 auto; }
    .fm-about-visual::before { display: none; }
    .fm-about-visual::after { display: none; }
    .fm-about-features { grid-template-columns: 1fr; }
}

/* =========================================================
   VALORES - CARDS PREMIUM
   ========================================================= */
.fm-values-wrap {
    position: relative;
    background: var(--fm-gradient-dark);
    padding: 120px 0;
    overflow: hidden;
    color: var(--fm-white);
}

.fm-values-wrap::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(86, 144, 208, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.fm-values-wrap::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(237, 6, 66, 0.12) 0%, transparent 70%);
    border-radius: 50%;
}

.fm-values-wrap > .fm-container { position: relative; z-index: 2; }

.fm-values-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px;
}

.fm-values-header .fm-eyebrow { color: #A5C8EB; }
.fm-values-header h2 { color: var(--fm-white); }
.fm-values-header p { color: rgba(255, 255, 255, 0.75); margin-top: 16px; font-size: 1.05rem; }

.fm-values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.fm-value-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--fm-radius-lg);
    padding: 40px 32px;
    transition: all var(--fm-transition);
    position: relative;
    overflow: hidden;
}

.fm-value-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(237, 6, 66, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.fm-value-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--fm-radius-md);
    background: var(--fm-gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--fm-shadow-accent);
    transition: all var(--fm-transition);
}

.fm-value-card:hover .fm-value-icon {
    transform: rotate(-5deg) scale(1.05);
}

.fm-value-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--fm-white);
}

.fm-value-card h3 {
    color: var(--fm-white);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.fm-value-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

@media (max-width: 968px) {
    .fm-values-grid { grid-template-columns: 1fr; }
    .fm-values-wrap { padding: 70px 0; }
}

/* =========================================================
   MARCAS / PRODUCTOS - GRID MODERNO
   ========================================================= */
.fm-products-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: end;
    margin-bottom: 60px;
}

.fm-products-header h2 { margin: 0; }

.fm-products-header p {
    color: var(--fm-text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.fm-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.fm-brand-card {
    background: var(--fm-white);
    border: 1px solid var(--fm-gray-100);
    border-radius: var(--fm-radius-md);
    padding: 48px 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    transition: all var(--fm-transition);
    cursor: pointer;
}

.fm-brand-card img {
    max-width: 70%;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--fm-transition);
}

.fm-brand-card span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--fm-text-light);
    transition: color var(--fm-transition);
    text-align: center;
}

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

.fm-brand-card:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.05);
}

.fm-brand-card:hover span { color: var(--fm-accent); }

@media (max-width: 968px) {
    .fm-products-header { grid-template-columns: 1fr; gap: 20px; }
    .fm-brands-grid { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   SUCURSALES / MAPA - DUAL CARDS
   ========================================================= */
.fm-locations {
    background: var(--fm-off-white);
}

.fm-locations-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

.fm-map-wrap {
    border-radius: var(--fm-radius-lg);
    overflow: hidden;
    box-shadow: var(--fm-shadow-lg);
    min-height: 520px;
    position: relative;
}

.fm-map-wrap iframe {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border: 0;
    display: block;
}

.fm-branches {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fm-branch-card {
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    padding: 32px;
    box-shadow: var(--fm-shadow-sm);
    border: 1px solid var(--fm-gray-100);
    transition: all var(--fm-transition);
    position: relative;
    overflow: hidden;
}

.fm-branch-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--fm-gradient-accent);
    transition: width var(--fm-transition);
}

.fm-branch-card:hover {
    transform: translateX(6px);
    box-shadow: var(--fm-shadow-md);
    border-color: transparent;
}

.fm-branch-card:hover::before { width: 8px; }

.fm-branch-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--fm-gray-100);
}

.fm-branch-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--fm-radius-sm);
    background: var(--fm-gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fm-branch-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--fm-white);
}

.fm-branch-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--fm-secondary);
    margin: 0;
}

.fm-branch-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--fm-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2px;
}

.fm-branch-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fm-branch-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.92rem;
    color: var(--fm-text);
    line-height: 1.5;
}

.fm-branch-info-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--fm-primary);
}

.fm-branch-info-item a {
    color: var(--fm-text);
    text-decoration: none;
    transition: color var(--fm-transition-fast);
}

.fm-branch-info-item a:hover { color: var(--fm-accent); }

@media (max-width: 968px) {
    .fm-locations-inner { grid-template-columns: 1fr; }
    .fm-map-wrap { min-height: 350px; }
    .fm-map-wrap iframe { min-height: 350px; }
}

/* =========================================================
   CTA FINAL - SECCIÓN DESTACADA
   ========================================================= */
.fm-cta-banner {
    background: var(--fm-gradient-dark);
    border-radius: var(--fm-radius-xl);
    padding: 70px 60px;
    position: relative;
    overflow: hidden;
    color: var(--fm-white);
    text-align: center;
}

.fm-cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(237, 6, 66, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.fm-cta-banner::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(86, 144, 208, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.fm-cta-banner > * { position: relative; z-index: 2; }
.fm-cta-banner h2 { color: var(--fm-white); margin-bottom: 16px; }

.fm-cta-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.fm-cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .fm-cta-banner { padding: 50px 32px; }
}

/* =========================================================
   PÁGINA GENÉRICA - HEADER
   ========================================================= */
.fm-page-header {
    position: relative;
    padding: 120px 0 80px;
    text-align: center;
    overflow: hidden;
    background: var(--fm-gradient-dark);
    color: var(--fm-white);
    isolation: isolate;
}

.fm-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(86, 144, 208, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(237, 6, 66, 0.2) 0%, transparent 50%);
    z-index: -1;
}

.fm-page-header .fm-eyebrow {
    color: #A5C8EB;
    justify-content: center;
}

.fm-page-header h1 {
    color: var(--fm-white);
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    margin-bottom: 16px;
}

.fm-page-header p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* =========================================================
   CLIENTES - GRID CON EFECTO HOVER
   ========================================================= */
.fm-clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.fm-client-card {
    position: relative;
    background: var(--fm-white);
    border-radius: var(--fm-radius-md);
    padding: 40px 24px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--fm-shadow-xs);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--fm-transition);
    border: 1px solid var(--fm-gray-100);
}

.fm-client-card img {
    max-width: 75%;
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--fm-transition);
}

.fm-client-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(86, 144, 208, 0.25);
    border-color: var(--fm-primary);
}

.fm-client-card:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.08);
}

.fm-client-name {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    padding: 14px;
    background: var(--fm-gradient-dark);
    color: var(--fm-white);
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: bottom var(--fm-transition);
}

.fm-client-card:hover .fm-client-name { bottom: 0; }

@media (max-width: 968px) {
    .fm-clients-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
    .fm-clients-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   FORMULARIO DE CONTACTO
   ========================================================= */
.fm-contact-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 50px;
    align-items: start;
}

.fm-form-card {
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    padding: 48px;
    box-shadow: var(--fm-shadow-md);
    border: 1px solid var(--fm-gray-100);
}

.fm-form-card h2 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.fm-form-card > p {
    color: var(--fm-text-light);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

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

.fm-form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fm-text);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.fm-form-label .required { color: var(--fm-accent); }

.fm-form-control {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--fm-font);
    font-size: 0.95rem;
    color: var(--fm-text);
    background: var(--fm-off-white);
    border: 1.5px solid var(--fm-gray-100);
    border-radius: var(--fm-radius-sm);
    transition: all var(--fm-transition-fast);
}

textarea.fm-form-control {
    min-height: 140px;
    resize: vertical;
    font-family: var(--fm-font);
}

.fm-form-control:hover {
    border-color: var(--fm-gray-200);
    background: var(--fm-white);
}

.fm-form-control:focus {
    outline: none;
    border-color: var(--fm-primary);
    background: var(--fm-white);
    box-shadow: 0 0 0 4px rgba(86, 144, 208, 0.12);
}

.fm-form-control::placeholder {
    color: var(--fm-text-muted);
    font-weight: 400;
}

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

@media (max-width: 560px) {
    .fm-form-row { grid-template-columns: 1fr; gap: 0; }
    .fm-form-card { padding: 32px 24px; }
}

.fm-form-submit { margin-top: 12px; width: 100%; }

.fm-form-message {
    padding: 14px 18px;
    border-radius: var(--fm-radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.4s ease-out;
}

.fm-form-message.success {
    background: #D1F5E0;
    color: #1A7F4E;
    border: 1px solid #5CC389;
}

.fm-form-message.error {
    background: #FEE2E8;
    color: #A4042C;
    border: 1px solid var(--fm-accent);
}

/* Sidebar con info de contacto */
.fm-contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 100px;
}

.fm-contact-info-card {
    background: var(--fm-white);
    border: 1px solid var(--fm-gray-100);
    border-radius: var(--fm-radius-md);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all var(--fm-transition);
}

.fm-contact-info-card:hover {
    border-color: var(--fm-primary);
    transform: translateY(-3px);
    box-shadow: var(--fm-shadow-md);
}

.fm-contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--fm-radius-sm);
    background: var(--fm-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--fm-transition);
}

.fm-contact-info-card:hover .fm-contact-info-icon {
    background: var(--fm-gradient-accent);
}

.fm-contact-info-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--fm-primary);
    transition: stroke var(--fm-transition);
}

.fm-contact-info-card:hover .fm-contact-info-icon svg { stroke: var(--fm-white); }

.fm-contact-info-card strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fm-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.fm-contact-info-card p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--fm-text);
    line-height: 1.5;
}

.fm-contact-info-card a {
    color: var(--fm-text);
    text-decoration: none;
}

.fm-contact-info-card a:hover { color: var(--fm-accent); }

@media (max-width: 968px) {
    .fm-contact-layout { grid-template-columns: 1fr; }
    .fm-contact-sidebar { position: static; }
}

/* =========================================================
   FAQ ACORDEÓN PREMIUM
   ========================================================= */
.fm-faq-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.fm-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fm-faq-item {
    background: var(--fm-white);
    border: 1px solid var(--fm-gray-100);
    border-radius: var(--fm-radius-md);
    overflow: hidden;
    transition: all var(--fm-transition);
}

.fm-faq-item:hover { border-color: var(--fm-gray-200); }

.fm-faq-item.active {
    border-color: var(--fm-primary);
    box-shadow: var(--fm-shadow-md);
}

.fm-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    background: none;
    border: none;
    font-family: var(--fm-font);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--fm-secondary);
    text-align: left;
    cursor: pointer;
    padding: 24px 28px;
    transition: color var(--fm-transition-fast);
}

.fm-faq-question:hover { color: var(--fm-primary); }

.fm-faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--fm-primary-light);
    color: var(--fm-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--fm-transition);
}

.fm-faq-icon svg { width: 14px; height: 14px; transition: transform var(--fm-transition); }

.fm-faq-item.active .fm-faq-icon {
    background: var(--fm-gradient-accent);
    color: var(--fm-white);
}

.fm-faq-item.active .fm-faq-icon svg { transform: rotate(45deg); }

.fm-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--fm-transition);
}

.fm-faq-answer-inner {
    padding: 0 28px 24px;
    color: var(--fm-text-light);
    line-height: 1.75;
    font-size: 0.95rem;
}

.fm-faq-item.active .fm-faq-answer { max-height: 500px; }

/* =========================================================
   BLOG / POSTS
   ========================================================= */
.fm-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.fm-post-card {
    background: var(--fm-white);
    border-radius: var(--fm-radius-lg);
    overflow: hidden;
    box-shadow: var(--fm-shadow-sm);
    border: 1px solid var(--fm-gray-100);
    transition: all var(--fm-transition);
    display: flex;
    flex-direction: column;
}

.fm-post-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--fm-shadow-lg);
    border-color: transparent;
}

.fm-post-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--fm-gradient-primary);
}

.fm-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.fm-post-card:hover .fm-post-thumb img { transform: scale(1.08); }

.fm-post-category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--fm-white);
    color: var(--fm-primary);
    padding: 6px 14px;
    border-radius: var(--fm-radius-pill);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--fm-shadow-sm);
    z-index: 2;
}

.fm-post-body {
    padding: 28px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fm-post-meta {
    font-size: 0.78rem;
    color: var(--fm-text-muted);
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    font-weight: 500;
}

.fm-post-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.35;
}

.fm-post-title a { color: var(--fm-secondary); }
.fm-post-title a:hover { color: var(--fm-accent); }

.fm-post-excerpt {
    color: var(--fm-text-light);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 16px;
    flex-grow: 1;
}

.fm-post-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fm-accent);
    font-weight: 600;
    font-size: 0.88rem;
    align-self: flex-start;
    transition: gap var(--fm-transition-fast);
}

.fm-post-more:hover { gap: 10px; color: var(--fm-accent-dark); }
.fm-post-more svg { width: 16px; height: 16px; }

@media (max-width: 968px) {
    .fm-blog-grid { grid-template-columns: 1fr; }
}

/* Single post */
.fm-single { padding: 80px 0; }
.fm-single-content { max-width: 760px; margin: 0 auto; }

.fm-single-thumbnail {
    margin: 40px 0;
    border-radius: var(--fm-radius-lg);
    overflow: hidden;
    box-shadow: var(--fm-shadow-md);
}

.fm-single-body {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--fm-text);
}

.fm-single-body p { margin-bottom: 1.5em; }
.fm-single-body h2, .fm-single-body h3 { margin-top: 1.8em; }
.fm-single-body a { color: var(--fm-accent); text-decoration: underline; }
.fm-single-body ul, .fm-single-body ol { margin-bottom: 1.5em; padding-left: 1.75em; }
.fm-single-body ul li, .fm-single-body ol li { margin-bottom: 0.5em; }

.fm-single-body blockquote {
    border-left: 4px solid var(--fm-accent);
    padding: 16px 0 16px 24px;
    margin: 30px 0;
    font-style: italic;
    color: var(--fm-text);
    background: var(--fm-off-white);
    border-radius: 0 var(--fm-radius-sm) var(--fm-radius-sm) 0;
}

/* =========================================================
   PAGINACIÓN
   ========================================================= */
.fm-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.fm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--fm-radius-sm);
    background: var(--fm-white);
    color: var(--fm-text);
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid var(--fm-gray-100);
    transition: all var(--fm-transition-fast);
}

.fm-pagination .page-numbers:hover,
.fm-pagination .page-numbers.current {
    background: var(--fm-gradient-accent);
    color: var(--fm-white);
    border-color: transparent;
    box-shadow: var(--fm-shadow-accent);
}

/* =========================================================
   FOOTER MODERNO
   ========================================================= */
.fm-footer {
    background: var(--fm-gradient-dark);
    color: var(--fm-white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.fm-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--fm-accent), transparent);
}

.fm-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 50px;
}

.fm-footer-col h4 {
    color: var(--fm-white);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.fm-footer-brand-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 320px;
}

.fm-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fm-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    text-decoration: none;
    transition: all var(--fm-transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.fm-footer-links a:hover {
    color: var(--fm-white);
    padding-left: 6px;
}

.fm-footer-contact {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fm-footer-contact li {
    display: flex;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.fm-footer-contact li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #A5C8EB;
    margin-top: 2px;
}

.fm-footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--fm-transition-fast);
}

.fm-footer-contact a:hover { color: var(--fm-white); }

.fm-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 968px) {
    .fm-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .fm-footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
    .fm-footer-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ANIMACIONES
   ========================================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.fm-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.8, 0.25, 1), transform 0.9s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.fm-reveal-delay-1 { transition-delay: 0.1s; }
.fm-reveal-delay-2 { transition-delay: 0.2s; }
.fm-reveal-delay-3 { transition-delay: 0.3s; }

/* =========================================================
   UTILIDADES
   ========================================================= */
.fm-text-center { text-align: center; }
.fm-text-white { color: var(--fm-white) !important; }
.fm-mb-0 { margin-bottom: 0; }

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 10001;
}

.skip-link:focus {
    left: 6px;
    top: 6px;
    padding: 10px 16px;
    background: var(--fm-secondary);
    color: var(--fm-white);
    border-radius: var(--fm-radius-sm);
}

/* =========================================================
   CORRECCIONES RESPONSIVE MOBILE
   ========================================================= */

/* === GLOBAL MOBILE === */
@media (max-width: 768px) {
    html { font-size: 15px; }

    .fm-container { padding: 0 16px; }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.15rem; }

    /* HERO */
    .fm-hero {
        min-height: auto;
        padding: 50px 0 60px;
    }

    .fm-hero-title {
        font-size: 2rem;
        letter-spacing: -0.02em;
    }

    .fm-hero-subtitle {
        font-size: 0.92rem;
        line-height: 1.6;
    }

    .fm-hero-badge {
        font-size: 0.65rem;
        padding: 6px 14px;
    }

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

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

    .fm-hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding-top: 28px;
    }

    .fm-hero-stat-num {
        font-size: 1.75rem;
    }

    .fm-hero-stat-label {
        font-size: 0.72rem;
    }

    .fm-scroll-indicator { display: none; }

    /* ABOUT / QUIENES SOMOS */
    .fm-about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fm-about-visual {
        max-width: 100%;
        aspect-ratio: 4 / 3;
        overflow: hidden;
        position: relative;
    }

    .fm-about-visual::before {
        display: none !important;
        content: none !important;
    }

    .fm-about-visual::after {
        display: none !important;
        content: none !important;
    }

    .fm-about-visual-main {
        position: relative;
        inset: 0;
        border-radius: var(--fm-radius-md);
    }

    .fm-about-badge {
        top: 12px;
        right: 12px;
        padding: 10px 14px;
    }

    .fm-about-badge strong {
        font-size: 1.4rem;
    }

    .fm-about-badge span {
        font-size: 0.65rem;
        max-width: 60px;
    }

    .fm-about-features {
        grid-template-columns: 1fr;
    }

    .fm-about-content .fm-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    /* SERVICIOS */
    .fm-services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fm-service-card {
        padding: 28px 24px;
    }

    /* VALORES */
    .fm-values-wrap {
        padding: 60px 0;
    }

    .fm-values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .fm-value-card {
        padding: 28px 24px;
    }

    .fm-values-header {
        margin-bottom: 40px;
    }

    /* MARCAS / PRODUCTOS */
    .fm-products-header {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 32px;
    }

    .fm-brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .fm-brand-card {
        min-height: 120px;
        padding: 24px 16px;
    }

    .fm-brand-card img {
        max-height: 60px;
    }

    /* SUCURSALES / MAPA */
    .fm-locations-inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .fm-map-wrap {
        min-height: 280px;
        border-radius: var(--fm-radius-md);
    }

    .fm-map-wrap iframe {
        min-height: 280px;
    }

    .fm-branch-card {
        padding: 24px;
    }

    .fm-branch-header {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .fm-branch-name {
        font-size: 1.05rem;
    }

    /* CTA BANNER */
    .fm-cta-banner {
        padding: 40px 24px;
        border-radius: var(--fm-radius-lg);
    }

    .fm-cta-banner h2 {
        font-size: 1.5rem;
    }

    .fm-cta-banner p {
        font-size: 0.95rem;
    }

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

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

    /* BLOG */
    .fm-blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fm-post-body {
        padding: 20px;
    }

    /* PAGE HEADER */
    .fm-page-header {
        padding: 70px 0 50px;
    }

    .fm-page-header h1 {
        font-size: 1.75rem;
    }

    .fm-page-header p {
        font-size: 0.92rem;
    }

    /* CLIENTES */
    .fm-clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .fm-client-card {
        min-height: 130px;
        padding: 24px 16px;
    }

    .fm-clients-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 28px 20px;
    }

    .fm-clients-stat:not(:last-child)::after {
        display: none;
    }

    .fm-clients-stat-num {
        font-size: 1.75rem;
    }

    /* CONTACTO */
    .fm-contact-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .fm-form-card {
        padding: 28px 20px;
    }

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

    .fm-contact-sidebar {
        position: static;
    }

    /* FAQ */
    .fm-faq-question {
        padding: 18px 20px;
        font-size: 0.92rem;
    }

    .fm-faq-answer-inner {
        padding: 0 20px 18px;
    }

    /* FOOTER */
    .fm-footer {
        padding: 50px 0 24px;
    }

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

    .fm-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    /* BOTONES */
    .fm-btn-lg {
        padding: 16px 28px;
        font-size: 0.92rem;
    }

    /* EYEBROW */
    .fm-eyebrow {
        font-size: 0.7rem;
    }

    /* SINGLE POST */
    .fm-single-content {
        padding: 0;
    }

    .fm-single-thumbnail {
        margin: 20px 0;
        border-radius: var(--fm-radius-sm);
    }

    .fm-single-body {
        font-size: 0.95rem;
    }

    .fm-post-nav {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* === EXTRA SMALL (iPhone SE, etc) === */
@media (max-width: 380px) {
    .fm-container { padding: 0 12px; }

    .fm-hero-title { font-size: 1.65rem; }

    .fm-hero-stats { grid-template-columns: 1fr 1fr; gap: 14px; }

    .fm-brands-grid { grid-template-columns: 1fr; }

    .fm-clients-grid { grid-template-columns: 1fr; }

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

    .fm-footer-grid { gap: 24px; }
}
