:root {
    --barry-black: #0a0a0a;
    --barry-navy: #0a1428;
    --barry-navy-light: #142138;
    --barry-accent: #1e3a5f;
    --barry-silver: #c0c0c0;
    --barry-white: #ffffff;
    --barry-gray: #f4f4f4;
    --barry-text-gray: #a0aec0;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--barry-white);
    color: var(--barry-black);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 800;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding { padding: 80px 0; }

/* --- BOTONES --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--barry-navy);
    color: var(--barry-white);
    border-color: var(--barry-navy);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--barry-navy);
    border-color: var(--barry-navy);
}

.btn-outline {
    background-color: transparent;
    color: var(--barry-white);
    border-color: var(--barry-white);
}

.btn-outline:hover {
    background-color: var(--barry-white);
    color: var(--barry-navy);
}

/* --- TOP BAR --- */
.top-bar {
    background-color: var(--barry-navy);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1001;
    font-size: 0.82rem;
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 24px;
    height: 36px;
    color: var(--barry-text-gray);
}

.top-bar-inner i { margin-right: 4px; color: var(--barry-silver); }

.top-bar-wsp {
    color: #25d366;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-bar-wsp:hover { color: #1fba59; }

/* --- HEADER --- */
header {
    background-color: var(--barry-black);
    position: fixed;
    width: 100%;
    top: 36px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    color: var(--barry-white);
}

.logo-image {
    height: 56px;
    width: auto;
    object-fit: contain;
}

.nav-menu { display: flex; gap: 30px; }

.nav-menu > li {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-menu > li > a {
    color: var(--barry-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    padding: 0 10px;
    border-bottom: 3px solid transparent;
}

.nav-menu > li:hover > a {
    color: var(--barry-silver);
    border-bottom-color: var(--barry-accent);
}

/* Dropdowns */
.dropdown-menu {
    position: absolute;
    top: 80px;
    left: 0;
    background-color: var(--barry-navy);
    min-width: 280px;
    padding: 15px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-top: 3px solid var(--barry-accent);
}

.nav-menu > li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    color: var(--barry-white);
    padding: 10px 25px;
    display: block;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
}

.dropdown-menu li a:hover {
    background-color: var(--barry-navy-light);
    border-left-color: var(--barry-accent);
    color: var(--barry-silver);
    padding-left: 30px;
}

.menu-toggle {
    display: none;
    color: var(--barry-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- HERO --- */
.hero {
    margin-top: 116px;
    height: calc(100vh - 116px);
    background:
        linear-gradient(rgba(10,20,40,0.45), rgba(10,10,10,0.55)),
        var(--hero-bg-image, url('https://images.unsplash.com/photo-1541888946425-d81bb19240f5?w=1920&h=1080&fit=crop')) no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--barry-white);
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content h1 span {
    color: var(--barry-silver);
    display: block;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--barry-text-gray);
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- STATS BAR --- */
.stats-bar {
    background-color: var(--barry-navy);
    padding: 40px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item {
    color: var(--barry-white);
    border-right: 1px solid rgba(255,255,255,0.1);
    padding: 0 20px;
}
.stat-item:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--barry-silver);
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.9;
}

/* --- CATEGORÍAS --- */
.section-dark {
    background-color: var(--barry-black);
    color: var(--barry-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--barry-accent);
}
.section-header p {
    color: var(--barry-text-gray);
    max-width: 600px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.1);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10,20,40,0.95), transparent 60%);
    z-index: 1;
    transition: var(--transition);
}

.category-card:hover::before {
    background: linear-gradient(to top, rgba(30,58,95,0.9), transparent 70%);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
}
.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.category-content p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: var(--barry-text-gray);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}
.category-card:hover .category-content p {
    opacity: 1;
    transform: translateY(0);
}

.category-link {
    color: var(--barry-white);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.category-link i { transition: transform 0.3s; }
.category-card:hover .category-link i { transform: translateX(5px); }

/* --- EQUIPOS DESTACADOS --- */
.equipment-section { background-color: var(--barry-gray); }

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.equipment-card {
    background-color: var(--barry-white);
    border: 1px solid #ddd;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.equipment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.equipment-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--barry-navy);
    color: white;
    padding: 5px 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    z-index: 2;
}

.equipment-image {
    height: 220px;
    background-color: var(--barry-navy);
    position: relative;
    overflow: hidden;
}
.equipment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.equipment-info { padding: 25px; }
.equipment-info h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--barry-black);
}

.equipment-specs {
    color: var(--barry-text-gray);
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}
.equipment-specs i { color: var(--barry-navy); margin-right: 5px; }

.btn-block {
    width: 100%;
    text-align: center;
    padding: 12px;
    font-size: 0.8rem;
}

/* --- EQUIPOS PARA BODEGAS --- */
.warehouse-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    text-align: center;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.1);
    background-color: rgba(255,255,255,0.03);
    transition: var(--transition);
}
.feature-item:hover {
    background-color: var(--barry-navy-light);
    border-color: var(--barry-accent);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--barry-silver);
    margin-bottom: 15px;
    transition: var(--transition);
}
.feature-item:hover .feature-icon { color: var(--barry-white); }

.feature-item h4 {
    font-size: 1rem;
    margin-bottom: 10px;
}
.feature-item p {
    font-size: 0.85rem;
    color: var(--barry-text-gray);
    line-height: 1.4;
}
.feature-item:hover p { color: rgba(255,255,255,0.9); }

/* --- CONTACTO --- */
.contact-section { background-color: var(--barry-white); }

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

.contact-form h3 {
    margin-bottom: 30px;
    font-size: 1.5rem;
    color: var(--barry-black);
}

.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--barry-black);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--barry-gray);
    border-left: 3px solid transparent;
}
.form-control:focus {
    outline: none;
    border-left-color: var(--barry-navy);
    background-color: var(--barry-white);
}
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-info {
    background-color: var(--barry-navy);
    color: var(--barry-white);
    padding: 40px;
    height: 100%;
}

.info-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.info-item:last-child { border-bottom: none; }

.info-item h4 {
    color: var(--barry-silver);
    margin-bottom: 10px;
    font-size: 1rem;
}
.info-item p, .info-item a {
    color: var(--barry-text-gray);
    line-height: 1.8;
}
.info-item a:hover { color: var(--barry-white); }
.info-item i {
    margin-right: 10px;
    width: 20px;
    display: inline-block;
}

/* --- FOOTER --- */
footer {
    background-color: var(--barry-navy);
    color: var(--barry-white);
    padding: 60px 0 20px;
    border-top: 5px solid var(--barry-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

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

.footer-brand .logo-image {
    height: 64px;
}
.footer-brand p {
    color: var(--barry-text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--barry-white);
}
.footer-links ul li { margin-bottom: 10px; }
.footer-links ul li a {
    color: var(--barry-text-gray);
    font-size: 0.9rem;
}
.footer-links ul li a:hover {
    color: var(--barry-silver);
    padding-left: 5px;
}

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

.social-links { display: flex; gap: 15px; }
.social-links a {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.social-links a:hover {
    background-color: var(--barry-accent);
    border-color: var(--barry-accent);
    color: white;
}

/* --- RESPONSIVE --- */
@media (max-width: 968px) {
    .top-bar { display: none; }
    header { top: 0; }
    .hero { margin-top: 80px; height: calc(100vh - 80px); }
    .page-hero { margin-top: 80px; }
    .logo-image { height: 48px; }
    .menu-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 80px);
        background-color: var(--barry-navy);
        flex-direction: column;
        padding: 40px;
        transition: var(--transition);
        overflow-y: auto;
    }
    .nav-menu.active { left: 0; }
    .nav-menu > li {
        height: auto;
        margin-bottom: 20px;
    }
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background-color: var(--barry-navy-light);
        box-shadow: none;
        border: none;
        margin-top: 10px;
    }
    .nav-menu > li:hover .dropdown-menu { display: block; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .logo-image { height: 42px; }
    .footer-brand .logo-image { height: 52px; }
    .footer-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 20px;
    }
    .gallery-grid { grid-template-columns: 1fr; }
    .page-hero-content h1 { font-size: 2rem; }
}

/* --- ALERTS --- */
.alert-bar {
    padding: 15px 0;
    margin-top: 116px;
}
.alert-error {
    background: #fff4f4;
    color: #b00020;
}
.alert-warning {
    background: #fff9e6;
    color: #7a4b00;
}
.alert-bar + .page-hero,
.alert-bar + .hero {
    margin-top: 36px;
}

/* --- PAGE HERO (inner pages) --- */
.page-hero {
    margin-top: 116px;
    padding: 100px 0 80px;
    background:
        linear-gradient(rgba(10,20,40,0.55), rgba(10,10,10,0.65)),
        url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920&h=600&fit=crop') no-repeat center center/cover;
    text-align: center;
    color: var(--barry-white);
}

.page-hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.page-hero-content p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 30px;
    color: var(--barry-text-gray);
    font-weight: 300;
}

/* --- RICH TEXT BLOCKS --- */
.text-block {
    max-width: 800px;
    margin: 0 auto;
}

.rich-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #444;
}

.rich-text.text-light {
    color: var(--barry-text-gray);
}

.rich-text p {
    margin-bottom: 1.2em;
}

.rich-text li {
    list-style: none;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5em;
}

.rich-text li::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--barry-accent);
}

.rich-text.text-light li::before {
    color: var(--barry-silver);
}

/* --- CTA BANNER --- */
.cta-banner-section {
    background-color: var(--barry-navy);
    padding: 60px 0;
    text-align: center;
    color: var(--barry-white);
}

.cta-banner-section h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.cta-banner-section p {
    font-size: 1.1rem;
    color: var(--barry-text-gray);
    max-width: 600px;
    margin: 0 auto 30px;
}

/* --- GALLERY --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 3/2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 40, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: var(--barry-white);
    font-size: 2rem;
}

/* --- LIGHTBOX --- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--barry-white);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
}

/* --- EMPTY STATE --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--barry-text-gray);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--barry-silver);
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* --- WHATSAPP FLOAT --- */
/* --- NOSOTROS GALERÍA --- */
.nosotros-galeria-section {
    background-color: var(--barry-gray);
}

.nosotros-galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.nosotros-galeria-item {
    overflow: hidden;
    border: 1px solid #ddd;
    background: #fff;
}

.nosotros-galeria-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
    display: block;
}

.nosotros-galeria-item:hover img {
    transform: scale(1.04);
}

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: var(--barry-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

/* --- GRUAS LISTADO + FICHA --- */
.equipment-specs-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.equipment-mini-specs {
    margin-bottom: 18px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 6px;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.mini-spec-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 8px 9px;
    font-size: 0.82rem;
    color: #1f2937;
    line-height: 1.3;
}

.mini-spec-item span {
    display: block;
    margin-bottom: 3px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #64748b;
}

.ficha-hero {
    background:
        linear-gradient(rgba(10, 20, 40, 0.55), rgba(10, 10, 10, 0.65)),
        url('https://images.unsplash.com/photo-1519003722824-194d4455a60c?w=1920&h=800&fit=crop') no-repeat center center/cover;
}

.ficha-section {
    background-color: var(--barry-gray);
}

.ficha-grid {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 32px;
    align-items: start;
}

.ficha-card {
    background: var(--barry-white);
    border: 1px solid #ddd;
    padding: 22px;
}

.ficha-main-image {
    border: 1px solid #e5e7eb;
    overflow: hidden;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ficha-main-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
}

.ficha-gallery-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.ficha-gallery-grid img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    border: 1px solid #dbe2ea;
    background: #f1f5f9;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.ficha-gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    border-color: var(--barry-primary);
}

/* Lightbox Modal */
.galeria-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.galeria-modal.show {
    display: flex;
}

.galeria-modal-content {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}

.galeria-prev, .galeria-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 4px;
    transition: background 0.2s;
    z-index: 10000;
}

.galeria-prev:hover, .galeria-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.galeria-prev {
    left: 20px;
}

.galeria-next {
    right: 20px;
}

.galeria-close {
    position: absolute;
    top: 20px;
    right: 32px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    z-index: 10000;
}

.galeria-close:hover {
    color: #ddd;
}

.galeria-caption {
    color: white;
    font-size: 14px;
    text-align: center;
    margin-top: 16px;
    font-weight: 500;
}

.ficha-data-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ficha-data-item {
    background-color: #f8fafc;
    border: 1px solid #e5e7eb;
    padding: 10px 12px;
    font-size: 0.92rem;
}

.ficha-data-item span {
    font-family: var(--font-heading);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #475569;
    display: block;
}

.ficha-specs {
    margin-top: 18px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.ficha-specs h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--barry-black);
}

.ficha-specs p {
    color: #334155;
    line-height: 1.7;
}

.ficha-download-wrap {
    margin-top: 18px;
}

.ficha-download-btn {
    border-color: var(--barry-navy);
    color: var(--barry-navy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ficha-download-btn:hover {
    background: var(--barry-navy);
    color: var(--barry-white);
}

.ficha-form-wrap {
    background: var(--barry-navy);
    color: var(--barry-white);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 96px;
}

.ficha-form-wrap h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.ficha-form-wrap p {
    color: var(--barry-text-gray);
    margin-bottom: 18px;
    font-size: 0.94rem;
}

.ficha-form .form-group label {
    color: var(--barry-silver);
}

.ficha-success {
    background: #eaf7ef;
    border: 1px solid #9ad2ac;
    color: #1d5f34;
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}

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

    .ficha-form-wrap {
        position: static;
    }
}

@media (max-width: 576px) {
    .equipment-mini-specs {
        grid-template-columns: 1fr;
    }

    .ficha-data-grid {
        grid-template-columns: 1fr;
    }
}
