/* styles.css - Ruyol Engineering - Diseño Profesional */
:root {
    /* 🎨 PALETA CORPORATIVA */
    --primary-red: #d32f2f;
    --primary-black: #000000;
    --neutral-white: #ffffff;
    --neutral-light: #f5f5f5;
    --neutral-gray: #757575;
    --accent-dark-red: #b71c1c;
    
    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Sombras Profesionales */
    --shadow-light: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-medium: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-heavy: 0 8px 24px rgba(0,0,0,0.16);
    --shadow-red: 0 6px 20px rgba(211, 47, 47, 0.15);
}

/* RESET Y BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: #333;
    line-height: 1.6;
    background: var(--neutral-white);
    overflow-x: hidden;
    padding-top: 95px; 
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Selector de idioma */
.language-selector {
    display: flex;
    gap: 8px;
    margin-left: 20px;
    align-items: center;
}

.lang-btn {
    background: transparent;
    border: 1px solid var(--neutral-gray);
    color: var(--neutral-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: translateY(-2px);
}

.lang-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 10px rgba(211, 47, 47, 0.3);
}

/* ========== HEADER PROFESIONAL ========== */
.navbar-ruyol {
    background: var(--primary-black);
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: var(--shadow-heavy);
    border-bottom: 3px solid var(--primary-red);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo img {
    height: 65px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}
.navbar-logo img:hover { transform: scale(1.05); }

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 35px;
    align-items: center;
}

.navbar-link {
    color: var(--neutral-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-link:hover { color: var(--primary-red); }
.navbar-link.active {
    color: var(--primary-red);
    font-weight: 600;
}
.navbar-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-red);
}

.navbar-system-link {
    padding: 8px 16px !important;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.navbar-system-link:hover {
    background: rgba(211, 47, 47, 0.12);
    border-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

.navbar-cta .btn-primary {
    background: var(--primary-red);
    color: white;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.navbar-cta .btn-primary:hover {
    background: var(--accent-dark-red);
    transform: translateY(-2px);
    box-shadow: var(--shadow-red);
}

/* ========== HERO SECTION ========== */
.hero-section {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    color: white;
    padding: 100px 0 80px;
    margin: 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    text-align: left;
}

.hero-badge {
    display: inline-block;
    background: rgba(211, 47, 47, 0.15);
    color: var(--primary-red);
    padding: 10px 22px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 25px;
    border: 1px solid rgba(211, 47, 47, 0.3);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
}
.hero-title .text-highlight {
    color: var(--primary-red);
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 35px;
    color: #e0e0e0;
    max-width: 90%;
}
.hero-description strong {
    color: white;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
}
.btn-primary:hover {
    background: var(--accent-dark-red);
    transform: translateY(-3px);
    box-shadow: var(--shadow-red);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: white;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-3px);
}

.hero-contact-info {
    display: flex;
    gap: 30px;
    color: #aaa;
    font-size: 15px;
}
.hero-contact-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-contact-info i { color: var(--primary-red); }

/* ========== HERO: GALERÍA EXPANSIBLE ========== */
.hero-gallery {
    display: flex;
    gap: 8px;
    height: 450px;
    min-width: 0;
}

.hero-panel {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #1a1a1a;
    cursor: pointer;
    transition: flex 0.8s cubic-bezier(0.22, 0.8, 0.26, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.hero-panel.is-active {
    flex: 6;
    cursor: default;
}

.hero-panel:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hero-panel img,
.hero-panel video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) saturate(0.6);
    transition: filter 0.6s ease;
}

.hero-panel.is-active img,
.hero-panel.is-active video,
.hero-panel:hover img,
.hero-panel:hover video {
    filter: none;
}

.hero-panel::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4px;
    background: var(--primary-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease 0.2s;
    z-index: 3;
}

.hero-panel.is-active::after {
    transform: scaleX(1);
}

.hero-panel-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 48px 22px 22px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.hero-panel.is-active .hero-panel-label {
    opacity: 1;
    transform: none;
    transition-delay: 0.35s;
}

.hero-panel-tag {
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.hero-panel.is-active .hero-panel-tag {
    opacity: 0;
}

@media (max-width: 768px) {
    .hero-gallery {
        flex-direction: column;
        height: 420px;
        order: -1;
    }

    .hero-panel.is-active {
        flex: 5;
    }

    .hero-panel-tag {
        writing-mode: horizontal-tb;
        transform: none;
        left: 16px;
        bottom: auto;
        top: 50%;
        margin-top: -10px;
    }

    .hero-panel-label {
        padding: 40px 16px 16px;
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-panel,
    .hero-panel img,
    .hero-panel video,
    .hero-panel::after,
    .hero-panel-label,
    .hero-panel-tag {
        transition: none;
    }
}

/* ========== SECCIÓN SERVICIOS (INDEX) ========== */
.services-section {
    padding: 100px 0;
    background-color: var(--neutral-white);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--primary-black);
}
.section-title .text-highlight {
    color: var(--primary-red);
}

.section-description {
    font-size: 18px;
    color: var(--neutral-gray);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 30px;
}
.btn-large {
    padding: 18px 40px;
    font-size: 17px;
}

/* ========== ACORDEÓN DE SERVICIOS ========== */
.services-accordion input[type="radio"] {
    display: none;
}

.services-accordion {
    display: flex;
    gap: 15px;
    width: 100%;
    height: 380px;
    margin-bottom: 60px;
}

.service-accordion-item {
    position: relative;
    flex: 1;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    min-width: 60px;
}

.service-accordion-item:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    border-color: rgba(211, 47, 47, 0.3);
}

.service-accordion-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d32f2f, #b71c1c);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}
.service-accordion-item:hover::before,
.services-accordion input[type="radio"]:checked + .service-accordion-item::before {
    opacity: 1;
}

.service-accordion-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 30px 20px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.service-accordion-header .service-icon {
    width: 70px;
    height: 70px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.service-accordion-header .service-icon i {
    font-size: 32px;
    color: #d32f2f;
    transition: all 0.3s ease;
}

.service-accordion-header .service-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.service-accordion-header .service-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px; 
    font-weight: 700;
    color: #000;
    margin: 0;
    text-align: center;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    transition: all 0.4s ease;
    opacity: 0.8;
}

.service-accordion-content {
    position: absolute;
    top: 80px; 
    left: 0;
    width: 100%;
    height: calc(100% - 80px); 
    padding: 30px 40px 40px; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease 0.1s, visibility 0.4s ease 0.1s, transform 0.4s ease;
    transform: translateY(10px); 
    display: flex;
    flex-direction: column;
    background: #fff;
    z-index: 4;
}

.services-accordion input[type="radio"]:checked + .service-accordion-item {
    flex: 4;
    border-color: #d32f2f;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.services-accordion input[type="radio"]:checked + .service-accordion-item .service-accordion-header {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    height: 80px;
    padding: 20px 40px;
    gap: 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fff;
    z-index: 6; 
    position: relative;
}

.services-accordion input[type="radio"]:checked + .service-accordion-item .service-icon {
    margin-bottom: 0;
    width: 50px;
    height: 50px;
    background: var(--primary-red);
    transform: scale(1.05);
}

.services-accordion input[type="radio"]:checked + .service-accordion-item .service-icon i {
    color: white;
    font-size: 24px;
}

.services-accordion input[type="radio"]:checked + .service-accordion-item .service-icon img {
    filter: brightness(0) invert(1) !important;
    transform: scale(0.9); 
}

.services-accordion input[type="radio"]:checked + .service-accordion-item .service-title {
    writing-mode: horizontal-tb;
    transform: none;
    font-size: 24px;
    color: var(--primary-red);
    font-weight: 800;
}

.services-accordion input[type="radio"]:checked + .service-accordion-item .service-accordion-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.service-accordion-content .service-description {
    color: #757575;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 16px;
}

.service-accordion-content .service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.service-accordion-content .service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 15px;
    color: #555;
}
.service-accordion-content .service-features i {
    color: #d32f2f;
    font-size: 16px;
}

/* ========== SECCIÓN MARCAS PLC (INDEX) ========== */
.plc-section {
    padding: 100px 0;
    background-color: var(--neutral-white);
    position: relative;
}

.plc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 60px 0;
    padding: 20px 0;
    align-items: stretch;
}

.plc-logo {
    background: white;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06), 0 2px 5px rgba(0,0,0,0.04); 
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); 
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
    height: 100%;
}

.tilt-left { transform: rotate(-2deg); }
.tilt-right { transform: rotate(2deg); }
.tilt-none { transform: rotate(0deg); }

.plc-logo:hover {
    transform: translateY(-10px) rotate(0deg) scale(1.03); 
    box-shadow: 0 20px 40px rgba(211, 47, 47, 0.15), 0 5px 15px rgba(0,0,0,0.1); 
    border-color: var(--primary-red);
    z-index: 10; 
}

.plc-logo::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-red), var(--accent-dark-red));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px 0 0 12px;
}
.plc-logo:hover::before { opacity: 1; }

.plc-logo-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: rgba(211, 47, 47, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid rgba(211, 47, 47, 0.1);
    transition: all 0.3s ease;
}

.plc-logo:hover .plc-logo-container {
    background: rgba(211, 47, 47, 0.1);
    border-color: rgba(211, 47, 47, 0.3);
    transform: scale(1.05);
}

.plc-logo-container img {
    max-width: 100%;
    max-height: 50px;
    width: auto;
    height: auto;
    filter: grayscale(20%);
    opacity: 0.9;
    transition: all 0.4s ease;
    object-fit: contain;
}

.plc-logo:hover .plc-logo-container img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.plc-brand {
    font-family: var(--font-heading);
    font-size: 18px; 
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--primary-black);
}

.plc-type {
    display: block;
    font-size: 13px;
    color: var(--neutral-gray);
    line-height: 1.4;
    font-weight: 500;
}

.plc-note {
    text-align: center;
    margin-top: 50px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.05) 0%, rgba(211, 47, 47, 0.02) 100%);
    border-radius: 10px;
    border-left: 4px solid var(--primary-red);
}

.plc-note p {
    margin: 0;
    color: #555;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.plc-note i { color: var(--primary-red); font-size: 22px; }
.plc-note strong { color: var(--primary-red); font-weight: 700; }

/* ========== FOOTER ========== */
.main-footer {
    background-color: var(--primary-black);
    color: #ddd;
    padding: 70px 0 30px;
    margin-top: 60px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 50px;
}

.footer-brand { flex: 1; min-width: 300px; }
.footer-logo {
    height: 120px;
    width: auto;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}
.footer-description {
    font-size: 15px;
    line-height: 1.7;
    color: #aaa;
    max-width: 400px;
}
.footer-social h4 {
    color: white;
    font-size: 18px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
}
.social-icons { 
    display: flex; 
    gap: 15px; 
}

.social-icons a[href*="facebook"] { display: none; }

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}
.social-icon:hover {
    background-color: var(--primary-red);
    transform: translateY(-3px);
}

.footer-middle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 50px;
    align-items: start;
}

.footer-title {
    color: white;
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-red);
    display: inline-block;
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: #bbb;
    text-decoration: none;
    font-size: 15px;
    transition: all 0.3s ease;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--primary-red);
    transform: translateX(5px);
}

.footer-contact { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 25px;
}
.contact-item i {
    color: var(--primary-red);
    font-size: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}
.contact-item strong {
    color: white;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}
.contact-item p {
    margin: 0;
    color: #bbb;
    font-size: 14px;
    line-height: 1.5;
}
.contact-item a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}
.contact-item a:hover { color: var(--primary-red); }

.footer-hours { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; }
.hours-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}
.hours-item span:first-child { color: #bbb; }
.hours-item span:last-child { color: white; font-weight: 500; }

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
    background-color: var(--primary-red);
    color: white;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}
.btn-small:hover {
    background-color: var(--accent-dark-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.copyright p {
    margin: 0;
    color: #999;
    font-size: 14px;
}
.copyright .footer-note {
    font-size: 13px;
    color: #777;
    margin-top: 5px;
}

/* ========== BOTONES FLOTANTES ========== */
.float-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.float-button:hover {
    transform: scale(1.1);
    color: white;
}

.whatsapp-float { background-color: #25D366; }
.whatsapp-float:hover { box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6); }

.email-float { background-color: #D44638; }
.email-float:hover { box-shadow: 0 6px 25px rgba(212, 70, 56, 0.6); }

/* ========== ESTILOS DE CONTACTO ========== */
.hero-contact-simple {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    padding: 100px 0 60px;
    color: white;
    text-align: center;
}
.hero-contact-content { max-width: 800px; margin: 0 auto; }
.hero-contact-simple .hero-badge {
    display: inline-block;
    background: rgba(211, 47, 47, 0.15);
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 20px;
    border: 1px solid rgba(211, 47, 47, 0.3);
    letter-spacing: 1px;
}
.hero-contact-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 25px;
    color: white;
}
.hero-contact-description {
    font-size: 18px;
    line-height: 1.7;
    color: #e0e0e0;
    max-width: 700px;
    margin: 0 auto;
}

.form-modal-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}
.form-modal-card {
    max-width: 650px;
    margin: 0 auto;
    background: white;
    border-radius: 32px;
    padding: 45px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.form-modal-header {
    text-align: center;
    margin-bottom: 35px;
}
.form-modal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
}
.form-modal-subtitle {
    color: #777;
    font-size: 15px;
}
.form-modal-group { margin-bottom: 25px; }
.form-modal-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}
.form-modal-group input,
.form-modal-group select,
.form-modal-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #eef2f6;
    border-radius: 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    transition: all 0.2s ease;
    display: block;
}
.form-modal-group input:focus,
.form-modal-group select:focus,
.form-modal-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background: white;
    box-shadow: 0 0 0 4px rgba(211, 47, 47, 0.1);
}
.form-modal-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 5px;
}
.form-modal select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px;
}
.form-modal-file {
    position: relative;
    border: 2px dashed #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 16px;
    margin: 30px 0 25px;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}
.form-modal-file:hover {
    border-color: var(--primary-red);
    background: rgba(211, 47, 47, 0.02);
}
.form-modal-file i {
    font-size: 22px;
    color: var(--primary-red);
    margin-right: 8px;
}
.form-modal-file input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}
.btn-modal-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary-red);
    color: white;
    border: none;
    border-radius: 40px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    margin-top: 15px;
}
.btn-modal-submit:hover {
    background: var(--accent-dark-red);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(211, 47, 47, 0.3);
}

.locations-cards-section {
    padding: 60px 0 100px;
    background: white;
}
.locations-centered-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 40px auto 0;
}
.locations-centered-grid .service-card { width: 100%; min-width: 0; } 
.location-details { margin: 15px 0 20px; flex-grow: 1; }
.location-detail {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #f0f0f0;
}
.location-detail:last-child { border-bottom: none; }
.location-detail i {
    color: var(--primary-red);
    font-size: 16px;
    width: 20px;
    margin-top: 3px;
}
.location-detail span {
    color: #555;
    font-size: 14px;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
}
.location-map {
    margin: 15px 0 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.address-link {
    color: #bbb;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 2px 0;
}
.address-link:hover { color: var(--primary-red); }
.address-link:hover::after { width: 100%; }
.address-link:active,
.address-link:focus {
    color: var(--primary-red);
    outline: none;
}

/* ========== RESPONSIVE MEJORADO PARA MÓVIL ========== */
@media (max-width: 1200px) {
    .footer-middle { grid-template-columns: repeat(2, 1fr); gap: 40px 60px; }
}

@media (max-width: 992px) {
    .navbar-system-link span { display: none; }
    .navbar-system-link { padding: 8px 12px !important; border-radius: 50%; }
    .navbar-cta .btn-primary { padding: 10px 18px; font-size: 14px; }
    .language-selector { margin-left: 0; gap: 4px; }
    .lang-btn { width: 32px; height: 32px; font-size: 12px; }

    .plc-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .service-detail-body { grid-template-columns: 1fr; gap: 30px; }
    .service-detail-header { flex-direction: column; text-align: center; gap: 20px; }
}

@media (max-width: 768px) {
    body { padding-top: 70px; }
    
    .navbar-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-black);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-top: 2px solid var(--primary-red);
        box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    }
    
    .navbar-menu.active { display: flex; }
    
    .navbar-link {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    .navbar-link.active::after { bottom: 5px; }
    
    .navbar-cta { width: 100%; margin-top: 10px; }
    .navbar-cta .btn-primary {
        width: 100%;
        justify-content: center;
    }
    .navbar-right { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }
    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: white;
        transition: all 0.3s ease;
    }
    .menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
    
    .hero-section { padding: 60px 0 40px; }
    .hero-container { grid-template-columns: 1fr; gap: 30px; }
    .hero-title { font-size: 36px; }
    .hero-description { font-size: 16px; max-width: 100%; }
    .hero-image-container { height: 300px; order: -1; }
    .hero-contact-info { flex-direction: column; gap: 15px; align-items: flex-start; }
    
    .services-section { padding: 60px 0; }
    .section-title { font-size: 32px; }
    
    .services-accordion {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }
    .service-accordion-item {
        flex: none;
        width: 100%;
    }
    .service-accordion-header {
        flex-direction: row !important;
        justify-content: flex-start;
        height: auto;
        padding: 20px;
        gap: 20px;
    }
    .service-accordion-header .service-title {
        writing-mode: horizontal-tb !important;
        transform: none !important;
        text-align: left;
        font-size: 18px;
    }
    .service-accordion-header .service-icon {
        margin-bottom: 0 !important;
        width: 50px;
        height: 50px;
    }
    .service-accordion-header .service-icon i { font-size: 24px; }
    .service-accordion-header .service-icon img { width: 30px; height: 30px; } 
    
    .service-accordion-content {
        position: static;
        height: 0;
        padding: 0 20px;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: height 0.5s ease, padding 0.5s ease;
        transform: none; 
    }
    .services-accordion input[type="radio"]:checked + .service-accordion-item { flex: none; }
    .services-accordion input[type="radio"]:checked + .service-accordion-item .service-accordion-content {
        height: auto;
        padding: 0 20px 25px 90px;
    }
    .services-accordion input[type="radio"]:checked + .service-accordion-item .service-accordion-header {
        border-bottom: none;
        padding-bottom: 15px;
    }
    
    .plc-section { padding: 60px 0; }
    .plc-grid { 
        grid-template-columns: 1fr; 
        gap: 20px; 
        margin: 30px 0;
        padding: 0;
    }
    .plc-logo { 
        padding: 20px;
        flex-direction: row;
        align-items: center;
        transform: none !important;
    }
    .plc-logo-container { width: 70px; height: 70px; flex-shrink: 0; }
    .plc-logo-container img { max-height: 45px; }
    .plc-brand { font-size: 18px; }
    .plc-note p { flex-direction: column; gap: 8px; text-align: center; }
    
    .main-footer { padding: 40px 0 20px; }
    .footer-top { flex-direction: column; gap: 30px; padding-bottom: 30px; margin-bottom: 30px; }
    .footer-brand { min-width: 100%; }
    .footer-middle { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 15px; }
    
    .hours-item {
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 10px 0;
    }
    .hours-item span:first-child { font-size: 15px; color: #fff; }
    .hours-item span:last-child { font-size: 15px; color: #aaa; }
    
    .contact-item { flex-direction: row; align-items: flex-start; gap: 12px; }
    .contact-item div { text-align: left; }
    .footer-cta { text-align: left; margin-top: 15px; }

    .float-buttons { bottom: 20px; right: 20px; gap: 10px; }
    .float-button { width: 50px; height: 50px; font-size: 24px; }
    
    .service-detail-section { padding: 30px 20px; }
    .service-detail-header h2 { font-size: 26px; }
    
    .hero-contact-simple { padding: 80px 0 40px; }
    .hero-contact-title { font-size: 36px; }
    .form-modal-card { padding: 30px 20px; }
    .form-modal-row { grid-template-columns: 1fr; gap: 15px; }
    .locations-centered-grid { grid-template-columns: 1fr; gap: 20px; }
    
    .language-selector { margin: 0; justify-content: center; }
}

@media (max-width: 576px) {
    .hero-title { font-size: 28px; }
    .hero-actions { flex-direction: column; gap: 10px; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    
    .section-title { font-size: 26px; }
    
    .plc-logo { flex-direction: column; text-align: center; gap: 15px; }
    .plc-logo-container { margin: 0 auto; }
}

@media (max-width: 480px) {
    .plc-logo { padding: 15px; }
    .plc-brand { font-size: 16px; }
    .plc-type { font-size: 12px; }
    
    .footer-title { font-size: 16px; }
    .footer-links a { font-size: 14px; }
    .contact-item { flex-direction: column; gap: 5px; align-items: flex-start; }
    .contact-item i { margin-top: 0; }
    .hours-item { flex-direction: column; gap: 5px; text-align: center; }
    
    .float-button { width: 45px; height: 45px; font-size: 22px; }
    
    .services-accordion input[type="radio"]:checked + .service-accordion-item .service-accordion-content {
        padding: 0 15px 20px 15px;
    }
    .service-accordion-header { padding: 15px; }
}

/* ========== MENÚ EN LOGO PARA MÓVIL ========== */
@media (max-width: 768px) {
    .navbar-logo { position: relative; cursor: pointer; }
    
    .logo-menu-dropdown {
        position: absolute;
        top: 70px;
        left: 0;
        background: var(--primary-black);
        border: 2px solid var(--primary-red);
        border-radius: 8px;
        padding: 10px 0;
        min-width: 200px;
        box-shadow: var(--shadow-heavy);
        z-index: 1000;
        display: none;
    }
    
    .logo-menu-dropdown.active { display: block; animation: slideDown 0.3s ease; }
    
    .logo-menu-dropdown a {
        display: block;
        padding: 12px 20px;
        color: white;
        text-decoration: none;
        font-size: 16px;
        font-weight: 500;
        transition: all 0.3s ease;
        border-left: 3px solid transparent;
    }
    
    .logo-menu-dropdown a:hover {
        background: rgba(211, 47, 47, 0.2);
        border-left-color: var(--primary-red);
        padding-left: 25px;
    }
    
    .logo-menu-dropdown a i {
        margin-right: 10px;
        color: var(--primary-red);
        width: 20px;
        display: inline-block;
    }
    
    .logo-menu-dropdown a.active {
        background: rgba(211, 47, 47, 0.3);
        border-left-color: var(--primary-red);
        font-weight: 600;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .navbar-logo::after {
        content: '▼';
        color: var(--primary-red);
        font-size: 12px;
        margin-left: 8px;
        display: inline-block;
        transition: transform 0.3s ease;
    }
    
    .navbar-logo.active::after { transform: rotate(180deg); }
    .logo-menu-dropdown { transform-origin: top center; }
    .logo-menu-dropdown hr { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 8px 0; }
    
    .logo-menu-dropdown::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 20px;
        width: 0;
        height: 0;
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid var(--primary-red);
    }
}

/* ===== CORRECCIÓN FINAL PARA CONTACTO ===== */
.hero-contact-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: white !important;
    font-size: 52px !important;
}

.hero-contact-title span,
.hero-contact-title .text-highlight {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-contact-title .text-highlight { color: var(--primary-red) !important; }

@media (max-width: 768px) {
    .hero-contact-title { font-size: 36px !important; }
}

/* ============================================
   SECCIÓN CLIENTES - CARRUSEL INFINITO (HOME)
================================================ */
.clients-section {
    padding: 80px 0;
    background-color: #fafafa;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.clients-carousel {
    display: flex;
    width: max-content;
    animation: scroll-logos 20s linear infinite;
    margin-top: 40px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.clients-carousel:hover {
    animation-play-state: paused;
}

.clients-track {
    display: flex;
    align-items: center;
    gap: 70px;
    padding-right: 70px;
}

.client-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
    flex-shrink: 0;
    padding: 10px;
    transition: transform 0.3s ease;
}

.client-logo .logo-container {
    height: 85px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    padding: 12px;
}

.client-logo .logo-container img {
    max-width: 100%;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
    filter: grayscale(15%);
    opacity: 0.85;
}

.client-logo:hover .logo-container img {
    transform: scale(1.12);
    filter: grayscale(0%);
    opacity: 1;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.18));
}

.client-logo .client-name {
    display: block;
    font-weight: 600;
    color: #666;
    font-size: 13px;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    text-align: center;
}

.client-logo:hover .client-name { color: var(--primary-red); }

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 992px) {
    .clients-track { gap: 50px; padding-right: 50px; }
    .client-logo { min-width: 130px; }
}

@media (max-width: 768px) {
    .clients-section { padding: 40px 0; }
    .clients-carousel { animation-duration: 15s; margin-top: 30px; }
    .clients-track { gap: 35px; padding-right: 35px; }
    .client-logo { min-width: 110px; }
    .client-logo .logo-container { height: 70px; }
    .client-logo .logo-container img { max-height: 50px; }
    .client-logo .client-name { font-size: 12px; }
}

@media (max-width: 480px) {
    .clients-track { gap: 25px; padding-right: 25px; }
    .client-logo { min-width: 95px; }
    .client-logo .logo-container { height: 60px; padding: 5px; }
    .client-logo .logo-container img { max-height: 42px; }
    .client-logo .client-name { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
    .clients-carousel { animation: none; }
}

/* ========== SOLUCIÓN DEFINITIVA: ELIMINAR BORDE AZUL DE BOOTSTRAP ========== */
.btn-primary, 
.btn-primary:focus, 
.btn-primary:active, 
.btn-primary:focus-visible,
.cta-section .btn-primary,
.cta-section .btn-primary:focus,
.cta-section .btn-primary:active {
    background-color: var(--primary-red) !important;
    border-color: var(--primary-red) !important;
    color: white !important;
    outline: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    --bs-btn-focus-shadow-rgb: 211, 47, 47 !important;
}

.btn-primary:hover {
    background-color: var(--accent-dark-red) !important;
    border-color: var(--accent-dark-red) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-red) !important;
}

/* ============================================
   CARRUSEL DOBLE DE CLIENTES (PÁGINA SERVICIOS) - AISLADO
================================================ */

.clients-double-carousel {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.clients-double-carousel .carousel-row {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.clients-double-carousel .carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    padding: 15px 0;
}

.clients-double-carousel .carousel-track.row-left {
    animation: scroll-left 25s linear infinite;
}

.clients-double-carousel .carousel-track.row-right {
    animation: scroll-right 25s linear infinite;
}

.clients-double-carousel:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

@keyframes scroll-right {
    0% { transform: translateX(calc(-50% - 15px)); }
    100% { transform: translateX(0); }
}

/* Estilos base de los textos (por si usas texto en lugar de imágenes) */
.clients-double-carousel .color-logo span { color: var(--primary-black); }
.clients-double-carousel .bw-logo span { color: #999; }

/* ===== NUEVO EFECTO HOVER (Elegante, Destello y Wobble) ===== */

/* 1. Estilo base de la tarjeta (Quitamos el contorno gris) */
.clients-double-carousel .client-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 90px;
    background: white;
    border-radius: 12px;
    padding: 20px 30px;
    /* Nueva sombra más suave para que no parezca un contorno gris duro */
    box-shadow: 0 4px 12px rgba(0,0,0,0.04); 
    border: 1px solid transparent; /* El borde es transparente por defecto */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    flex-shrink: 0;
    position: relative; /* Necesario para el efecto destello */
    overflow: hidden; /* Necesario para que el destello no se salga de la tarjeta */
}

/* 2. Efecto Destello Rojo (Luz de izquierda a derecha) */
.clients-double-carousel .client-logo-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%; /* Empieza oculto a la izquierda */
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(211, 47, 47, 0.15) 50%, /* Tono rojizo sutil */
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg); /* Le da el ángulo diagonal al destello */
    transition: none; /* Sin transición para que el destello sea rápido */
    pointer-events: none;
    z-index: 2;
}

/* 3. Efecto Hover: Wobble vertical + Destello */
.clients-double-carousel .client-logo-card:hover {
    /* Animación de rebote vertical */
    animation: wobble-vertical 0.6s ease-in-out;
    border-color: var(--primary-red); 
    
    /* SOMBRA CORREGIDA: Menos difuminada, más pegada y más oscura */
    box-shadow: 0 6px 15px rgba(211, 47, 47, 0.3); 
    
    transform: translateY(-5px); 
}

/* Lanzamos el destello al hacer hover */
.clients-double-carousel .client-logo-card:hover::after {
    left: 100%; /* Viaja de izquierda a derecha */
    transition: left 0.6s ease-in-out; 
}

/* 4. Animación Wobble (Rebote vertical) */
@keyframes wobble-vertical {
    0% { transform: translateY(0); }
    25% { transform: translateY(-6px); }
    50% { transform: translateY(2px); }
    75% { transform: translateY(-2px); }
    100% { transform: translateY(-5px); } /* Termina flotando */
}

/* 5. Mantenemos los efectos de las imágenes (Blanco y negro a color) */
.clients-double-carousel .client-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s ease;
    z-index: 3; /* Para que el logo quede por encima del destello */
}

.clients-double-carousel .color-logo img {
    opacity: 0.85; 
}

.clients-double-carousel .color-logo:hover img {
    opacity: 1; 
}

.clients-double-carousel .bw-logo img {
    filter: grayscale(100%);
    opacity: 0.5;
}

.clients-double-carousel .bw-logo:hover img {
    filter: grayscale(0%); 
    opacity: 1; 
}

.clients-double-carousel .client-logo-card:hover span { color: var(--primary-red); }


/* ============================================
   1. ARREGLO DEL BOTÓN DE SISTEMA (TABLET Y MÓVIL)
================================================ */
@media (max-width: 992px) {
    .navbar-system-link {
        width: 42px !important;
        height: 42px !important;
        padding: 0 !important;
        border-radius: 50% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background-color: transparent !important;
        border-color: rgba(255, 255, 255, 0.25) !important;
    }
    
    .navbar-system-link img {
        width: 24px !important;
        height: 24px !important;
        margin: 0 !important;
    }
    
    .navbar-system-link span {
        display: none !important; /* Oculta el texto "Sistema" */
    }
}

/* ============================================
   2. ARREGLO DE LOS HORARIOS EN MÓVIL/TABLET
================================================ */
@media (max-width: 768px) {
    .hours-item {
        display: flex !important;
        flex-direction: row !important; /* Fuerza a que estén en la misma línea */
        justify-content: space-between !important;
        align-items: center !important;
        text-align: left !important;
        padding: 12px 0 !important;
    }
    
    .hours-item span:first-child {
        font-size: 14px !important;
        color: #bbb !important;
    }
    
    .hours-item span:last-child {
        font-size: 14px !important;
        color: #fff !important;
        font-weight: 600 !important;
    }
}

/* ============================================
   SECCIÓN DE UBICACIONES (TARJETAS LIMPIAS)
================================================ */

.locations-section {
    padding: 80px 0;
    background-color: #fafafa; /* Un fondo gris muy claro para que resalten las tarjetas blancas */
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

/* Tarjeta individual */
.location-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

/* Encabezado de la tarjeta */
.location-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.location-card-header i {
    font-size: 28px;
    color: var(--primary-red);
    background: rgba(211, 47, 47, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.location-card-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-black);
    margin: 0;
    line-height: 1.2;
}

.location-card-header p {
    font-size: 14px;
    color: var(--neutral-gray);
    margin: 5px 0 0 0;
}

/* Lista de información */
.location-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    flex-grow: 1; /* Empuja el mapa hacia abajo */
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.info-item i {
    color: var(--primary-red);
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Contenedor del mapa */
.location-map {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-top: auto;
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsivo para móviles */
@media (max-width: 992px) {
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .location-card {
        padding: 30px 20px;
    }
}
/* ========== SECCIÓN DE CERTIFICACIONES (ECOSISTEMA CONECTADO) ========== */

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    position: relative; 
    padding: 20px 0;
}

.cert-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(211, 47, 47, 0.2), transparent);
    z-index: 0; 
    transform: translateY(-50%);
}

.cert-card {
    background: white;
    /* 1. Borde gris más definido (antes era #f0f0f0, ahora es un gris más visible) */
    border: 1px solid #d1d5db; 
    border-radius: 16px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02); 
}

/* Efecto Hover */
.cert-card:hover {
    transform: translateY(-5px);
    /* 2. El borde se vuelve rojo al pasar el mouse */
    border-color: var(--primary-red); 
    /* 3. Sombrero rojo menos transparente (subimos de 0.08 a 0.25) */
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.25); 
    background: white; /* Mantenemos el fondo blanco puro */
}

/* El icono */
.cert-icon {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    color: var(--primary-red);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1); 
    border: 1px solid #e5e7eb; /* Borde del icono un poco más gris */
}

.cert-card:hover .cert-icon {
    background: var(--primary-red);
    color: white;
    border-color: var(--primary-red);
    transform: rotateY(360deg); 
}

.cert-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-black);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.cert-desc {
    font-size: 14px;
    color: var(--neutral-gray);
    line-height: 1.6;
    margin: 0;
}

/* Responsivo */
@media (max-width: 992px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .cert-grid::before {
        display: none; 
    }
}

@media (max-width: 768px) {
    .cert-grid {
        grid-template-columns: 1fr;
    }
}
/* ============================================
   BARRA DE NAVEGACIÓN DE SERVICIOS
   ESTADOS: (1) CÁPSULA NORMAL  (2) DOCKED = BARRA LATERAL FLOTANTE
================================================ */

.service-nav h3 { display: none !important; }

#navDockSentinel {
    height: 1px;
    width: 100%;
}

.service-nav-wrapper {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 95px !important;
    z-index: 900 !important;
    max-width: 1100px !important;
    margin: 20px auto 40px auto !important;
    padding: 0 20px !important;
    min-height: 70px !important;
}

/* La cápsula blanca */
.service-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px) !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid rgba(211, 47, 47, 0.15) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: background 0.3s ease, padding 0.3s ease, border-radius 0.3s ease;
}

.service-nav-links {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    justify-content: center !important;
}

/* ===== ESTADO 1: CÁPSULA NORMAL (Icono + Texto en línea) ===== */
.service-nav-link {
    position: relative;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 10px 18px !important;
    background: #f8f9fa !important;
    border-radius: 30px !important;
    border: 1px solid #eee !important;
    text-decoration: none !important;
    color: #555 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    transition: all 0.25s ease !important;
}

.service-nav-link i {
    font-size: 16px !important;
    color: var(--primary-red) !important;
    display: inline-block !important;
    line-height: 1;
}

.service-nav-link span {
    display: inline-block !important;
}

.service-nav-link:hover,
.service-nav-link.active {
    background: var(--primary-red) !important;
    color: white !important;
    border-color: var(--primary-red) !important;
}

.service-nav-link:hover i,
.service-nav-link.active i {
    color: white !important;
}

/* ===========================================================
   ESTADO 2: DOCKED -> MENÚ LATERAL FLOTANTE
   Se activa agregando la clase .docked al wrapper vía JS
   cuando el usuario baja lo suficiente en la página
=========================================================== */
.service-nav-wrapper.docked {
    position: fixed !important;
    top: 50% !important;
    left: auto !important;
    right: 22px !important;
    bottom: auto !important;
    transform: translateY(-50%);
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    z-index: 1100 !important;
    animation: navDockIn 0.35s ease both;
}

@keyframes navDockIn {
    from { opacity: 0; transform: translateY(-50%) translateX(20px); }
    to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

.service-nav-wrapper.docked .service-nav {
    display: flex !important;
    flex-direction: column !important;
    padding: 12px 8px !important;
    border-radius: 30px !important;
}

.service-nav-wrapper.docked .service-nav-links {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    flex-wrap: nowrap !important;
}

/* Los links se vuelven círculos de SOLO ICONO (el texto se oculta) */
.service-nav-wrapper.docked .service-nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    gap: 0 !important;
    overflow: visible !important;
    white-space: nowrap !important;
}

.service-nav-wrapper.docked .service-nav-link i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 19px !important;
    color: var(--primary-red) !important;
    width: 100%;
}

/* El texto queda oculto por completo: solo existe como tooltip */
.service-nav-wrapper.docked .service-nav-link span {
    position: absolute !important;
    display: block !important;
    right: calc(100% + 14px) !important;
    top: 50% !important;
    transform: translateY(-50%) translateX(8px) !important;
    background: #1a1a1a !important;
    color: #fff !important;
    padding: 7px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.2s ease, transform 0.2s ease !important;
}

/* Flechita del tooltip */
.service-nav-wrapper.docked .service-nav-link span::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #1a1a1a;
}

/* En escritorio (mouse/trackpad real): el nombre aparece al pasar el cursor.
   OJO: esto va dentro de @media (hover:hover) y (pointer:fine) a propósito.
   En celular, arrastrar el dedo para hacer scroll pasa literalmente sobre
   estos círculos (están pegados al borde por donde se desliza el dedo) y
   muchos navegadores móviles "atoran" el :hover como si fuera permanente
   después del toque. Por eso en celular el texto NO debe depender de :hover
   en absoluto, solo de la clase .show-label que pone el JS con el tap. */
@media (hover: hover) and (pointer: fine) {
    .service-nav-wrapper.docked .service-nav-link:hover span {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(-50%) translateX(0) !important;
    }
}

/* Nombre visible por tap en móvil (clase puesta por JS, ver service.html) */
.service-nav-wrapper.docked .service-nav-link.show-label span {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) translateX(0) !important;
}

.service-nav-wrapper.docked .service-nav-link.active {
    background: var(--primary-red) !important;
    color: white !important;
    border-color: var(--primary-red) !important;
}

.service-nav-wrapper.docked .service-nav-link.active i {
    color: white !important;
}

/* El color rojo por hover también solo para mouse real, por la misma razón
   del "hover atorado" al arrastrar el dedo en celular */
@media (hover: hover) and (pointer: fine) {
    .service-nav-wrapper.docked .service-nav-link:hover {
        background: var(--primary-red) !important;
        color: white !important;
        border-color: var(--primary-red) !important;
    }
    .service-nav-wrapper.docked .service-nav-link:hover i {
        color: white !important;
    }
}

/* Ajuste para móvil / pantallas pequeñas en modo normal */
@media (max-width: 768px) {
    .service-nav-wrapper {
        top: 130px !important;
        padding: 0 10px !important;
    }
    .service-nav {
        padding: 10px 15px !important;
    }
    .service-nav-links {
        gap: 6px !important;
    }
    .service-nav-link {
        padding: 8px 12px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }
    .service-nav-link i {
        font-size: 14px !important;
    }

    /* Barra lateral flotante, versión táctil/móvil: círculos más chicos y pegados al borde */
    .service-nav-wrapper.docked {
        right: 10px !important;
        top: 50% !important;
    }
    .service-nav-wrapper.docked .service-nav {
        padding: 8px 6px !important;
    }
    .service-nav-wrapper.docked .service-nav-links {
        gap: 8px !important;
    }
    .service-nav-wrapper.docked .service-nav-link {
        width: 40px !important;
        height: 40px !important;
    }
    .service-nav-wrapper.docked .service-nav-link i {
        font-size: 17px !important;
    }
    .service-nav-wrapper.docked .service-nav-link span {
        right: calc(100% + 10px) !important;
        font-size: 12px !important;
        padding: 6px 11px !important;
    }
}