/*
Theme Name: F2M - Servicios de TI e IA
Theme URI: https://www.f2m.com.mx
Author: F2M
Author URI: https://www.f2m.com.mx
Description: Tema personalizado para F2M - Soluciones en TI e Inteligencia Artificial. Diseño moderno con soporte para múltiples idiomas.
Version: 2.6.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: f2m
Tags: custom-menu, custom-logo, featured-images, translation-ready, blog
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
*/

/* ========================================
   CSS VARIABLES (Color Palette)
   ======================================== */
:root {
    --f2m-dark: #101010;
    --f2m-white: #ffffff;
    --f2m-blue: #55C6FB;
    --f2m-light-bg: #ECF3F2;
    --f2m-teal: #CBE8E6;
    --f2m-lime: #CBE30B;
    --f2m-gray: #828282;
    --f2m-max-width: 1500px;
    --f2m-font-primary: 'Inter', sans-serif;
    --f2m-font-heading: 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--f2m-font-primary);
    color: var(--f2m-dark);
    background-color: var(--f2m-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f2m-font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.container {
    max-width: var(--f2m-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--f2m-dark);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background-color: rgba(16, 16, 16, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--f2m-max-width);
    margin: 0 auto;
    padding: 15px 20px;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

/* Main Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.main-navigation a {
    color: var(--f2m-white);
    font-size: 15px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
    color: var(--f2m-blue);
}

/* Dropdown menus */
.main-navigation li {
    position: relative;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--f2m-dark);
    min-width: 260px;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.main-navigation li:hover > .sub-menu {
    display: block;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    white-space: nowrap;
}

.main-navigation .sub-menu a:hover {
    background-color: rgba(85, 198, 251, 0.1);
    color: var(--f2m-blue);
}

/* Menu indicator arrows */
.main-navigation .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    vertical-align: middle;
    margin-bottom: 2px;
}

/* CTA Button in header */
.header-cta .btn-primary {
    background-color: var(--f2m-blue);
    color: var(--f2m-dark);
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.header-cta .btn-primary:hover {
    background-color: var(--f2m-white);
    transform: translateY(-1px);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    align-items: center;
    margin-left: 10px;
    position: relative;
}

.lang-dropdown {
    position: relative;
}

.lang-current {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: opacity 0.3s;
}

.lang-current:hover {
    opacity: 0.8;
}

.lang-current img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--f2m-white);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    list-style: none;
    padding: 8px 0;
    margin: 8px 0 0 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.lang-dropdown:hover .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-options li {
    padding: 0;
}

.lang-options a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--f2m-dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.lang-options a:hover {
    background: var(--f2m-light-bg);
}

.lang-options img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
}

.lang-options span {
    font-family: var(--f2m-font-body);
}

/* Hamburger Menu (Mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--f2m-white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-primary {
    display: inline-block;
    background-color: var(--f2m-blue);
    color: var(--f2m-dark);
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--f2m-white);
    color: var(--f2m-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(85, 198, 251, 0.3);
}

/* Gradient button for "Descubre nuestras Soluciones" */
.about-text .btn-primary {
    background: linear-gradient(135deg, rgb(2, 86, 120) 53%, rgb(44, 172, 227) 100%);
    color: var(--f2m-white);
    font-size: 20px;
    padding: 16px 40px;
    border-radius: 50px;
}

.about-text .btn-primary:hover {
    background: linear-gradient(135deg, rgb(44, 172, 227) 0%, rgb(2, 86, 120) 100%);
    color: var(--f2m-white);
    box-shadow: 0 8px 25px rgba(2, 86, 120, 0.4);
}

.btn-outline {
    display: inline-block;
    border: 2px solid var(--f2m-blue);
    color: var(--f2m-blue);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    background: transparent;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--f2m-blue);
    color: var(--f2m-dark);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--f2m-dark);
    background-size: cover;
    background-position: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.54);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--f2m-white);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1;
}

.hero-content h1 span {
    color: var(--f2m-white);
}

.hero-content p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 1);
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 400;
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 80px 0;
}

.section-dark {
    background-color: var(--f2m-dark);
    color: var(--f2m-white);
}

.section-light {
    background-color: var(--f2m-light-bg);
}

.section-teal {
    background-color: var(--f2m-teal);
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    font-size: 18px;
    color: var(--f2m-dark);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* ========================================
   PARTNERS / LOGOS
   ======================================== */
.partners-section {
    padding: 60px 0;
    background-color: var(--f2m-white);
}

.partners-title {
    text-align: center;
    color: var(--f2m-dark);
    margin-bottom: 40px;
}

.partners-title h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.partners-title p {
    color: var(--f2m-gray);
    font-size: 1rem;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 35px 50px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img,
.partners-grid img {
    height: 50px;
    width: auto;
    max-width: 160px;
    opacity: 1;
    transition: opacity 0.3s;
    filter: none;
    object-fit: contain;
}

.partner-logo img:hover,
.partners-grid img:hover {
    opacity: 0.8;
}

/* ========================================
   SERVICES / SOLUTIONS GRID
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--f2m-white);
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(16, 16, 16, 0.08);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
    width: 56px;
    height: 56px;
    background-color: rgba(85, 198, 251, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--f2m-blue);
}

.service-card .icon svg {
    width: 28px;
    height: 28px;
}

.service-card .icon img {
    width: 28px;
    height: 28px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--f2m-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.service-card .card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--f2m-blue);
    font-weight: 600;
    font-size: 14px;
}

.service-card .card-link:hover {
    color: var(--f2m-dark);
}

/* ========================================
   WHY F2M / FEATURES (Combined Layout)
   ======================================== */
.about-features-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.section-decorator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

.section-decorator .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--f2m-blue);
}

.section-decorator .line {
    width: 30px;
    height: 3px;
    background-color: var(--f2m-blue);
    border-radius: 2px;
}

.features-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.feature-card {
    background-color: var(--f2m-light-bg);
    border-radius: 25px;
    padding: 30px 25px;
    border: 1px solid rgba(16, 16, 16, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-card-highlight {
    background-color: #003F5A;
    color: var(--f2m-white);
    border-color: transparent;
}

.feature-card-highlight h3 {
    color: var(--f2m-white);
}

.feature-card.feature-card-highlight p {
    color: rgba(255, 255, 255, 0.95);
}

.feature-card.feature-card-highlight p strong {
    color: var(--f2m-white);
}

.feature-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: var(--f2m-blue);
    background-color: rgba(85, 198, 251, 0.15);
    border-radius: 50%;
}

.feature-card-highlight .feature-card-icon {
    color: var(--f2m-white);
    background-color: rgba(255, 255, 255, 0.15);
}

.feature-card-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    font-size: 22px;
    font-weight: 900;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--f2m-dark);
    font-size: 18px;
    line-height: 1.6;
}

.feature-card p strong {
    color: var(--f2m-dark);
    font-weight: 700;
}

.feature-card-highlight p strong {
    color: var(--f2m-white);
}

/* ========================================
   SOLUTIONS IMAGE CARDS
   ======================================== */
.solutions-section {
    background-color: #e8f4fd;
    padding: 80px 0;
    border-radius: 30px;
    margin: 0 20px;
}

.solutions-title {
    color: #0a1128 !important;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.solutions-image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.solution-image-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    color: var(--f2m-white);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 2px solid rgba(85, 198, 251, 0.3);
}

.solution-image-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--f2m-blue);
}

.solution-image-card:hover .solution-card-overlay {
    background: linear-gradient(180deg, rgba(10, 17, 40, 0.15) 0%, rgba(10, 17, 40, 0.75) 100%);
}

.solution-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 17, 40, 0.3) 0%, rgba(10, 17, 40, 0.85) 100%);
    z-index: 1;
    transition: background 0.4s ease;
}

.solution-card-content {
    position: relative;
    z-index: 2;
    padding: 30px 25px;
    text-align: center;
}

.solution-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--f2m-white);
}

.solution-card-content p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    line-height: 1.5;
    font-weight: 700;
}

.solution-card-btn {
    display: inline-block;
    padding: 10px 30px;
    border: 2px solid var(--f2m-white);
    border-radius: 30px;
    background-color: var(--f2m-white);
    color: var(--f2m-blue);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.solution-image-card:hover .solution-card-btn {
    background-color: transparent;
    color: var(--f2m-white);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-text p {
    color: var(--f2m-dark);
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.7;
}

.about-text p strong {
    color: var(--f2m-dark);
    font-weight: 700;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
}

/* ========================================
   TEAM
   ======================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
}

.team-member h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.team-member .role {
    color: var(--f2m-gray);
    font-size: 0.85rem;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background-color: var(--f2m-dark);
    background-image: url('https://web.f2m.com.mx/Resources/images/5529-1920w.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 80px 0;
    text-align: center;
}

.cta-section .cta-logo {
    max-height: 60px;
    margin: 0 auto 25px;
}

.cta-section h2 {
    color: var(--f2m-white);
    font-size: clamp(2rem, 4vw, 50px);
    font-weight: 700;
    margin-bottom: 25px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn-primary {
    background-color: var(--f2m-white);
    color: var(--f2m-dark);
    border: 2px solid var(--f2m-white);
}

.cta-section .btn-primary:hover {
    background-color: transparent;
    color: var(--f2m-white);
}

/* ========================================
   CONTACT FORM
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h3 {
    margin-bottom: 20px;
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info .info-item .label {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--f2m-blue);
    margin-bottom: 4px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(16, 16, 16, 0.15);
    border-radius: 8px;
    font-family: var(--f2m-font-primary);
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: var(--f2m-white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--f2m-blue);
    box-shadow: 0 0 0 3px rgba(85, 198, 251, 0.15);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   BLOG
   ======================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--f2m-white);
    border: 1px solid rgba(16, 16, 16, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.blog-card .thumbnail {
    aspect-ratio: 16/9;
    overflow: hidden;
}

.blog-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .thumbnail img {
    transform: scale(1.05);
}

.blog-card .card-body {
    padding: 25px;
}

.blog-card .card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.blog-card .card-body .excerpt {
    color: var(--f2m-gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-card .card-body .read-more {
    color: var(--f2m-blue);
    font-weight: 600;
    font-size: 14px;
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--f2m-dark);
    color: var(--f2m-white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    align-items: start;
}

.footer-brand .section-decorator {
    margin-bottom: 20px;
}

.footer-tagline {
    color: var(--f2m-blue);
    font-size: clamp(2.5rem, 4vw, 50px);
    font-weight: 700;
    line-height: 1.2;
}

.footer-nav-vertical {
    display: flex;
    align-items: flex-start;
}

.footer-vertical-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-vertical-menu > li {
    margin-bottom: 8px;
}

.footer-vertical-menu > li > a {
    color: var(--f2m-blue);
    font-size: 22px;
    font-weight: 600;
    display: block;
    padding: 4px 0;
    transition: color 0.3s;
}

.footer-vertical-menu > li > a:hover {
    color: var(--f2m-white);
}

/* Dropdown arrow for items with submenus */
.footer-vertical-menu > li.menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 8px;
    vertical-align: middle;
    margin-bottom: 3px;
    transition: transform 0.3s;
}

.footer-vertical-menu > li.menu-item-has-children:hover > a::after {
    transform: rotate(-135deg);
}

/* Submenus - hidden by default, show on hover */
.footer-vertical-menu .sub-menu {
    list-style: none;
    padding: 0 0 0 15px;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
}

.footer-vertical-menu > li:hover > .sub-menu {
    max-height: 500px;
    opacity: 1;
}

.footer-vertical-menu .sub-menu li {
    margin-bottom: 6px;
}

.footer-vertical-menu .sub-menu a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    font-weight: 400;
    display: block;
    padding: 3px 0;
    transition: color 0.3s;
}

.footer-vertical-menu .sub-menu a:hover {
    color: var(--f2m-blue);
}

/* Copyright Bar */
.copyright-bar {
    background-color: var(--f2m-white);
    padding: 25px 0;
}

.copyright-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright-left {
    display: flex;
    gap: 15px;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--f2m-dark);
}

.copyright-sep {
    color: rgba(16, 16, 16, 0.3);
}

.copyright-left a {
    color: var(--f2m-dark);
    text-decoration: underline;
    font-size: 16px;
    font-weight: 600;
    transition: color 0.3s;
}

.copyright-left a:hover {
    color: var(--f2m-blue);
}

.copyright-right .copyright-logo {
    width: 172px;
    height: auto;
}

/* ========================================
   PAGE TEMPLATES
   ======================================== */
.page-header {
    background-color: var(--f2m-dark);
    padding: 140px 0 60px;
    text-align: center;
}

.page-header h1 {
    color: var(--f2m-white);
    font-size: clamp(2rem, 4vw, 3rem);
}

.page-header .breadcrumb {
    color: var(--f2m-blue);
    font-size: 0.9rem;
    margin-top: 10px;
}

.page-content {
    padding: 60px 0;
}

/* ========================================
   DIX SECTION
   ======================================== */
.dix-section {
    background-color: var(--f2m-white);
    padding: 80px 0;
}

.dix-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.dix-content {
    text-align: center;
}

.dix-logo {
    max-width: 200px;
    margin: 0 auto 25px;
}

.dix-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 20px;
    color: var(--f2m-dark);
}

.dix-content > p {
    color: var(--f2m-dark);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

.dix-content > p strong {
    color: var(--f2m-dark);
    font-weight: 700;
    font-size: 18px;
}

.dix-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.dix-badge {
    display: block;
    background-color: #1a5276;
    color: var(--f2m-white);
    padding: 16px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

.dix-image {
    position: relative;
}

.dix-image img {
    max-width: 100%;
    border-radius: 20px;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials-section {
    background-color: var(--f2m-dark);
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><linearGradient id="g" x1="0%25" y1="0%25" x2="100%25" y2="100%25"><stop offset="0%25" style="stop-color:%23101010;stop-opacity:1"/><stop offset="100%25" style="stop-color:%23162033;stop-opacity:1"/></linearGradient></defs><rect fill="url(%23g)" width="1200" height="600"/></svg>');
    background-size: cover;
    padding: 80px 0;
}

.testimonials-header {
    margin-bottom: 50px;
}

.testimonials-label {
    color: var(--f2m-blue);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.testimonials-title {
    color: var(--f2m-white) !important;
    margin-bottom: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    text-align: left;
}

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

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(85, 198, 251, 0.15);
    border-radius: 16px;
    padding: 35px 30px;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.testimonial-stars {
    color: #FFD700;
    font-size: 1.2rem;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.testimonial-card h3 {
    color: var(--f2m-white);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.testimonial-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.testimonial-card blockquote {
    color: rgba(255, 255, 255, 0.75);
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.7;
    border: none;
    padding: 0;
    margin: 0;
}

/* ========================================
   PROMO SECTIONS (IA & CLOUD)
   ======================================== */
.promo-section {
    padding: 80px 0;
    background-color: var(--f2m-white);
}

.promo-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.promo-layout-reverse {
    direction: ltr;
}

.promo-image img {
    max-width: 100%;
    border-radius: 16px;
}

.promo-tagline {
    font-weight: 700;
    font-size: 22px;
    color: var(--f2m-dark);
    margin-bottom: 10px;
}

.promo-content > p strong {
    color: var(--f2m-dark);
    font-weight: 700;
}

.promo-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--f2m-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

.promo-content > p {
    color: var(--f2m-dark);
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
    text-align: justify;
}

.promo-content .btn-primary {
    padding: 14px 40px;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-content,
    .about-features-layout,
    .dix-layout,
    .promo-layout {
        grid-template-columns: 1fr;
    }

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

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

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .main-navigation {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--f2m-dark);
        padding: 100px 30px 30px;
        z-index: 999;
    }

    .main-navigation.active {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        display: block;
        padding: 15px 0;
        font-size: 18px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        padding-left: 20px;
    }

    .header-cta {
        display: none;
    }

    .lang-switcher {
        margin-left: 0;
    }

    .hero-section {
        min-height: 70vh;
    }

    .hero-video-bg video {
        opacity: 1;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .section {
        padding: 50px 0;
    }

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

    .footer-vertical-menu > li > a {
        font-size: 18px;
    }

    .copyright-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .copyright-left {
        font-size: 16px;
    }

    .copyright-left a {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .solutions-image-grid {
        grid-template-columns: 1fr;
    }

    .features-grid-2x2,
    .testimonials-grid,
    .dix-badges {
        grid-template-columns: 1fr;
    }

    .dix-layout,
    .promo-layout,
    .promo-layout-reverse {
        grid-template-columns: 1fr;
    }

    .solutions-section {
        margin: 0;
        border-radius: 0;
    }

    .cta-section {
        background-attachment: scroll;
    }
}

/* ========================================
   SERVICE PAGE HERO
   ======================================== */
.service-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--f2m-dark);
    overflow: hidden;
    text-align: center;
}

.service-hero .hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.service-hero .hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 1;
}

.service-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.54);
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.service-hero-label {
    color: var(--f2m-blue);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.service-hero-content h1 {
    color: var(--f2m-white);
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 30px;
    line-height: 1.15;
}

.service-hero-content .btn-primary {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Service page content section */
.service-content-section {
    background-color: var(--f2m-dark);
    color: var(--f2m-white);
    padding: 80px 0;
}

.service-content-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.service-content-layout h2 {
    color: var(--f2m-white);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 20px;
}

.service-content-layout p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.service-content-layout strong {
    color: var(--f2m-white);
}

@media (max-width: 768px) {
    .service-content-layout {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   SERVICE/SOLUTION PAGE - INTRO SECTION
   ======================================== */
.service-intro-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
    padding: 100px 0;
}

.service-intro-left h2 {
    font-family: var(--f2m-font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--f2m-dark);
    line-height: 1.3;
    margin-top: 15px;
}

.service-intro-right p {
    color: var(--f2m-dark);
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

.service-intro-right strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .service-intro-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 0;
    }
}

/* ========================================
   SERVICE/SOLUTION PAGE - SOLUTIONS SECTION
   ======================================== */
.service-solutions-section {
    background: linear-gradient(180deg, rgba(30, 10, 20, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%),
                url('https://web.f2m.com.mx/Resources/images/2148932274-1920w.jpg') center/cover no-repeat;
    background-blend-mode: darken;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.service-solutions-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 80%, rgba(200, 50, 50, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 20%, rgba(85, 198, 251, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.service-solutions-title {
    color: var(--f2m-white);
    font-family: var(--f2m-font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.service-solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
    z-index: 1;
}

.service-solution-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 40px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-solution-card.card-highlight {
    background: rgba(255, 255, 255, 0.95);
}

.service-solution-card.card-highlight .solution-card-title,
.service-solution-card.card-highlight .solution-card-subtitle,
.service-solution-card.card-highlight .solution-card-text,
.service-solution-card.card-highlight .solution-card-bullets li {
    color: var(--f2m-dark);
}

.service-solution-card.card-highlight .solution-card-title {
    color: var(--f2m-blue);
}

.service-solution-card.card-highlight .solution-card-icon {
    color: var(--f2m-dark);
}

.solution-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--f2m-white);
}

.solution-card-icon svg {
    width: 40px;
    height: 40px;
}

.solution-card-title {
    color: var(--f2m-blue);
    font-family: var(--f2m-font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.solution-card-subtitle {
    color: var(--f2m-white);
    font-family: var(--f2m-font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}

.solution-card-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 20px;
}

.solution-card-bullets {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.solution-card-bullets li {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.solution-card-bullets li strong {
    color: var(--f2m-white);
    font-weight: 600;
}

.service-solution-card.card-highlight .solution-card-bullets li strong {
    color: var(--f2m-dark);
}

@media (max-width: 992px) {
    .service-solutions-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-hero {
    background: radial-gradient(ellipse at 70% 80%, rgba(203, 227, 11, 0.4) 0%, transparent 50%),
                radial-gradient(ellipse at 60% 50%, rgba(85, 198, 251, 0.15) 0%, transparent 40%),
                radial-gradient(ellipse at 80% 30%, rgba(0, 80, 100, 0.6) 0%, transparent 50%),
                linear-gradient(180deg, var(--f2m-dark) 0%, #0a1a1a 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: 10%;
    width: 600px;
    height: 900px;
    border: 2px solid rgba(85, 198, 251, 0.4);
    border-radius: 50%;
    transform: rotate(-20deg);
    pointer-events: none;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 10%;
    right: 25%;
    width: 500px;
    height: 800px;
    border: 2px solid rgba(85, 198, 251, 0.3);
    border-radius: 50%;
    transform: rotate(-30deg);
    pointer-events: none;
}

.contact-hero-content {
    max-width: 600px;
}

.contact-hero-label {
    color: var(--f2m-blue);
    font-family: var(--f2m-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.contact-hero h1 {
    color: var(--f2m-white);
    font-family: var(--f2m-font-heading);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
}

.contact-section {
    background-color: var(--f2m-dark);
    padding: 80px 0 100px;
}

.contact-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 80px;
}

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

.contact-info h2 {
    color: var(--f2m-white);
    font-family: var(--f2m-font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-intro {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 40px;
    font-size: 0.95rem;
}

.contact-detail {
    margin-bottom: 30px;
}

.contact-detail-label {
    font-family: var(--f2m-font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: var(--f2m-white);
    margin-bottom: 8px;
}

.contact-detail-value {
    color: var(--f2m-blue);
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.7;
}

a.contact-detail-value:hover {
    text-decoration: underline;
}

p.contact-detail-value {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form-wrapper {
    padding-top: 20px;
}

.contact-form .form-group {
    margin-bottom: 24px;
}

.contact-form label {
    display: block;
    color: var(--f2m-white);
    font-family: var(--f2m-font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    background: var(--f2m-white);
    border: none;
    border-radius: 4px;
    padding: 12px 16px;
    font-family: var(--f2m-font-primary);
    font-size: 0.95rem;
    color: var(--f2m-dark);
    outline: none;
}

.contact-form textarea {
    min-height: 100px;
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .contact-hero {
        min-height: 50vh;
        padding: 100px 0 60px;
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-hero {
    background: radial-gradient(ellipse at 70% 90%, rgba(203, 227, 11, 0.4) 0%, transparent 45%),
                radial-gradient(ellipse at 50% 60%, rgba(0, 80, 100, 0.5) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 40%, rgba(85, 198, 251, 0.1) 0%, transparent 40%),
                linear-gradient(180deg, var(--f2m-dark) 0%, #0a1a1a 100%);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: 15%;
    width: 700px;
    height: 1000px;
    border: 2px solid rgba(85, 198, 251, 0.35);
    border-radius: 50%;
    transform: rotate(-15deg);
    pointer-events: none;
}

.about-hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-hero-label {
    color: var(--f2m-blue);
    font-family: var(--f2m-font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.about-hero-text h1 {
    color: var(--f2m-white);
    font-family: var(--f2m-font-heading);
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
}

.text-blue {
    color: var(--f2m-blue);
}

.about-hero-images {
    display: flex;
    gap: 20px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-hero-img-1,
.about-hero-img-2 {
    flex: 1;
    overflow: hidden;
    border-radius: 20px;
}

.about-hero-img-1 img,
.about-hero-img-2 img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.about-hero-img-1 {
    margin-top: 40px;
}

.about-hero-img-2 {
    margin-top: -20px;
}

/* Quiénes somos section */
.section-light {
    background-color: var(--f2m-white);
}

.about-who-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
    padding: 100px 0;
}

.about-who-left h2 {
    font-family: var(--f2m-font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--f2m-dark);
    margin-top: 15px;
}

.about-who-right p {
    color: var(--f2m-dark);
    line-height: 1.8;
    font-size: 1rem;
    text-align: justify;
}

.about-who-right strong {
    font-weight: 700;
}

/* Vision / Values / Team section */
.about-vision-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding: 80px 0;
}

.about-vision-image {
    position: sticky;
    top: 100px;
}

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

.about-vision-content h2 {
    font-family: var(--f2m-font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--f2m-dark);
    margin-bottom: 20px;
    margin-top: 20px;
}

.about-vision-content h2:first-child {
    margin-top: 0;
}

.about-vision-content p {
    color: var(--f2m-dark);
    line-height: 1.8;
    font-size: 0.95rem;
    text-align: justify;
    margin-bottom: 10px;
}

.about-vision-content strong {
    font-weight: 700;
}

@media (max-width: 768px) {
    .about-hero {
        min-height: auto;
        padding: 100px 0 60px;
    }
    .about-hero-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .about-hero-images {
        flex-direction: row;
    }
    .about-hero-img-1,
    .about-hero-img-2 {
        margin-top: 0;
    }
    .about-hero-img-1 img,
    .about-hero-img-2 img {
        height: 200px;
    }
    .about-who-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 60px 0;
    }
    .about-vision-layout {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 0;
    }
    .about-vision-image {
        position: static;
    }
}
