/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colores corporativos RELESA - Rojo corporativo */
    --primary-color: #fc3441;
    --secondary-color: #d32f39;
    --accent-color: #ff5a68;
    --text-color: #2c3e50;
    --text-light: #5a6c7d;
    --bg-light: #fef7f7;
    --white: #ffffff;
    --border-color: #e8d4d6;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(252, 52, 65, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-color);
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page sections padding */
.products-page,
.categories-page,
.product-detail,
.cities-page {
    padding: 30px 0 80px;
}

/* Breadcrumb styles */
.breadcrumb {
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

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

.breadcrumb span {
    margin: 0 0.5rem;
    color: var(--text-light);
}

.breadcrumb .current {
    color: var(--text-color);
    font-weight: 500;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Top Bar */
.top-bar {
    width: 100%;
    background: #333333;
    border-bottom: none;
    position: relative;
    z-index: 1001;
}

.top-bar .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 !important;
}

.top-bar-inner {
    width: 100%;
    padding: 0 !important;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.catalogue-link {
    background: #f0384b;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem;
    border-radius: 0;
    text-transform: uppercase;
    gap: 0.5rem;
    margin-left: 0;
    margin-right: 0;
}

.catalogue-link:hover {
    background: #d32f39;
    color: #ffffff;
    text-decoration: none;
}

.catalogue-link::before {
    content: '↓';
    font-size: 0.9rem;
    display: inline-block;
    line-height: 1;
    margin-right: 0.25rem;
}

/* Language Dropdown */
.language-switcher-dropdown {
    position: relative;
    margin-right: 0;
    padding: 0.5rem 1rem;
}

.language-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: opacity 0.3s ease;
    font-family: inherit;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

.language-dropdown-toggle:hover {
    opacity: 0.8;
}

.language-dropdown-toggle svg {
    transition: transform 0.3s;
}

.language-switcher-dropdown.active .language-dropdown-toggle svg {
    transform: rotate(180deg);
}

.language-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    border: 1px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 60px;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1002;
}

.language-switcher-dropdown.active .language-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s;
    text-align: center;
}

.lang-option:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.lang-option.active {
    background: var(--primary-color);
    color: var(--white);
}

.lang-option.active:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(252, 52, 65, 0.1);
    width: 100%;
}

.header .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.header-inner {
    width: 100%;
    padding: 0 40px;
}

.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Header interno para páginas que no son home */
.header-internal {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.4) 100%), url('/assets/images/section-head-about-us.jpg') center center/cover no-repeat;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    width: 100%;
}

.header-internal .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.header-internal .header-inner {
    width: 100%;
    padding: 0 40px;
}

.header-internal .logo-img {
    filter: brightness(0) invert(1);
}

/* Prevent logo from flipping in RTL even with filter */
html[dir="rtl"] .header-internal .logo-img {
    transform: none;
}

.header-internal .nav-menu a {
    color: rgba(255, 255, 255, 0.7);
}

.header-internal .nav-menu a:hover,
.header-internal .nav-menu a.active {
    color: #ffffff;
}

.header-internal .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transition: background 0.3s ease;
}

.header-internal .nav-menu a:hover::after,
.header-internal .nav-menu a.active::after {
    background: #ffffff;
}

.header-internal .lang-btn {
    border-color: var(--white);
    color: var(--white);
}

.header-internal .lang-btn.active {
    background: var(--white);
    color: var(--primary-color);
}

.header-internal .lang-btn:hover {
    background: var(--white);
    color: var(--primary-color);
}

.header-internal .top-bar {
    background: #333333;
    border-bottom: none;
}

.header-internal .catalogue-link {
    background: #f0384b;
    color: #ffffff;
}

.header-internal .catalogue-link:hover {
    background: #d32f39;
    color: #ffffff;
}

.header-internal .language-dropdown-toggle {
    color: #ffffff;
}

.header-internal .language-dropdown-toggle:hover {
    opacity: 0.8;
}

.header-internal .language-dropdown-menu {
    background: rgba(0, 0, 0, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.header-internal .lang-option {
    color: var(--white);
}

.header-internal .lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.header-internal .lang-option.active {
    background: var(--white);
    color: var(--primary-color);
}

.header-internal .mobile-menu-toggle span {
    background: var(--white);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
}

.header-content .nav {
    margin-left: auto;
}

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

.logo a {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.3s;
}

.logo a:hover {
    opacity: 0.9;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    max-width: 100%;
}

/* Prevent logo from flipping in RTL */
html[dir="rtl"] .logo,
html[dir="rtl"] .logo a,
html[dir="rtl"] .logo-img {
    direction: ltr !important;
    transform: none !important;
}

.logo-img text {
    font-family: 'Montserrat', 'Arial', 'Helvetica', sans-serif !important;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: #999999;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    position: relative;
    text-transform: uppercase;
    padding: 0.5rem 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #333333;
    text-decoration: none;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 2px;
    background: #999999;
    transition: background 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    background: #333333;
}

/* Legacy language switcher - kept for compatibility */
.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    padding: 0.6rem 1.2rem;
    border: 1.5px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    border-radius: 0;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.5px;
}

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s;
}

.mobile-menu-toggle:hover {
    opacity: 0.8;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.header-internal .mobile-menu-toggle span {
    background: var(--white);
}

/* Hero Section */
.hero {
    background: url('../images/home-banner.jpg') center center/cover no-repeat;
    color: var(--white);
    padding: 160px 0;
    text-align: left;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
    padding: 0 40px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0;
    width: 100%;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.hero p {
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 1;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    color: var(--white);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.1rem 2.5rem;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(252, 52, 65, 0.3);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(252, 52, 65, 0.4);
}

.btn-outline {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 16, 239, 0.3);
}

/* Section Styles */
.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 4rem;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

/* Products Section */
.products {
    padding: 100px 0;
    background: var(--bg-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(252, 52, 65, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(252, 52, 65, 0.15);
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.category-card {
    background: var(--white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(252, 52, 65, 0.05);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(252, 52, 65, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 2.5rem;
}

.product-content h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.product-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.product-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.product-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-color);
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--white);
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 1.75rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.advantage-item {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(252, 52, 65, 0.05);
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(252, 52, 65, 0.1);
}

.advantage-item h4 {
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.advantage-item p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Video Section */
.video-section-fullwidth {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
}

.video-container {
    position: relative;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #000;
    overflow: hidden;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 40.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    margin: 0;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    display: block;
    margin: 0;
    padding: 0;
}

.video-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.05) 100%);
    opacity: 0.2;
    z-index: 2;
}

.custom-play-button {
    position: relative;
    z-index: 3;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    outline: none;
}

.custom-play-button:hover {
    transform: scale(1.1);
}

.custom-play-button:active {
    transform: scale(0.95);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    z-index: 10;
    display: none;
}

.video-wrapper.playing .video-placeholder {
    display: none;
}

.video-wrapper.playing iframe {
    display: block;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item h4 {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.contact-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 0;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(252, 52, 65, 0.1);
}


.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1a1a1a 0%, #0f0f0f 100%);
    color: var(--white);
    padding: 4rem 0 0;
    border-top: 3px solid var(--primary-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(252, 52, 65, 0.4), transparent);
    opacity: 0.8;
}

.footer .container {
    max-width: 1200px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-transform: uppercase;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    font-size: 0.9rem;
    margin: 0;
    max-width: 320px;
}

.footer-social {
    margin-top: 1.5rem;
    display: flex;
    gap: 0.75rem;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    padding-bottom: 0.6rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary-color);
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a::before {
    content: '→';
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-weight: 600;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 0.4rem;
}

.footer-links a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-contact .contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-contact .contact-item:last-child {
    margin-bottom: 0;
}

.footer-contact .contact-icon {
    flex-shrink: 0;
    opacity: 0.85;
    margin-top: 2px;
    color: var(--primary-color);
}

.footer-contact .contact-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contact .contact-link:hover {
    color: var(--primary-color);
}

.footer-bottom {
    padding: 1.75rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

.footer-copyright {
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    color: var(--white);
}

/* RTL Support for Arabic */
html[dir="rtl"] {
    direction: rtl;
}

html[dir="rtl"] .nav-menu,
html[dir="rtl"] .contact-content,
html[dir="rtl"] .footer-content {
    direction: rtl;
}

/* Ensure header-content stays ltr for proper logo alignment, but nav-menu can be rtl */
html[dir="rtl"] .header-content {
    direction: ltr;
}

/* RTL support for top bar */
html[dir="rtl"] .top-bar-content {
    justify-content: flex-start;
}

html[dir="rtl"] .language-dropdown-menu {
    right: auto;
    left: 0;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .container {
        max-width: 100%;
        padding: 0 40px;
    }

    .top-bar .container,
    .header .container,
    .header-internal .container {
        padding: 0;
    }

    .header-inner,
    .header-internal .header-inner {
        padding: 0 40px;
    }
    
    .top-bar-inner {
        padding: 0;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 100%;
        padding: 0 30px;
    }

    .top-bar .container,
    .header .container,
    .header-internal .container {
        padding: 0;
    }

    .header-inner,
    .header-internal .header-inner {
        padding: 0 30px;
    }
    
    .top-bar-inner {
        padding: 0;
    }
    
    .products-grid,
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .product-content {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    .container {
        padding: 0 25px;
    }

    .top-bar .container,
    .header .container,
    .header-internal .container {
        padding: 0;
    }

    .header-inner,
    .header-internal .header-inner {
        padding: 0 25px;
    }
    
    .top-bar-inner {
        padding: 0;
    }
    
    .header-content {
        gap: 2rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2.5rem !important;
    }
    
    .footer-company {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        width: 100%;
        max-width: 100vw;
    }
    
    .container {
        padding: 0 20px;
        max-width: 100%;
        width: 100%;
    }

    .top-bar {
        padding: 0 !important;
    }

    .top-bar .container {
        padding: 0 !important;
    }

    .top-bar-inner {
        padding: 0 !important;
        gap: 0.5rem;
    }
    
    .language-switcher-dropdown {
        padding: 0.4rem 0;
    }

    .top-bar-content {
        gap: 1rem;
        font-size: 0.8rem;
    }

    .catalogue-link {
        font-size: 0.8rem;
    }

    .language-dropdown-toggle {
        font-size: 0.8rem;
    }

    .header {
        padding: 0.875rem 0;
        width: 100%;
        max-width: 100vw;
    }

    .header .container {
        padding: 0;
    }

    .header-inner {
        padding: 0 20px;
    }

    .header-internal .container {
        padding: 0;
    }

    .header-internal .header-inner {
        padding: 0 20px;
    }
    
    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        flex-wrap: nowrap;
    }
    
    .logo {
        flex-shrink: 0;
        order: 1;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo h1 {
        font-size: 1.4rem;
    }

    .nav {
        position: static;
        display: block;
        visibility: visible;
    }
    
    .nav-menu {
        position: fixed !important;
        top: 56px !important;
        left: -100% !important;
        right: auto !important;
        flex-direction: column;
        background: var(--white) !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 1rem 0;
        box-shadow: 2px 0 20px rgba(0, 0, 0, 0.2);
        transition: left 0.3s ease-in-out, right 0.3s ease-in-out;
        gap: 0;
        z-index: 100001 !important;
        height: calc(100vh - 56px);
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        overflow-x: hidden;
        margin: 0 !important;
        list-style: none;
        border-top: 1px solid var(--border-color);
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
    
    .nav-menu li {
        width: 100%;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid var(--border-color);
        box-sizing: border-box;
        display: block;
        pointer-events: auto !important;
    }
    
    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-menu a {
        display: block;
        padding: 1.25rem 1.5rem;
        width: 100%;
        font-size: 1rem;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        position: relative;
        box-sizing: border-box;
        text-align: left;
        pointer-events: auto !important;
        cursor: pointer;
        color: #1a1a1a !important;
        text-decoration: none;
    }
    
    html[dir="rtl"] .nav-menu a {
        text-align: right;
    }
    
    .nav-menu a::after {
        display: none;
    }
    
    .nav-menu a:hover {
        background: var(--bg-light);
        color: var(--primary-color);
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .product-detail-grid .product-image-wrapper {
        order: 1;
    }
    
    .product-detail-grid .product-info {
        order: 2;
        position: relative !important;
        top: 0 !important;
    }

    .header-internal .nav-menu {
        background: rgba(0, 0, 0, 0.98) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .header-internal .nav-menu li {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    
    .header-internal .nav-menu li:last-child {
        border-bottom: none;
    }
    
    .header-internal .nav-menu a {
        color: var(--white) !important;
    }
    
    .header-internal .nav-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white) !important;
    }

    .nav-menu.active {
        left: 0 !important;
        right: auto !important;
    }
    
    /* Prevenir scroll cuando el menú está abierto */
    body.menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
    
    /* Overlay cuando el menú está abierto - debe estar DETRÁS del menú */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 100000 !important;
        pointer-events: none;
    }
    
    body.menu-open .menu-overlay {
        display: block;
    }
    
    html[dir="rtl"] .nav-menu {
        left: auto !important;
        right: -100% !important;
    }
    
    html[dir="rtl"] .nav-menu.active {
        right: 0 !important;
        left: auto !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        order: 3;
        flex-shrink: 0;
        z-index: 100002 !important;
        position: relative;
        margin: 0;
        align-self: center;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .language-switcher {
        order: 2;
        margin-left: auto;
        margin-right: 0.75rem;
        flex-shrink: 0;
    }
    
    html[dir="rtl"] .language-switcher {
        margin-left: 0.75rem;
        margin-right: auto;
    }
    
    .video-section-fullwidth .video-container {
        padding: 0;
    }

    .hero {
        padding: 80px 0;
        min-height: 400px;
    }

    .hero .container {
        padding: 0 30px;
    }

    .hero h1 {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1.15rem;
        margin-bottom: 2rem;
    }
    
    .hero .btn {
        padding: 1rem 2rem;
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .products-grid,
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .products-grid .product-card,
    .categories-grid .category-card {
        max-width: 100%;
    }

    .advantages {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .advantage-item {
        padding: 2rem;
    }

    .products,
    .about,
    .contact,
    .cities-page {
        padding: 60px 0;
    }
    
    .product-content {
        padding: 1.5rem;
    }
    
    .product-content h3 {
        font-size: 1.35rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .product-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .product-detail-grid .product-info {
        position: relative !important;
        top: 0 !important;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 1.5rem !important;
    }
    
    .breadcrumb a,
    .breadcrumb span {
        font-size: 0.85rem !important;
    }
    
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
        text-align: left !important;
    }
    
    .footer-section {
        margin-bottom: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 0.5rem 1rem;
    }
    
    .footer-legal a {
        margin: 0;
    }
    
    /* Products page mobile */
    .products-page {
        padding: 20px 0 60px !important;
    }
    
    /* Categories page mobile */
    .categories-page {
        padding: 20px 0 60px !important;
    }
    
    /* Home page mobile improvements */
    .hero {
        padding: 60px 0 !important;
        min-height: 350px !important;
    }

    .hero .container {
        padding: 0 20px !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }
}

/* Cities Page Specific Styles */
.city-card {
    position: relative;
    overflow: hidden;
}

.city-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 12px 40px rgba(252, 52, 65, 0.25) !important;
}

.city-card:hover .city-content > div > span:last-child {
    transform: translateX(8px);
}

.city-card:hover > div:last-child {
    opacity: 1 !important;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 35px rgba(252, 52, 65, 0.2) !important;
}

/* City Hero with Background */
.city-hero {
    position: relative;
}

.city-hero .container {
    text-align: left !important;
}

.city-hero .breadcrumb {
    text-align: left !important;
}

.city-hero h1 {
    text-align: left !important;
}

.city-hero p {
    text-align: left !important;
}

.city-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

@media (max-width: 992px) {
    .city-hero {
        padding: 60px 0 80px !important;
        min-height: 400px !important;
        background-attachment: scroll !important;
        align-items: flex-end !important;
    }
    
    .city-hero > .container > div {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .city-hero h1 {
        font-size: 3rem !important;
        margin-bottom: 0.5rem !important;
        padding-left: 1.5rem !important;
        border-left-width: 4px !important;
    }
    
    .city-hero p {
        font-size: 1.1rem !important;
        margin-bottom: 0 !important;
    }
    
    .city-hero .btn {
        padding: 0.9rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .city-hero > .container > div > div:last-child {
        justify-content: flex-start !important;
    }
    
    .city-description {
        padding: 2.5rem !important;
        margin-bottom: 3rem !important;
    }
    
    .city-description h2 {
        font-size: 2rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .city-description-text {
        columns: 1 !important;
        font-size: 1.05rem !important;
    }
    
    .map-section {
        padding: 2rem !important;
        margin-bottom: 3rem !important;
    }
    
    .map-section h2 {
        font-size: 1.75rem !important;
    }
    
    .map-section iframe {
        height: 400px !important;
    }
    
    .categories-section {
        margin-bottom: 3rem !important;
    }
    
    .categories-section h2 {
        font-size: 2rem !important;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 2rem !important;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
        gap: 2rem !important;
    }
    
    .service-card {
        padding: 2rem !important;
    }
    
    .benefits-section {
        padding: 3rem 2rem !important;
    }
    
    .benefits-section > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .city-hero {
        padding: 50px 0 60px !important;
        min-height: 350px !important;
        background-attachment: scroll !important;
        align-items: flex-end !important;
    }
    
    .city-hero > .container > div {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .city-hero h1 {
        font-size: 2.25rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.2 !important;
        padding-left: 1.25rem !important;
        border-left-width: 3px !important;
        letter-spacing: -1px !important;
    }
    
    .city-hero p {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
    }
    
    .city-hero .btn {
        padding: 0.85rem 1.25rem !important;
        font-size: 0.85rem !important;
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    .city-hero > .container > div > div:last-child {
        justify-content: flex-start !important;
    }
    
    .city-description {
        padding: 2rem 1.5rem !important;
        margin-bottom: 2.5rem !important;
        margin-top: -30px !important;
    }
    
    .city-description h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .city-description-text {
        columns: 1 !important;
        font-size: 1rem !important;
        line-height: 1.8 !important;
    }
    
    .map-section {
        padding: 1.5rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .map-section h2 {
        font-size: 1.5rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .map-section p {
        font-size: 0.95rem !important;
    }
    
    .map-section svg {
        max-height: 300px !important;
    }
    
    .services-section {
        margin-bottom: 3rem !important;
    }
    
    .services-section h2 {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }
    
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .service-card {
        padding: 1.75rem !important;
    }
    
    .service-card h3 {
        font-size: 1.25rem !important;
    }
    
    .service-card p {
        font-size: 0.95rem !important;
    }
    
    .benefits-section {
        padding: 2.5rem 1.5rem !important;
        margin-bottom: 2.5rem !important;
    }
    
    .benefits-section h2 {
        font-size: 1.75rem !important;
        margin-bottom: 2rem !important;
    }
    
    .benefits-section > div:last-child {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .benefits-section > div:last-child > div {
        padding: 1.5rem !important;
        flex-direction: row !important;
        text-align: left !important;
    }
    
    .benefits-section h4 {
        font-size: 1.15rem !important;
    }
    
    .benefits-section p {
        font-size: 0.95rem !important;
    }
    
    /* CTA Section Mobile */
    .city-landing > .container > div:last-child {
        padding: 2.5rem 1.5rem !important;
    }
    
    .city-landing > .container > div:last-child h2 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .city-landing > .container > div:last-child p {
        font-size: 1.05rem !important;
        margin-bottom: 2rem !important;
    }
    
    .city-landing > .container > div:last-child .btn {
        width: 100% !important;
        margin-bottom: 0.75rem !important;
        padding: 1.1rem 2rem !important;
        font-size: 1rem !important;
    }
    
    .city-card {
        margin-bottom: 0;
    }
    
    .city-card .city-content {
        padding: 1.5rem !important;
    }
    
    .cities-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .video-content {
        padding: 0 15px;
    }
    
    .video-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .video-section-fullwidth .video-container {
        padding: 0;
    }

    .header {
        padding: 0.75rem 0;
    }

    .header-content {
        flex-wrap: nowrap !important;
        gap: 0.75rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        flex-shrink: 0;
        order: 1;
    }

    .logo-img {
        height: 25px;
    }
    
    .logo h1 {
        font-size: 1.25rem;
        letter-spacing: 1px;
    }
    
    .language-switcher {
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
    
    html[dir="rtl"] .language-switcher {
        margin-left: 0.5rem;
        margin-right: auto;
    }
    
    .mobile-menu-toggle {
        order: 3;
        flex-shrink: 0;
        margin: 0;
        align-self: center;
    }
    
    .lang-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .nav-menu {
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
        padding: 1.25rem 1.5rem;
    }

    .hero {
        padding: 60px 0;
        min-height: 350px;
    }

    .hero .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .product-content {
        padding: 1.25rem;
    }
    
    .product-content h3 {
        font-size: 1.25rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .city-hero {
        padding: 50px 0 30px !important;
        min-height: 280px !important;
    }
    
    .city-hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }
    
    .city-hero p {
        font-size: 1rem !important;
    }
    
    .city-description {
        padding: 1.5rem !important;
        margin-top: -20px !important;
    }
    
    .city-description h2 {
        font-size: 1.5rem !important;
    }
    
    .city-description-text {
        columns: 1 !important;
        font-size: 0.95rem !important;
    }
    
    .map-section {
        padding: 1.25rem !important;
    }
    
    .map-section h2 {
        font-size: 1.35rem !important;
    }
    
    .map-section iframe {
        height: 300px !important;
    }
    
    .categories-section {
        margin-bottom: 2.5rem !important;
    }
    
    .categories-section h2 {
        font-size: 1.5rem !important;
    }
    
    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    .services-section h2 {
        font-size: 1.5rem !important;
    }
    
    .service-card {
        padding: 1.5rem !important;
    }
    
    .service-card h3 {
        font-size: 1.15rem !important;
    }
    
    .benefits-section {
        padding: 2rem 1.25rem !important;
    }
    
    .benefits-section h2 {
        font-size: 1.5rem !important;
    }
    
    .benefits-section > div:last-child > div {
        flex-direction: column;
        gap: 1rem !important;
        text-align: center;
        padding: 1.25rem !important;
    }
    
    .benefits-section > div:last-child > div > div:first-child {
        margin: 0 auto;
    }
    
    .city-card .city-content {
        padding: 1.25rem !important;
    }
    
    /* CTA Section Extra Small */
    .city-landing > .container > div:last-child {
        padding: 2rem 1.25rem !important;
    }
    
    .city-landing > .container > div:last-child h2 {
        font-size: 1.5rem !important;
    }
    
    .city-landing > .container > div:last-child p {
        font-size: 1rem !important;
    }
    
    .breadcrumb {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
}

