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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    overflow-x: hidden; /* Prevenir scroll horizontal */
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }
h4 { font-size: clamp(1.125rem, 2.5vw, 1.25rem); }

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
    min-height: 48px; /* Mejor accesibilidad táctil */
    text-align: center;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border: 2px solid white;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-height: 48px;
    text-align: center;
}

.btn-secondary:hover {
    background: white;
    color: #2563eb;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: #2563eb;
    padding: 10px 20px;
    text-decoration: none;
    border: 2px solid #2563eb;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-height: 44px;
    text-align: center;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    padding: 8px 0;
    font-size: 0.875rem;
}

.header-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-contact {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.header-contact span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.header-social a {
    color: white;
    font-size: 1.2rem;
    transition: color 0.3s ease;
    padding: 0.25rem;
    border-radius: 4px;
}

.header-social a:hover {
    color: #93c5fd;
}

.navbar {
    background: white;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e5e7eb;
}

.company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-text h1 {
    font-size: 1.5rem;
    color: #1e40af;
    margin-bottom: 0.25rem;
}

.brand-text p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: #f3f4f6;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #374151;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1e40af, #2563eb, #4b5563);
    color: white;
    overflow: hidden;
    padding-top: 80px; /* Espacio para header fijo */
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 64, 175, 0.7);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 2rem 0;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-highlight {
    color: #60a5fa;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #60a5fa;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.warehouse-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.warehouse-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="warehouse" patternUnits="userSpaceOnUse" width="20" height="20"><rect width="20" height="20" fill="rgba(96,165,250,0.1)"/><rect x="2" y="2" width="16" height="16" fill="none" stroke="rgba(96,165,250,0.2)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23warehouse)"/></svg>') center/cover;
    opacity: 0.3;
    z-index: -1;
}

.warehouse-content {
    position: relative;
    z-index: 1;
}

.warehouse-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.warehouse-icon i {
    font-size: 2rem;
    color: white;
}

.warehouse-preview h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.warehouse-preview p {
    opacity: 0.8;
    margin-bottom: 1rem;
}

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #10b981;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    color: #1e40af;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: #f8fafc;
}

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

.service-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.service-image {
    position: relative;
    height: 200px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8), rgba(29, 78, 216, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-overlay .service-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.service-overlay .service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-content {
    padding: 0 2.5rem 2.5rem;
}

.service-card h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.service-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    color: #374151;
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Products Section */
.products {
    padding: 6rem 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 250px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}

.product-badge {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.3);
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.product-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature {
    background: #e0f2fe;
    color: #0891b2;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Brands Section */
.brands {
    padding: 6rem 0;
    background: #f8fafc;
}

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

.brand-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #2563eb;
}

.brand-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.brand-logo {
    height: 120px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    padding: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    position: relative;
}

.brand-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(29, 78, 216, 0.02));
}

.brand-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.brand-card:hover .brand-img {
    transform: scale(1.05);
}

.brand-content h4 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.brand-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.brand-features span {
    color: #374151;
    font-size: 0.875rem;
}

/* Process Section */
.process {
    padding: 6rem 0;
    background: white;
}

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

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin: 0 auto 2rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.3);
}

.step-content h3 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

.step-content p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.step-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.step-link:hover {
    color: #1d4ed8;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #f8fafc;
}

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

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.25rem;
}

.contact-details h4 {
    color: #1e40af;
    margin-bottom: 0.5rem;
}

.contact-details p {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-details span {
    color: #6b7280;
    font-size: 0.875rem;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    color: #1e40af;
    margin-bottom: 2rem;
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
    min-height: 48px; /* Mejor accesibilidad táctil */
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

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

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: #60a5fa;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-container {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 8px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-brand-text h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.footer-brand-text p {
    color: #cbd5e1;
    font-size: 0.875rem;
    margin: 0;
}

.footer-section p {
    color: #cbd5e1;
    line-height: 1.6;
}

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

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

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #60a5fa;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    background: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: #2563eb;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #25d366;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    font-weight: 600;
}

.whatsapp-float a:hover {
    background: #20c25a;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 1.5rem;
}

.whatsapp-text {
    white-space: nowrap;
}

/* Responsive Design Mejorado */

/* Breakpoints más específicos para mejor control */
/* Tablets en modo portrait */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    .header-top .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 15px 20px;
        display: none;
    }
    
    .header-contact {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 80px;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
        z-index: 9999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    /* Overlay para cerrar el menú al hacer clic fuera */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 85%;
        width: 15%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 3px;
        cursor: pointer;
        z-index: 10000;
    }
    
    .nav-toggle span {
        width: 25px;
        height: 3px;
        background: #333;
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
        padding: 2rem 0;
    }
    
    .hero-text h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 3vw, 1.125rem);
        line-height: 1.5;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 2rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: clamp(1.75rem, 4vw, 2rem);
        line-height: 1.3;
    }
    
    .section-header p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        line-height: 1.6;
        margin-top: 1rem;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Mejoras para el botón de WhatsApp */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-float a {
        width: 56px;
        height: 56px;
        padding: 0;
        justify-content: center;
        align-items: center;
        border-radius: 50%;
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
        transition: all 0.3s ease;
    }
    
    .whatsapp-float a:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-text h1 {
        font-size: clamp(1.75rem, 6vw, 2rem);
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1rem);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .stat-number {
        font-size: clamp(1.75rem, 5vw, 2rem);
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .service-card,
    .product-card,
    .brand-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form .form-group {
        margin-bottom: 1rem;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 12px;
        font-size: 16px; /* Evita el zoom en iOS */
        border-radius: 8px;
    }
    
    .nav-brand {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .brand-text h1 {
        font-size: clamp(1.1rem, 4vw, 1.25rem);
        margin: 0;
    }
    
    .brand-text p {
        font-size: clamp(0.7rem, 2.5vw, 0.75rem);
        margin: 0;
    }
    
    /* Mejoras para formularios en móvil */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-col {
        width: 100%;
    }
    
    /* Navegación mejorada para móvil */
    .nav-menu {
        width: 90%;
        max-width: 280px;
        padding: 60px 20px 20px;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-radius: 8px;
        display: block;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        transition: all 0.3s ease;
    }
    
    .nav-menu a:hover {
        background-color: #f8f9fa;
        transform: translateX(5px);
    }
    
    /* Botones más grandes para mejor usabilidad táctil */
    .btn {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 16px;
        touch-action: manipulation;
    }
    
    /* Mejoras para el whatsapp en móviles muy pequeños */
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float a {
        width: 52px;
        height: 52px;
    }
}

/* Móviles extra pequeños */
@media (max-width: 320px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-text h1 {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .service-card,
    .product-card,
    .brand-card,
    .contact-form {
        padding: 1rem;
    }
    
    .section-header {
        padding: 1rem 0;
    }
    
    .brands-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        width: 95%;
        padding: 50px 15px 15px;
    }
}

/* Mejoras adicionales para orientación landscape en móviles */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-menu {
        padding-top: 20px;
        justify-content: flex-start;
    }
    
    .hero-content {
        padding: 1rem 0;
        gap: 1.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
}

/* Mejoras para dispositivos con notch */
@supports (padding-top: env(safe-area-inset-top)) {
    .header-top {
        padding-top: env(safe-area-inset-top);
    }
}

/* Mejoras para hover en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover,
    .product-card:hover,
    .brand-card:hover {
        transform: none;
    }
    
    .service-card:active,
    .product-card:active,
    .brand-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

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

.service-card,
.product-card,
.brand-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Image Loading and Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.service-img,
.product-img,
.brand-img {
    loading: lazy;
}

/* Enhanced Visual Effects */
.service-card,
.product-card,
.brand-card {
    background: white;
    position: relative;
}

.service-card::after,
.product-card::after,
.brand-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.02), rgba(29, 78, 216, 0.02));
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::after,
.product-card:hover::after,
.brand-card:hover::after {
    opacity: 1;
}

/* Modern Shadows */
.service-card,
.product-card,
.brand-card {
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.06);
}

.service-card:hover,
.product-card:hover,
.brand-card:hover {
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 6px 10px rgba(0, 0, 0, 0.08);
}

/* Enhanced Buttons */
.btn-outline:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

/* Loading States */
.service-img,
.product-img,
.brand-img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.service-img[src],
.product-img[src],
.brand-img[src] {
    background: none;
    animation: none;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
