/* Reset y Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
    min-height: 120px;
}

.logo-container {
    flex-shrink: 0;
    position: absolute;
    left: 2rem;
}

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

.header-buttons {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.btn-login {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    background: var(--bg-white);
    color: var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-login:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-beta {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-beta:hover {
    background: var(--primary-dark);
}

/* Menú Hamburguesa */
.menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: absolute;
    right: 2rem;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

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

.nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    padding: 1rem 0;
}

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

.nav-menu ul {
    list-style: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-menu li {
    border-bottom: 1px solid var(--border-color);
}

.nav-menu a {
    display: block;
    padding: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
    padding-left: 1.5rem;
}

/* Banner Principal Section */
.main-banner-section {
    background: var(--bg-white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.main-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: nowrap;
}

.main-banner-image {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.main-banner-image img {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    width: auto;
    display: block;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    object-fit: contain;
}

.main-banner-text {
    flex: 1;
    display: flex;
    align-items: center;
}

.main-banner-text p {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
    white-space: nowrap;
}

/* Banners Section */
.banners-section {
    background: var(--bg-white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.banners-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: flex-start;
}

.banners-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.banners-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: stretch;
}

.banner-side-image {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color);
    max-height: calc(4 * 200px + 3 * 2rem);
    position: relative;
}

.banner-side-image img,
.banner-side-image video,
.banner-side-image iframe {
    width: 100%;
    height: auto;
    max-height: calc(4 * 200px + 3 * 2rem);
    object-fit: contain;
    display: block;
}

.banner-side-image iframe {
    min-height: 400px;
    aspect-ratio: 16 / 9;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    pointer-events: all;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.banner-item {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bg-white);
    transition: opacity 0.3s ease;
    box-shadow: var(--shadow-md);
    line-height: 0;
    border: 2px solid var(--border-color);
    padding: 0;
    position: relative;
}

.banner-item:empty,
.banner-item[style*="display: none"] {
    display: none !important;
}

.banner-item iframe {
    width: 100%;
    max-height: 200px;
    height: 200px;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
    vertical-align: top;
    line-height: 0;
    background: var(--bg-white);
    object-fit: contain;
}

.banner-item img {
    width: 100%;
    max-width: 100%;
    max-height: 200px;
    height: auto;
    display: block;
    border: none;
    margin: 0;
    padding: 0;
    object-fit: contain;
    background: var(--bg-white);
}

/* Manufacturers Section */
.manufacturers-section {
    padding: 3rem 2rem;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.specialists-section {
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-items: center;
}

.logo-item {
    width: auto;
    height: auto;
    min-width: 150px;
    min-height: 80px;
    max-width: 250px;
    max-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

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

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: var(--transition);
}

.logo-item:hover img {
    filter: grayscale(0%);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 400px);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--bg-white);
    padding: 5rem 2rem;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

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

.btn-primary,
.btn-secondary {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--bg-white);
    border: 2px solid var(--bg-white);
}

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

/* Products Section */
.products-section {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color: #9ca3af;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}

.section-title::before,
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #000;
}

.section-title::before {
    margin-right: 1rem;
}

.section-title::after {
    margin-left: 1rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15), 0 4px 6px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-card p {
    color: var(--text-light);
}

.product-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.product-info-icon svg {
    width: 20px;
    height: 20px;
}

.product-card:hover .product-info-icon {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

/* Mapa arriba a todo el ancho */
.contact-map-container {
    width: 100%;
    margin-bottom: 3rem;
}

.contact-map-container h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.map-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1rem;
}

.map-wrapper iframe {
    width: 100%;
    height: 400px;
    border: 0;
    display: block;
}

/* Información de Contacto */
.contact-info-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    text-align: center;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
    align-items: start;
}

.contact-info-left,
.contact-info-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

/* Asegurar que los primeros elementos tengan exactamente la misma altura */
.contact-info-left .contact-item:first-child,
.contact-info-right .contact-item:first-child {
    height: 95px;
    display: flex;
    align-items: flex-start;
}

/* Asegurar que los segundos elementos (Dirección y Email) estén alineados */
.contact-info-left .contact-item:nth-child(2),
.contact-info-right .contact-item:nth-child(2) {
    height: 95px;
    display: flex;
    align-items: flex-start;
}

.contact-social-links {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.contact-social-links h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-social-links .social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-social-links .social-links a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.contact-social-links .social-links a:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-info {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-info h3,
.contact-form-container h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
    align-items: flex-start;
    min-height: 60px;
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-item p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form-container {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-group a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-group a:hover {
    text-decoration: underline;
}

.btn-submit {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-submit:active {
    transform: translateY(0);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-map-container {
        margin-bottom: 2rem;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

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

.footer-section h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-logo-msf {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 1rem;
}

.footer-logo-msf img {
    max-width: 150px;
    height: auto;
    opacity: 0.9;
    transition: var(--transition);
    border-radius: 12px;
}

.footer-logo-msf img:hover {
    opacity: 1;
    transform: scale(1.05);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--bg-white);
    margin: auto;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-light);
    cursor: pointer;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.modal-body {
    margin-top: 1rem;
}

/* Product Modal Styles */
.product-modal {
    max-width: 900px;
}

.product-modal-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.product-modal-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    border-radius: 12px;
    background: var(--bg-light);
    padding: 1rem;
}

.product-modal-title h2 {
    margin: 0 0 0.5rem 0;
    color: var(--text-dark);
}

.product-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0;
}

.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.product-info h3,
.product-pricing h3 {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.product-info p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    padding: 0.75rem 0;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 1.5rem;
}

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

.product-features li:last-child {
    border-bottom: none;
}

.product-pricing {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 12px;
}

.price-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.price-item:last-child {
    border-bottom: none;
}

.price-label {
    color: var(--text-light);
    font-weight: 500;
}

.price-value {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.btn-contact {
    width: 100%;
    padding: 1rem;
    margin-top: 1.5rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 2rem;
    z-index: 1500;
    display: none;
    animation: slideUp 0.3s ease;
}

.cookie-banner.active {
    display: block;
}

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

.cookie-content p {
    flex: 1;
    min-width: 300px;
    color: var(--text-dark);
    margin: 0;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn-cookie-accept,
.btn-cookie-reject {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cookie-accept {
    background: var(--primary-color);
    color: var(--bg-white);
}

.btn-cookie-accept:hover {
    background: var(--primary-dark);
}

.btn-cookie-reject {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-cookie-reject:hover {
    background: var(--border-color);
}

.cookie-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.95rem;
}

.cookie-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 968px) {
    .header-container {
        justify-content: space-between;
    }

    .logo-container {
        position: relative;
        left: auto;
    }

    .header-buttons {
        display: none;
    }

    .menu-toggle {
        display: flex;
        position: relative;
        right: auto;
    }

    .main-banner-container {
        flex-direction: row;
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .main-banner-image {
        width: auto;
        max-width: 40%;
    }

    .main-banner-image img {
        max-height: 120px;
    }

    .main-banner-text {
        text-align: left;
    }

    .main-banner-text p {
        font-size: 1rem;
        white-space: normal;
    }

    .banners-container {
        padding: 0 1rem;
        gap: 1.5rem;
        flex-direction: row;
    }

    .banners-left {
        gap: 1.5rem;
    }

    .banner-item {
        max-width: 100%;
        width: 100%;
    }

    .banner-item img {
        max-height: 180px;
    }

.banners-right {
    gap: 1.5rem;
}

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

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

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

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

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

    .logo-item {
        max-width: 200px;
        max-height: 100px;
        min-width: 120px;
        min-height: 60px;
        padding: 0.75rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
    }

    .main-banner-section {
        padding: 1.5rem 0;
    }

    .main-banner-container {
        padding: 0 1rem;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .main-banner-image {
        max-width: 100%;
        width: 100%;
    }

    .main-banner-image img {
        max-height: 100px;
        width: 100%;
        object-fit: contain;
    }

    .main-banner-text {
        width: 100%;
        text-align: center;
    }

    .main-banner-text p {
        font-size: 0.95rem;
        white-space: normal;
    }

    .banners-section {
        padding: 1.5rem 0;
    }

    .banners-container {
        padding: 0 1rem;
        gap: 1rem;
        flex-direction: column;
    }

    .banners-left {
        width: 100%;
        gap: 1rem;
        order: 2;
    }

    .banners-right {
        width: 100%;
        gap: 1rem;
        order: 1;
    }

    .banner-side-image {
        width: 100%;
        height: auto;
        order: 1;
    }

    .banners-right .banner-item {
        order: 2;
    }

    .banner-side-image img {
        height: auto;
        max-height: 300px;
        object-fit: contain;
    }

    .banner-item {
        max-width: 100%;
        width: 100%;
    }

    .banner-item img {
        max-height: 150px;
        width: 100%;
        object-fit: contain;
    }

    .manufacturers-section,
    .specialists-section {
        padding: 2rem 1rem;
    }

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

    .logo-item {
        max-width: 180px;
        max-height: 90px;
        min-width: 100px;
        min-height: 50px;
        padding: 0.5rem;
    }

    .logo-item img {
        max-width: 100%;
        max-height: 100%;
    }

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

    .product-modal-body {
        grid-template-columns: 1fr;
    }

    .product-modal-header {
        flex-direction: column;
        text-align: center;
    }

    .product-modal-image {
        width: 120px;
        height: 120px;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }

    .btn-cookie-accept,
    .btn-cookie-reject {
        flex: 1;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 80px;
    }

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

    .banners-container {
        padding: 0 0.5rem;
        gap: 0.75rem;
        flex-direction: column;
    }

    .banners-left {
        gap: 0.75rem;
    }

    .banner-item {
        max-width: 100%;
    }

    .banner-item img {
        max-height: 120px;
    }

    .banner-side-image img {
        max-height: 250px;
    }

    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    .cookie-banner {
        padding: 1rem;
    }
}

/* Modal de Contacto para Productos */
.contacto-modal {
    max-width: 600px;
    width: 90%;
}

.contacto-modal-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color);
}

.contacto-modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem 0;
}

.contacto-modal-header p {
    font-size: 1rem;
    color: var(--text-light);
    margin: 0;
}

.contacto-form {
    width: 100%;
}

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

.contacto-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.contacto-form .form-group input,
.contacto-form .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    background-color: var(--bg-white);
    color: var(--text-dark);
    box-sizing: border-box;
}

.contacto-form .form-group input:focus,
.contacto-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contacto-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

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

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-cancel {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background-color: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background-color: #e5e7eb;
    border-color: #d1d5db;
}

.contacto-form .btn-submit {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.contacto-form .btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contacto-form .btn-submit:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

#form-message-producto {
    margin-top: 1rem;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .contacto-modal {
        width: 95%;
        max-width: none;
    }
    
    .contacto-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-cancel,
    .contacto-form .btn-submit {
        width: 100%;
    }
}

