/* Variables CSS */
:root {
    --color-primario: #2c3e50;
    --color-secundario: #3498db;
    --color-acentuado: #e74c3c;
    --color-fondo: #ffffff;
    --color-texto: #2c3e50;
    --sombra: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transicion: all 0.3s ease;
    --color-rojo: #fe0000;
}

/* Reset y base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--color-texto);
    background-color: var(--color-fondo);
    overflow-x: hidden;
}

/* Specific Page Backgrounds */
body.contact-page {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -3; /* Default for index */
    overflow: hidden;
}

/* Ensure particles are behind content on about page too */
.about-page .particles {
    z-index: 0;
}

.particle {
    position: absolute;
    font-size: 2rem;
    opacity: 0.06;
    animation: float-particle 15s infinite linear;
    color: var(--color-rojo);
}

.about-page .particle {
    opacity: 0.08;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.06;
    }
    90% {
        opacity: 0.06;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Header y navegación */
header {
    background: #fe0000;
    color: white;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--sombra);
    height: 90px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: 100%;
}

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

.logo-img {
    height: 70px;
    width: auto;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.language-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transicion);
}

.lang-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.lang-btn.active {
    background-color: white;
    color: #fe0000;
}

/* Hamburger menu styles */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    height: 3px;
    width: 100%;
    background-color: white;
    border-radius: 10px;
    transition: var(--transicion);
}

/* Hamburger animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Sidebar Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--color-primario);
    z-index: 1000;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    padding: 100px 2rem 2rem;
}

.nav-overlay.active {
    right: 0;
}

.nav-overlay ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-overlay a {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: var(--transicion);
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-overlay a:hover {
    padding-left: 10px;
    color: #ecf0f1;
}

.overlay-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.overlay-bg.active {
    display: block;
}

/* --- HOME PAGE STYLES --- */

/* Hero section */
.hero {
    position: relative;
    color: white;
    text-align: center;
    padding: 5rem 2rem;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-width: 110%;
    min-height: 110%;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--color-acentuado);
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: var(--transicion);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

/* Servicios & Sections Common */
.services, .offerings, .catalog, .photo-video, .contact-info-home, .contact-form-home {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--color-primario);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--color-texto);
    max-width: 800px;
    margin: 0.5rem auto 0;
    font-size: 1.1rem;
}

.offerings-description {
    color: #2c3e50;
    max-width: 800px;
    margin: 2rem auto 0;
    text-align: center;
    line-height: 1.8;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transicion);
    text-align: center;
    border-top: 4px solid var(--color-secundario);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: var(--color-primario);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--color-texto);
    line-height: 1.7;
}

/* Catálogo */
.category-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tab-button {
    background-color: #ecf0f1;
    color: #2c3e50;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-button.active,
.tab-button:hover {
    background-color: var(--color-primario);
    color: white;
}

.tab-button i {
    font-size: 1.2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.products-grid.limited-height {
    max-height: 500px;
    overflow: hidden;
}

.product-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: var(--transicion);
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    overflow: hidden;
}

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

.product-item h3 {
    display: none;
    padding: 1rem;
    margin: 0;
    color: var(--color-primario);
    text-align: center;
}

.product-item.hidden {
    display: none;
}

.view-all-container {
    text-align: center;
    margin-top: 2rem;
}

.view-all-button {
    background-color: var(--color-secundario);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transicion);
}

.view-all-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
}

.lightbox-caption {
    color: #f2f2f2;
    text-align: center;
    padding: 10px 0;
    height: 15px;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f2f2f2;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.close-lightbox:hover {
    color: #bbb;
}

/* Foto y Video */
.photo-video-container {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.photo-section,
.video-section {
    flex: 1;
    min-width: 300px;
}

.feature-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: var(--transicion);
}

.feature-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-video {
    width: 100%;
    height: 300px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    transition: var(--transicion);
}

.feature-video:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Contact Info Home */
.contact-info-home {
    perspective: 1000px;
}

.contact-container-home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info-content {
    animation: float 6s ease-in-out infinite;
}

.contact-details-home {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: rotateY(5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.contact-details-home:hover {
    transform: rotateY(0) rotateX(0);
}

.contact-detail-home {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 4px solid var(--color-primario);
    background-color: #f9f9f9;
    border-radius: 0 8px 8px 0;
    transition: var(--transicion);
}

.contact-detail-home:hover {
    transform: translateX(10px);
    background-color: #fff;
}

.contact-icon-home {
    font-size: 1.8rem;
    margin-right: 1rem;
    color: var(--color-primario);
}

.contact-text-home h3 {
    color: var(--color-primario);
    margin-bottom: 0.5rem;
}

.contact-text-home p {
    color: var(--color-texto);
}

/* Contact Form Home */
.contact-form-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.contact-form-content:hover {
    transform: rotateY(0) rotateX(0);
}

.contact-form-content h3 {
    color: var(--color-primario);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transicion);
}

.form-control:focus {
    border-color: var(--color-primario);
    outline: none;
    box-shadow: 0 0 0 3px rgba(254, 0, 0, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--color-primario);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: var(--transicion);
    display: block;
    width: 100%;
    box-shadow: 0 4px 15px rgba(254, 0, 0, 0.3);
}

.btn-submit:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(254, 0, 0, 0.4);
}

/* --- ABOUT PAGE STYLES --- */
.about {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-hero {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.about-hero h1 {
    color: var(--color-primario);
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    position: relative;
}

.about-hero h1::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-rojo), transparent);
    margin: 10px auto 0;
    border-radius: 2px;
}

.about-hero .subtitle {
    color: var(--color-texto);
    font-size: 1.2rem;
    margin-top: 1rem;
}

.about-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    position: relative;
    overflow: hidden;
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #fe0000, #3498db, #fe0000);
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.intro-card {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    color: var(--color-texto);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transicion);
    animation: fadeInLeft 1s ease;
    border-top: 4px solid var(--color-secundario);
}

.intro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.intro-card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.intro-card h3 {
    color: var(--color-primario);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.intro-card p {
    line-height: 1.8;
}

.values-section {
    margin: 3rem 0;
}

.values-section h2 {
    text-align: center;
    color: var(--color-rojo);
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.values-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-rojo);
    margin: 10px auto 0;
    border-radius: 2px;
}

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

.value-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transicion);
    border-left: 4px solid var(--color-rojo);
    animation: fadeInUp 0.8s ease backwards;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.value-card:nth-child(1) { animation-delay: 0.1s; }
.value-card:nth-child(2) { animation-delay: 0.2s; }
.value-card:nth-child(3) { animation-delay: 0.3s; }
.value-card:nth-child(4) { animation-delay: 0.4s; }
.value-card:nth-child(5) { animation-delay: 0.5s; }

.value-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.value-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.value-content h4 {
    color: var(--color-rojo);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.value-content p {
    color: var(--color-texto);
    line-height: 1.6;
    font-size: 0.95rem;
}

.about-description {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    animation: fadeInUp 1.2s ease;
}

.about-description p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--color-texto);
}

.about-description p:last-child {
    margin-bottom: 0;
}

.highlight-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--color-texto);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--color-rojo);
}

.highlight-box .icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.highlight-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primario);
}

.highlight-box p {
    line-height: 1.8;
}

/* Floating machines decoration */
.floating-machines {
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    opacity: 0.05;
    pointer-events: none;
    font-size: 8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite;
}

/* --- CONTACT PAGE STYLES --- */
.contact {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.contact-info {
    animation: float 6s ease-in-out infinite;
}

.contact-info h2 {
    color: var(--color-primario);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-details {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: rotateY(5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.contact-details:hover {
    transform: rotateY(0) rotateX(0);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-left: 4px solid var(--color-primario);
    background-color: #f9f9f9;
    border-radius: 0 8px 8px 0;
    transition: var(--transicion);
}

.contact-detail:hover {
    transform: translateX(10px);
    background-color: #fff;
}

.contact-icon {
    font-size: 1.8rem;
    margin-right: 1rem;
    color: var(--color-primario);
}

.contact-text h3 {
    color: var(--color-primario);
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.contact-form:hover {
    transform: rotateY(0) rotateX(0);
}

.contact-form h3 {
    color: var(--color-primario);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-section a {
    color: white !important;
    text-decoration: none;
}

.footer-section a:hover {
    color: #cccccc !important;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transicion);
}

.social-links a:hover {
    color: var(--color-secundario);
}

.copyright {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Unified Policy Banner (Privacy & Cookies) */
.policy-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.98);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem 2rem;
    z-index: 10000;
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -5px 25px rgba(0,0,0,0.3);
    border-top: 3px solid #fe0000;
}

.policy-banner.show {
    bottom: 0;
}

.policy-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.policy-text {
    flex: 1;
}

.policy-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.policy-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.policy-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transicion);
}

.policy-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.policy-links .separator {
    color: rgba(255,255,255,0.3);
}

.policy-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.policy-btn {
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    border: none;
    font-size: 0.9rem;
    transition: var(--transicion);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.policy-btn.accept {
    background-color: #fe0000;
    color: white;
    box-shadow: 0 4px 15px rgba(254, 0, 0, 0.3);
}

.policy-btn.reject {
    background-color: transparent;
    color: white;
    border: 1.5px solid rgba(255,255,255,0.4);
}

.policy-btn:hover {
    transform: translateY(-3px);
}

.policy-btn.accept:hover {
    background-color: #ff1a1a;
    box-shadow: 0 6px 20px rgba(254, 0, 0, 0.5);
}

.policy-btn.reject:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* --- RESPONSIVE STYLES --- */

@media (max-width: 1024px) {
    /* Tablet styles */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .photo-video-container {
        flex-direction: column;
    }

    .contact-container-home, .contact-container {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    /* Show navigation links on tablets */
    .desktop-nav ul {
        display: flex;
    }

    .language-switcher {
        display: block;
    }

    /* Show hamburger menu */
    .menu-toggle {
        display: flex;
    }
    
    .about-intro {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile styles */
    .header-container {
        flex-direction: row; /* Keep horizontal */
        justify-content: space-between;
        gap: 1rem;
        padding: 0 1rem;
    }

    .logo {
        order: 1;
    }

    .nav-controls {
        order: 2;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .nav-container {
        display: none; /* Hide desktop nav if it existed */
    }

    .language-switcher {
        order: 1;
        margin-top: 0;
    }

    .menu-toggle {
        order: 2;
    }

    /* Rest of mobile styles */
    .nav-overlay {
        width: 250px; /* Narrower */
        padding: 80px 1.5rem 1.5rem; /* Less padding */
        overflow-y: auto; /* Scrollable if height is small */
    }

    .nav-overlay ul {
        gap: 0.8rem; /* Smaller gap */
    }

    .nav-overlay a {
        font-size: 1rem; /* Smaller text */
        padding: 0.4rem 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .catalog .section-title {
        margin-bottom: 1.5rem;
    }

    .category-tabs {
        flex-wrap: wrap;
        gap: 0.3rem;
    }

    .tab-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

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

    .product-item {
        margin-bottom: 1rem;
    }

    .product-image {
        height: 150px;
    }

    .photo-video-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .photo-section,
    .video-section {
        min-width: 100%;
    }

    .feature-photo,
    .feature-video {
        height: 200px;
    }

    .contact-container-home, .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form-content,
    .contact-info-content,
    .contact-details {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section {
        padding: 1rem 0;
    }

    .social-links {
        justify-content: center;
    }
    
    /* Policy Banner Mobile Updates */
    .policy-banner { 
        padding: 1.5rem 1rem; 
        max-height: 80vh; 
        overflow-y: auto;
    }
    .policy-content { 
        flex-direction: column; 
        text-align: center; 
        gap: 1.2rem; 
    }
    .policy-text { 
        width: 100%; 
    }
    .policy-text p { 
        font-size: 0.85rem; 
        margin-bottom: 0.6rem; 
        line-height: 1.4;
    }
    .policy-links { 
        justify-content: center; 
        flex-wrap: wrap; 
        gap: 0.8rem; 
    }
    .policy-buttons { 
        width: 100%; 
        flex-direction: column; 
        gap: 0.8rem; 
        margin-top: 0.5rem;
    }
    .policy-btn { 
        width: 100%; 
        padding: 0.8rem; 
        font-size: 0.85rem; 
        margin: 0;
    }
    
    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-buttons { flex-direction: column; width: 100%; }
    .cookie-btn { width: 100%; }
    
    .privacy-banner-content { 
        flex-direction: column; 
        text-align: center; 
    }
    .privacy-banner-close { 
        width: 100%; 
    }
    
    /* About page mobile */
    .about-content {
        padding: 1.5rem;
    }

    .about-hero h1 {
        font-size: 2rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value-card:hover {
        transform: translateY(-5px);
    }

    .floating-machines {
        display: none;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    /* Small mobile styles */
    .hero {
        padding: 3rem 1rem;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .hero p {
        font-size: 0.8rem;
    }
    
    .section-title h2 {
        font-size: 1.6rem;
    }
    
    .section-title p {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
    }
    
    .tab-button {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-photo,
    .feature-video {
        height: 150px;
    }
    
    .contact-detail-home, .contact-detail {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-icon-home, .contact-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .form-control {
        padding: 0.6rem;
    }
    
    .btn-submit {
        padding: 0.8rem 1.5rem;
    }
    
    footer {
        padding: 1.5rem;
    }
    
    /* About small mobile */
    .about {
        padding: 2rem 1rem;
    }

    .about-content {
        padding: 1.5rem;
    }

    .about-hero h1 {
        font-size: 1.8rem;
    }

    .intro-card {
        padding: 1.5rem;
    }

    .highlight-box {
        padding: 1.5rem;
    }

    .highlight-box .icon {
        font-size: 3rem;
    }
}

/* --- LEGAL PAGES STYLES --- */
.container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.container h1, .container h2 {
    color: var(--color-primario);
    margin-bottom: 1rem;
}

.container p {
    margin-bottom: 1rem;
}

.container ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.container li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    /* Slight header adjustment for mobile if desired, though 90px is fine too */
    /* header { height: 80px; } */ 
    /* .logo-img { height: 60px; } */
}


/* Video Responsive Hero */
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Siempre visible, JS gestiona el contenido */
}

/* Ajustes para Tablets y pantallas medianas */
@media (max-width: 992px) {
    .feature-video {
        height: 450px !important; /* Aumentamos la altura para que no se vea fino */
    }
}

@media (max-width: 768px) {
    .feature-video {
        height: 400px !important; /* Altura en tablets */
    }
}

@media (max-width: 480px) {
    .feature-video {
        height: 250px !important; /* Altura en mviles */
    }
}

/* Success Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-container {
    transform: translateY(0);
}

.modal-icon {
    font-size: 4rem;
    color: #2ecc71;
    margin-bottom: 1.5rem;
}

.modal-title {
    color: var(--color-primario);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.modal-message {
    color: var(--color-texto);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.modal-close-btn {
    background: var(--color-rojo);
    color: white;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transicion);
    box-shadow: 0 4px 15px rgba(254, 0, 0, 0.3);
}

.modal-close-btn:hover {
    background: #d40000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 0, 0, 0.4);
}

@media (max-width: 480px) {
    .modal-container {
        padding: 2rem 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}




