/* Reset y variables CSS */
:root {
    --primary: #0066cc;
    --primary-dark: #0052a3;
    --secondary: #00a859;
    --accent: #ff6b00;
    --accent-2: #8e44ad;
    --accent-3: #e74c3c;
    --dark: #2c3e50;
    --light: #f8f9fa;
    --text: #444;
    --border: #e0e0e0;
    --shadow: 0 5px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 35px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

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

/* ===== HEADER Y NAVEGACIÓN - LOGO CORREGIDO ===== */
header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 0.5rem 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 60px;
}

/* Logo container corregido - TAMAÑO ADECUADO */
.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-solugraphics {
    height: 32px;
    width: auto;
    object-fit: contain;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text .main {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
}

.logo-text .sub {
    font-size: 0.5rem;
    color: var(--dark);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
}

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

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s;
}

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

.cta-button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.cta-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,102,204,0.3);
}

.cta-button.outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.cta-button.outline:hover {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(0,102,204,0.9) 0%, rgba(0,168,89,0.85) 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

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

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

.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.hero-cta {
    font-size: 1rem;
    padding: 12px 28px;
}

/* Marcas Section */
.brands-section {
    background: var(--light);
    padding: 3rem 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    align-items: center;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.brand-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.brand-icon {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.brand-logo span {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.8rem;
}

/* Secciones generales */
.section {
    padding: 80px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    color: var(--dark);
    font-weight: 700;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Categorías Principales */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.category-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.category-card.flexo:before { background: var(--primary); }
.category-card.offset:before { background: var(--accent); }
.category-card.terminaciones:before { background: var(--accent-2); }
.category-card.textil:before { background: var(--accent-3); }
.category-card.eco:before { background: var(--secondary); }
.category-card.digital:before { background: #3498db; }

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--primary);
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.category-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.product-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.exclusive {
    background: var(--accent-2);
}

.product-badge.eco {
    background: var(--secondary);
}

.product-badge.new {
    background: var(--accent);
}

.product-image {
    width: 100%;
    height: 180px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    font-size: 2.5rem;
}

.product-content {
    padding: 1.8rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 600;
}

.product-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.product-features li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    color: #555;
    font-size: 0.9rem;
}

.product-features li:before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
    font-size: 1rem;
}

.brand-tag {
    display: inline-block;
    background: var(--light);
    color: var(--dark);
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 8px;
}

/* Historias de Éxito */
.stories-section {
    background: var(--light);
}

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

.story-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.story-image {
    position: relative;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-icon {
    font-size: 3rem;
    color: white;
}

.story-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--secondary);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.story-content {
    padding: 1.8rem;
}

.story-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.story-industry {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.story-description {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.story-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.stat {
    text-align: center;
    padding: 0.8rem;
    background: var(--light);
    border-radius: 8px;
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.stat-label {
    font-size: 0.75rem;
    color: #666;
}

/* Tecnología Section */
.tech-section {
    background: white;
    position: relative;
    overflow: hidden;
}

.tech-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary));
}

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

.tech-card {
    background: white;
    padding: 2.2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid var(--border);
}

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

.tech-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--primary);
}

.tech-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 600;
}

.tech-description {
    color: #666;
    line-height: 1.7;
    font-size: 0.9rem;
}

/* Suministros Section */
.supplies-section {
    background: var(--light);
}

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

.supply-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid var(--border);
}

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

.supply-image {
    width: 80px;
    height: 80px;
    background: var(--light);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.supply-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.1rem;
}

.supply-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.9rem;
}

.supply-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
}

.supply-card li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    color: #555;
    font-size: 0.85rem;
}

.supply-card li:before {
    content: "•";
    color: var(--primary);
    font-weight: bold;
    margin-right: 8px;
}

/* Contacto Section */
.contact-section {
    background: white;
}

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

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: 'Montserrat', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

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

.contact-info {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    height: fit-content;
}

.contact-info h3 {
    margin-bottom: 2rem;
    color: var(--dark);
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

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

.contact-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--primary);
}

.contact-details {
    flex: 1;
}

.contact-details strong {
    display: block;
    color: var(--dark);
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.contact-details span {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    transition: var(--transition);
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,102,204,0.3);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 3rem 5% 1.5rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

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

.footer-brand p {
    color: #ccc;
    line-height: 1.7;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.footer-partners {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-partner {
    background: rgba(255,255,255,0.1);
    padding: 6px 12px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

.footer-column h3 {
    margin-bottom: 1.2rem;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #555;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright p {
    color: #999;
    font-size: 0.8rem;
}

.copyright a {
    color: #ccc;
    text-decoration: none;
}

.copyright a:hover {
    color: white;
}

.footer-badges {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-badge {
    background: rgba(255,255,255,0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Utilidades */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CORRECCIÓN DEL LOGO EN MÓVILES ===== */
@media (max-width: 768px) {
    .navbar {
        min-height: 55px;
        padding: 0.3rem;
    }
    
    .logo-solugraphics {
        height: 28px !important;
    }
    
    .logo-text .main {
        font-size: 0.8rem;
    }
    
    .logo-text .sub {
        font-size: 0.45rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.8rem;
    }
    
    .cta-button {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}