/* Global Styles */
:root {
    --primary-color: #004953; /* Dark Teal for header */
    --secondary-color: #a80027; /* Red for CTAs and some highlights */
    --green-accent: #00716a; /* Green for scroll bar */
    --text-color-dark: #333;
    --text-color-light: #fff;
    --light-gray-bg: #F0F2F5; /* Background for parts of form, etc. */
    --medium-gray-bg: #4A4A4A; /* Used in previous version, check if needed */
    --dark-footer-bg: #212529; /* New footer background */
    --very-light-gray-bg: #F8F9FA; /* Background for company features, unimotion section */
    --border-color: #ddd;
    --font-family: 'Arial', sans-serif; /* Generic sans-serif stack */
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color-dark);
    background-color: #fff;
}

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

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

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

ul {
    list-style: none;
}

.sr-only { /* For accessibility, hide labels visually but keep for screen readers */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-title { 
    text-align: center;
    font-size: 1.8rem;
    color: var(--green-accent);
    margin: 0 0 30px 0;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    font-weight: initial;
    text-transform: uppercase;
}

.section-title:before,
.section-title:after {
    content: '';
    flex: 1;
    height: 2px;
    background-color: var(--green-accent);
    margin: 0 20px;
}

/* Estilos para reCAPTCHA */
.g-recaptcha {
    display: flex;
    justify-content: right;
    margin: 20px 0;
    width: auto;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    .section-title:before,
    .section-title:after {
        margin: 0 10px;
    }
    .g-recaptcha {
        display: flex;
        justify-content: center;
        margin: 20px 0;
        width: auto;
    }
}

/* Header (Mostly same as V1) */
header {
    
    color: var(--text-color-light);
    padding: 1rem 0;
    
    top: 0;
    z-index: 1000;
}
.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 15px 0; /* Añade un poco de espacio vertical */
    position: relative;
}

/* Header right section */
.header-right-section {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.social-icons-header {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: var(--green-accent); /* Green for scroll bar */
    padding: 5px 15px;
    border-radius: 4px;
    margin-right: 15px;
}

.social-icons-header a {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.social-icons-header a:hover {
    opacity: 0.8;
}

.social-icons-header img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}



/* Language Switcher */
.language-switcher {
    margin-left: 10px;
    position: relative;
}

.language-selector {
    position: relative;
    display: inline-block;
}

.language-selected {
    display: flex;
    align-items: center;
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    min-width: 60px;
}

.language-selected .dropdown-arrow {
    margin-left: 8px;
    font-size: 0.7em;
    color: #666;
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 140px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
    margin-top: 5px;
}

.language-selector.active .language-dropdown {
    display: block;
}

.language-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option.active {
    background-color: #f0f0f0;
    font-weight: bold;
}

.language-flag {
    margin-right: 8px;
    font-size: 1.1em;
}


.language-link {
    display: inline-flex;
    align-items: center;
    color: #000;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.language-link:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
}

.language-flag {
    margin-right: 6px;
    font-size: 1.1em;
}

.logo { 
    max-height: 60px; /* Controla el tamaño del logo */
    width: auto; /* Mantiene la proporción */
}
header nav ul { display: flex; }
header nav ul li { margin-left: 20px; }
header nav ul li a { color: var(--text-color-light); font-size: 0.9rem; padding: 5px 0; transition: color 0.3s ease; }
header nav ul li a:hover { border-bottom: 2px solid var(--text-color-light); }
.header-right { display: flex; align-items: center; }
.search-bar { display: flex; align-items: center; margin-right: 15px; border: 1px solid #7FA9B0; border-radius: 3px; }
.search-bar input { background: transparent; border: none; color: white; padding: 5px; width: 100px; }
.search-bar input::placeholder { color: #ccc; }
.search-bar button { background: transparent; border: none; cursor: pointer; padding: 5px; }
.search-bar button img { height: 16px; filter: invert(1); }
.config-link { font-size: 0.8rem; color: #A0D2DB; margin-right: 15px; }
.settings-btn { background: transparent; border: none; cursor: pointer; }
.settings-btn img { height: 20px; filter: invert(1); }
.mobile-menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.5rem; cursor: pointer; }

/* Hero Section - Updated */
.hero { 
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1200px; /* Mismo ancho máximo que el contenedor principal */
}

.hero-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
    text-align: left;
    box-sizing: border-box;
}

.hero-cta {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 15px 30px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    white-space: nowrap;
}

.hero-cta:hover {
    background-color: #b32025;
}

.hero-image-content {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-image-content img {
    width: 100%;
    height: auto;
    display: block;
}
.hero-text-content p { font-size: 1.1rem; margin-bottom: 25px; color: #555; }
.cta-button { display: inline-block; background-color: var(--secondary-color); color: var(--text-color-light); padding: 12px 25px; font-size: 1rem; font-weight: bold; border-radius: 5px; text-align: center; transition: background-color 0.3s ease; border-color: var(--secondary-color); }
.cta-button:hover { background-color: #b02a2f; /* Darken red */ }
.cta-button span { margin-left: 8px; }
.hero-image-content { flex: 1.2; }
.hero-image-content img { width: 100%; object-fit: cover; }

/* Scroll Indicator Bar - NEW */
.scroll-indicator-bar {
    background-color: var(--green-accent);
    padding: 10px 0;
    text-align: center;
    margin: 0 auto;
    max-width: 1200px;
}
.scroll-arrow {
    font-size: 1.5rem;
    color: white;
    display: block;
    margin: 0 auto;
    text-align: center;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Brands Section (Mostly same as V1) */
.brands { padding: 40px 0; background-color: #fff; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.brand-item {  padding: 20px; text-align: center; background-color: #fff; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.brand-logo { height: auto; object-fit: contain; margin: 0 auto 15px auto; }
.product-image { width: 100%;  object-fit: contain; margin-bottom: 15px; }
.product-title { 
    
    
    margin-bottom: 5px; 
    min-height: 2.5em; 
    
    color: #7d7d7f;
    display: block;
    font-size: 14px;
    line-height: 16px;
    text-transform: uppercase;
}

.info-link {
    display: inline-block;
    background-color: #d3d3d3; /* Fondo gris */
    color: white; /* Texto blanco */
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 5px 15px;
    margin-top: 10px;
    border-radius: 0 0 10px 10px; /* Bordes inferiores redondeados */
    transition: all 0.3s ease;
}

.info-link:hover {
    background-color: var(--primary-color); /* Gris un poco más oscuro al pasar el ratón */
    text-decoration: none;
}
.novidade-badge { margin-top:110px; position: absolute; top: 0px; right: 0px; background-color: var(--secondary-color); color: var(--text-color-light); padding: 3px 8px; font-size: 15px; font-weight: bold; }

.atencion-perso{
    font-size: 20px!important;
    
}

/* Contact Form Section V2 - UPDATED */
.contact-form-section-v2 {
    padding-bottom: 40px; /* No top padding, header bar covers it */
    background-color: var(--light-gray-bg);
}
.contact-form-header-bar {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 20px 0;
    margin-bottom: 30px;
}
.contact-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.contact-header-content h2 {
    font-size: 1.5rem;
    margin: 0;
}
.contact-header-content p {
    font-size: 0.9rem;
    margin: 0;
}

.form-parameters-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.form-parameters-v2 .form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.9rem;
    
}

.form-main-columns-v1,
.form-main-columns-v2 {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    width: 100%;
}

.form-main-columns-v1 {
    flex-direction: column;
}

.form-column-v1,
.form-column-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.form-column-v2 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.form-column-heading {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-color-dark);
    margin-bottom: 10px;
}
.form-main-columns-v2 .form-group input{
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 12px;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}

.form-main-columns-v1 .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box; /* Asegura que el padding no afecte el ancho total */
}
.form-submit-v2 {
    text-align: right;
}

/* Company Info & Features Section - MODIFIED/COMBINED */
.company-info-features {
    padding: 40px 0;
    
}

.company-statement {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    background-color: #fff; /* White background as per image */
    padding: 20px;
    
}
.logo-company-info {
    height: 60px; /* Altura fija para mantener consistencia */
    width: auto; /* Mantiene la proporción de la imagen */
    
    object-fit: contain;
    align-self: center; /* Asegura la alineación vertical */
}
.company-statement p {
    margin: 0; /* Elimina cualquier margen que pueda afectar la alineación */
    flex: 1; /* Hace que el párrafo ocupe el espacio restante */
    text-align: left;
    font-size: 20px;
    color: #555;
}
.features-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    justify-items: center;
}
.feature-icon-item {
    text-align: center;
}
.feature-icon-item img {
    height: 70px;
    margin: 0 auto 10px auto;
}
.feature-icon-item span {
    font-size: 16px;
    color: #555;
}

.vertical-align{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.peticion-form{
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 0 15px;
    text-align: center;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.peticion-form a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

/* Unimotion Showcase Section - NEW */
.products-showcase {
    padding: 40px 0;
    
}
.products-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}
.products-section-logo {
    height: 80px; /* Adjust */
}
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

/* Asegurar que el grid tenga un ancho máximo para pantallas grandes */
@media (min-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}
.product-product-item {
    border-radius: 4px;
    padding: 15px;
    text-align: center;
    background-color: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.3s ease;

}

.product-product-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.product-image-container {
    padding: 10px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}
.product-item-title-container{
    min-height: 87px;
    height: 70px;
}

.unimotion-product-item img {
    max-width: 100%;
   
    object-fit: contain;
}
.product-item-content {
    text-align: center;
    margin-top: 0;
    padding-top: 10px;
}

.product-subtitle {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 400;
    text-align: center;
}

.product-item-title {
    font-size: 1rem;
    color: #333;
    margin: 0 0 2px 0;
    line-height: 1.2;
    text-align: center;
    font-weight: normal;
    text-transform: uppercase;
}

.product-item-subtitle {
    font-size: 12px;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 400;
    text-align: center;
}
.product-item-docs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid var(--green-accent);
}

.doc-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.doc-link {
    width: 30px;
    height: 30px;
    text-indent: -9999px;
    display: block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 5px;
}

.doc-link.pdf {
    background-image: url('./img/pdf_verde.png');
}

.doc-link.cad {
    background-image: url('./img/cad_verde.png');
}

.doc-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Badge styles */
.products-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 1;
}

.products-badge.novidade {
    background-color: #e74c3c;
    color: white;
}

.products-badge.movidad {
    background-color: #3498db;
    color: white;
}
.product-specs span {
    /* Add icons here using ::before or inline SVGs/images if available */
}
.product-badge {
    position: absolute;
    top: 0;
    left: 0; /* Or right: 0; depending on design */
    background-color: var(--secondary-color);
    color: var(--text-color-light);
    padding: 3px 8px;
    font-size: 0.7rem;
    font-weight: bold;
}
.product-badge.novidade { /* Specific if needed */ }
.product-badge.movidad { /* Typo from image, assuming same style */ }

.products-cta-container {
    text-align: center; /* Or right as in image */
    margin-top: 20px;
    margin-bottom: 70px;
}
.products-cta {
    /* CTA button styles are already defined, can add specifics */
    padding: 10px 20px;
}


/* Site Footer - NEW / OVERHAULED */
.site-footer {
    background-color: #005F51;
    color: #fff; /* Lighter gray text for footer */
    padding: 40px 0;
    font-size: 0.9rem;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}
.footer-logo {

    margin-bottom: 15px;
}
.office-hours{
    font-weight: lighter;
    text-align: center;
    line-height: 28px;
    width: 400px;
}

.office-hours h4{
    font-weight: bold;
    font-size: 18px;
}

.office-hours p {
    margin-bottom: 0px;
    font-size: 18px;
}
.footer-links h4, .footer-contact h4 {
    color: var(--text-color-light);
    font-size: 1.1rem;
    margin-bottom: 15px;
}
.footer-links ul li {
    margin-bottom: 8px;
}
.footer-links ul li a {
    color: #adb5bd;
    transition: color 0.3s ease;
}
.footer-links ul li a:hover {
    color: var(--text-color-light);
}
.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 18px;
}
.contact-icon {
    height: 28px;
    margin-right: 8px;
    
}
.social-icons a {
    margin-right: 10px;
    display: inline-block;
}
.social-icons img {
    height: 28px;
    transition: opacity 0.3s ease;
}
.social-icons a:hover img {
    opacity: 0.8;
}
.redes{
    width: 200px;
    margin-left: auto;
    margin-right: 0;
    text-align: left;
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .redes {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .redes .social-icons {
        justify-content: center;
    }
}


/* Hide social icons on mobile */
@media (max-width: 768px) {
    .social-icons-header {
        display: none;
    }
    .products-grid{
        gap: 40px;
    }
    .product-item-title-container{
        min-height: 10px;
        height: auto;
    }
    
}

/* Responsive Design Adjustments (Add to V1 styles or integrate) */
@media (max-width: 992px) {
    /* Header mobile menu (from V1) */
    header nav { display: none; width: 100%; order: 3; margin-top: 10px; }
    header nav.active { display: block; }
    header nav ul { flex-direction: column; }
    header nav ul li { margin-left: 0; text-align: center; padding: 8px 0; border-bottom: 1px solid #4A7C85; }
    header nav ul li:last-child { border-bottom: none; }
    .mobile-menu-toggle { display: block; order: 2; }
    .header-right { order: 1; flex-grow: 1; justify-content: flex-end; }
    .logo { order: 0; }

    .hero-container { flex-direction: column; text-align: center; }
    .hero-text-content { border-right: none; border-bottom: 1px solid var(--border-color); }
    .hero-text-content h1 { font-size: 1.8rem; }

    .contact-header-content { flex-direction: column; text-align: center; gap: 10px; }
    .form-main-columns-v2 { flex-direction: column; }
    .form-submit-v2 { text-align: center; }
    .form-submit-v2 .cta-button { width: 100%; max-width: 300px; height: 50px;
        font-size: 20px; }

    .company-statement { flex-direction: column; text-align: center; }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust for footer columns */
        text-align: center; /* Center content in footer columns on smaller screens */
    }
    .footer-column {
        margin-bottom: 20px;
    }
    .social-icons {
        justify-content: center;
        display: flex;
    }
    .contact-icon {
       
    }
    .office-hours-time {
        font-weight: bold;
    }
     .footer-contact p {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .brand-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .product-title { font-size: 0.85rem; }
    .form-parameters-v2 { grid-template-columns: 1fr 1fr; }
    
    .features-icons-grid { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); } /* 2-3 items per row */
    .unimotion-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    
    .search-bar input { width: 70px; }
    .header-right .config-link { display: none; }
    .company-info-features { text-align: center; } /* Center align feature items container */
    .feature-icon-item { margin: 0 auto; } /* Center individual feature items */

    .footer-container {
        grid-template-columns: 1fr; /* Stack footer columns */
        text-align: center;
    }
    .footer-column:not(:last-child) {
        margin-bottom: 0px;
    }
    .footer-logo-hours .footer-logo, .footer-column h4 {
        margin-left: auto;
        margin-right: auto;
    }
    .footer-links{
        display: none;
    }
    .office-hours{
        text-align: center;
        width: auto;
    }
    .product-image {
        width: 70%;
    }
    .hero-content {
        bottom: 9px;
        left: 7px;
            
    }

    .brand-item img{
        text-align: center;
        margin: 0 auto 15px auto;
    }
    .section-title{
        background-color: var(--green-accent);
        color: var(--text-color-light);
    }
}

@media (max-width: 480px) {
    .hero-text-content h1 { font-size: 1.6rem; }
    .hero-text-content p { font-size: 1rem; }
    .cta-button { font-size: 11px; padding: 5px 6px; }
    
    .brand-grid { grid-template-columns: 1fr; }
    .form-parameters-v2 { grid-template-columns: 1fr; }
    
    .features-icons-grid { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; }
    .feature-icon-item span { font-size: 0.75rem;}

    .unimotion-grid { grid-template-columns: 1fr; }
    .contact-header-content h2 { font-size: 1.3rem;}
    .contact-header-content p { font-size: 0.8rem;}
}