/* style.css - Version 2 (Industrial - onyarbi.com style) */

/* 1. CSS Variables & Reset */
:root {
    /* Color Palette V2 - Industrial / Original Onyarbi */
    --primary: #d22; /* Rojo Onyarbi*/
        /* Azul marino profundo (Onyarbi) */
    --secondary: #004499;     /* Azul interactivo */
    --accent: #002D72;
    /*--accent: #D4AF37;* / /*Dorado*/
    /*--accent: #E11931;        /* Rojo de alerta para botones/detalles técnicos */
    --bg-light: #EBECEF;      /* Gris técnico claro */
    --bg-dark: #1A1A1A;       /* Negro/Gris muy oscuro sólido */
    --text-main: #222222;     /* Texto de alto contraste */
    --text-muted: #555555;    /* Texto secundario de manual */
    --white: #FFFFFF;
    
    /* Typography */
    --font-latin: 'Nunito Sans', Sans-serif;
    /*--font-latin: 'Inter', Arial, sans-serif;*/
    --font-arabic: 'Cairo', sans-serif;
    /* Spacing & Utilities */
    --section-padding: 70px 0;
    --container-width: 1140px; /* Bootstrap-like width often used in industrial sites */
    --radius: 20px;            /* Increased for rounded effect */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05); /* Sombra suave de v1 */
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1); /* Sombra suave de v1 */
    --transition: all 0.2s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-latin);
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

/* RTL Support for Arabic */
html[dir="rtl"] body {
    font-family: var(--font-arabic);
    text-align: right;
}

html[dir="rtl"] .fa-arrow-right {
    transform: rotate(180deg);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

svg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
}


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

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--bg-light);
    border-top: 1px solid #d1d5db;
    border-bottom: 1px solid #d1d5db;
}

.bg-dark {
    background-color: var(--bg-dark);
    color: var(--white);
    border-top: 4px solid var(--primary);
}

/* Typography Utilities */
.section-header {
    margin-bottom: 40px;
    text-transform: uppercase;
}

html[dir="rtl"] .section-header {
    text-align: right;
}

.section-header blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

html[dir="rtl"] .section-header blockquote {
    border-left: none;
    border-right: 4px solid var(--primary);
    padding-left: 0;
    padding-right: 15px;
}

.section-header.center blockquote {
    border: none;
    padding: 0;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.title-line {
    width: 80px;
    height: 3px;
    background-color: var(--primary);
    margin: 15px 0 0 0;
}

.section-header.center .title-line {
    margin: 15px auto 0 auto;
}

html[dir="rtl"] .title-line {
    margin: 15px 0 0 auto;
}
html[dir="rtl"] .section-header.center .title-line {
    margin: 15px auto 0 auto;
}

/* Layout Utilities */
.grid {
    display: grid;
    gap: 20px;
}

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

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

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

/* Buttons */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background-color: var(--primary);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 50px;       /* Pill shape for buttons */
    border: 2px solid var(--primary);
    cursor: pointer;
    transition: var(--transition);
}

.cta-btn:hover {
    background-color: var(--white);
    color: var(--accent);
}


/* 2. Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    border-bottom: 3px solid var(--primary);
    z-index: 1000;
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-link {
    display: block;
}

.logo {
    height: 35px;
    width: auto;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-right: 30px;
}

html[dir="rtl"] .main-nav {
    margin-right: 0;
    margin-left: 30px;
    justify-content: flex-end;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-main);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-cta {
    background-color: var(--primary);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 50px;
}

.nav-cta:hover {
    background-color: var(--accent) !important;
}

.lang-switcher {
    display: flex;
    gap: 2px;
}

.lang-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 8px;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}

.lang-btn.active, .lang-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.menu-toggle {
    display: none;
    background: var(--primary);
    border: none;
    width: 40px;
    height: 40px;
    color: var(--white);
    cursor: pointer;
}

/* 3. Hero Section */
.hero {
    position: relative;
    height: 80vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

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

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Darker robust overlay */
}

.hero-content {
    color: var(--white);
    max-width: 700px;
    position: relative;
    z-index: 1;
    border-left: 5px solid var(--primary);
    padding-left: 20px;
}

html[dir="rtl"] .hero-content {
    border-left: none;
    border-right: 5px solid var(--primary);
    padding-left: 0;
    padding-right: 20px;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content p {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* 4. Products Section */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}

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

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-content {
    padding: 20px;
}

.card-content h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 700;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
    min-height: 48px;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
    border: none;
    padding: 0;
    text-transform: none;
}

.card-btn:hover {
    gap: 12px;
    background: transparent;
    color: var(--accent);
    border: none;
}

.card-btn i {
    margin-left: 5px;
}

html[dir="rtl"] .card-btn i {
    margin-left: 0;
    margin-right: 5px;
}

/* 5. Families Section */
.fam-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    transition: var(--transition);
}

.fam-card:hover {
    border-color: var(--primary);
}

.fam-icon {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 15px;
    transition: var(--transition);
}

.fam-card:hover .fam-icon {
    color: var(--primary);
}

.fam-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: var(--primary);
}

.fam-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 6. Strengths Section */
.strengths-section {
    position: relative;
    overflow: hidden;
}

/* Stripe effect typical in industrial sites */
.strengths-section::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: repeating-linear-gradient(
        45deg,
        rgba(0,0,0,0.02),
        rgba(0,0,0,0.02) 10px,
        transparent 10px,
        transparent 20px
    );
    z-index: 0;
    pointer-events: none;
}

.strengths-grid {
    position: relative;
    z-index: 1;
    text-align: center;
}

.strength-item {
    padding: 20px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

html[dir="rtl"] .strength-item {
    border-left: none;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.strength-item:first-child {
    border: none;
}

.strength-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.strength-item h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: var(--white);
}

.strength-item p {
    color: #b0b0b0;
    font-size: 0.9rem;
}

/* 7. About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-main);
}

.stats-row {
    display: flex;
    gap: 30px;
    margin-top: 30px;
    padding: 20px;
    background: var(--bg-light);
    border-left: 4px solid var(--primary);
}

html[dir="rtl"] .stats-row {
    border-left: none;
    border-right: 4px solid var(--primary);
}

.stat-box {
    flex: 1;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.about-image {
    position: relative;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
   /* border: 3px solid var(--primary);*/
    z-index: -1;
}

html[dir="rtl"] .about-image::after {
    left: auto;
    right: 20px;
}

.about-image img {
    border-radius: var(--radius);
    border: 5px solid var(--white);
    box-shadow: var(--shadow-md);
}

/* 8. Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.contact-info {
    padding: 50px;
    background: var(--primary);
    color: var(--white);
    border: none;
}

.contact-info h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.contact-info > p {
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.contact-details i {
    font-size: 1.2rem;
    color: var(--white);
    margin-top: 5px;
}

.contact-form-box {
    padding: 50px;
    background: var(--white);
    border: none;
}

.form-group {
    margin-bottom: 15px;
}

.input-box {
    display: flex;
    flex-direction: column;
}

.input-box label {
    margin-bottom: 5px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
}

.input-box input,
.input-box textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
}

.input-box input:focus,
.input-box textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 48, 135, 0.1);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

.form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--radius);
    display: none;
    font-weight: 500;
    text-align: center;
}

.success-msg {
    background-color: #f0fdf4;
    color: #166534;
    border-color: #166534;
}

.error-msg {
    background-color: #fef2f2;
    color: #991b1b;
    border-color: #991b1b;
}

/* 9. Footer */
.footer {
    background-color: #111111;
    color: #888;
    padding: 50px 0 20px;
    border-top: 5px solid var(--primary);
}

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

.cert-icons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.cert-small {
    width: 5em;
    /*height: 30px;*/
}

.footer-cert {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Blanco como las redes sociales */
    transition: var(--transition);
    border-radius: 4px;
}

.footer-cert:hover {
    filter: brightness(0) invert(0) hue-rotate(0deg) saturate(2); /* Rojo al hover */
    transform: scale(1.1);
}

.footer-logo {
    height: 35px;
    margin-bottom: 15px;
    filter: brightness(0) invert(1);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.links-col ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.links-col a {
    font-size: 0.9rem;
}

.links-col a:hover {
    color: var(--primary);
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #222;
    color: var(--white);
}

.social-icons a:hover {
    background: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.8rem;
    text-transform: uppercase;
}

/* 10. Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    right: 20px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    z-index: 1000;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: translateY(-50%) scale(1.1);
}

html[dir="rtl"] .floating-wa {
    right: auto;
    left: 20px;
}

html[dir="rtl"] .floating-wa {
    right: auto;
    left: 20px;
}

.floating-wa:hover {
    background-color: #128C7E;
}

.wa-tooltip {
    display: none; /* Simplify for industrial look */
}

/* 11. Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.animate-on-scroll.form-right {
    transform: translateX(20px);
}

html[dir="rtl"] .animate-on-scroll.form-right {
    transform: translateX(-20px);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translate(0);
}

/* 12. Responsive Design */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-wrapper { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 768px) {
    .grid-3 { grid-template-columns: 1fr; }
    
    .menu-toggle { display: block; }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--primary);
        padding: 15px;
    }

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

    .nav-links {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links a {
        color: var(--white);
    }
    
    .hero-content h1 { font-size: 2.2rem; }
    
    .strength-item { border: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    .grid-4, .grid-2-col { grid-template-columns: 1fr; }
    
    .hero-content h1 { font-size: 1.8rem; }
    .section-header h2 { font-size: 1.6rem; }
    
    .stats-row { flex-direction: column; text-align: center; }
}
