/*
Theme Name: Norgraf Premium
Theme URI: https://norgraf.cl
Author: Javier Ortiz
Description: Tema Premium B2B creado exclusivamente para Norgraf.
Version: 1.2.0
*/
/* 
 * Norgraf Web App Premium CSS
 * Basado en Dark Mode / Glassmorphism
 */

html {
    scroll-behavior: smooth;
}

:root {
    --bg-dark: #070913;
    --bg-card: rgba(20, 24, 44, 0.6);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #f0f2f8;
    --text-muted: #9ba1ba;
    --accent-red: #ff1a2b;
    --accent-red-hover: #e01020;
    --accent-blue: #0077ff;
    --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Glow Backgrounds --- */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,119,255,0.4) 0%, transparent 70%);
    top: -100px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,26,43,0.3) 0%, transparent 70%);
    top: 40%;
    right: -150px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(90deg, #fff, var(--accent-red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(7, 9, 19, 0.7);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(7, 9, 19, 0.95);
}

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

.logo {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo-text { color: #fff; }
.logo-accent { color: var(--accent-red); }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

/* Forzar que ningún link se vea azul por defecto y quitar subrayado feo */
a, 
.nav-links a,
.catalog-link {
    transition: all 0.3s ease !important;
    color: #f0f2f8 !important; /* Blanco Norgraf */
    text-decoration: none !important; 
}

a:hover,
.nav-links a:hover,
.catalog-link:hover {
    color: #ff1a2b !important; /* Rojo Norgraf al pasar el mouse */
}

/* --- Buttons --- */
.btn-primary, .btn-primary-outline, .btn-secondary, .submit-btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary, .submit-btn {
    background-color: var(--accent-red);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 26, 43, 0.4);
}

.btn-primary:hover, .submit-btn:hover {
    background-color: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 26, 43, 0.6);
}

.btn-primary-outline {
    background: transparent;
    border: 1px solid var(--accent-red);
    color: var(--accent-red) !important;
}

.btn-primary-outline:hover {
    background: rgba(255, 26, 43, 0.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    letter-spacing: -2px;
}

.hero-main-image {
    width: 100%;
    max-width: 650px;
    height: auto;
    max-height: 40vh;
    object-fit: contain;
    display: block;
    margin: 0 auto 2rem auto;
    filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.4));
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* --- Services Section --- */
.services, .benefits, .contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-title p {
    color: var(--text-muted);
}

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255,255,255,0.2);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Review / Testimonials --- */
.review-card {
    text-align: left;
    display: flex;
    flex-direction: column;
}

/* --- Catalog Integrations --- */
.card-image {
    width: calc(100% + 5rem);
    margin: -2.5rem -2.5rem 1.5rem -2.5rem;
    height: 240px;
    object-fit: contain;
    border-radius: 16px 16px 0 0;
    background-color: #f8f9fa; /* Fondo claro para enmarcar las fotos como cuadrados */
    padding: 1rem;
    border: none;
    border-bottom: 1px solid var(--border-glass);
}

.more-info-accordion {
    margin-top: 1rem;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    border: 1px solid var(--border-glass);
    overflow: hidden;
}

.more-info-accordion summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--accent-red);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.more-info-accordion summary::-webkit-details-marker {
    display: none;
}

.more-info-accordion summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s;
    line-height: 1;
}

.more-info-accordion[open] summary::after {
    content: '-';
}

.accordion-content {
    padding: 0 1rem 1rem 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.accordion-content h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

/* --- Category Splitting --- */
.category-title {
    font-size: 1.8rem;
    color: #fff;
    margin-top: 5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent-red);
    padding-left: 1rem;
}

.category-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-glass), transparent);
    margin: 4rem auto 0 auto;
    width: 60%;
}

.service-card ul {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1rem;
    margin-left: 1.5rem;
}

.stars {
    color: #ffbe0b; /* Amarillo estrella brillante */
    font-size: 1.6rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    margin-bottom: 1.5rem !important;
    flex-grow: 1; /* Permite que el autor quede siempre pegado abajo */
}

.review-card h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.2rem;
}

.review-company {
    font-size: 0.85rem !important;
    color: var(--accent-red) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Benefits Section --- */
.benefits-container {
    background: linear-gradient(135deg, rgba(20,24,44,0.8), rgba(0,119,255,0.1));
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 4rem;
    display: flex;
    justify-content: center;
}

.benefit-text h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.benefit-list strong {
    color: #fff;
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

/* --- Contact Section / Form --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: 2.5rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.info-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 8px;
    border-left: 4px solid var(--accent-red);
}

.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

/* --- Sub-nav de Catálogo --- */
.catalog-nav {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem;
}
.catalog-link {
    background: rgba(255, 255, 255, 0.05); color: var(--text-main);
    padding: 0.6rem 1.2rem; border-radius: 50px; text-decoration: none;
    border: 1px solid var(--border-glass); font-size: 0.95rem; font-weight: 600;
    transition: all 0.3s ease;
}
.catalog-link:hover {
    background: rgba(255, 255, 255, 0.15); border-color: rgba(255,255,255,0.3); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* --- Botón WhatsApp Flotante --- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 30px; right: 30px;
    background-color: #25d366; color: #FFF; border-radius: 50px; text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5); z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease;
}
.whatsapp-float:hover { 
    background-color: #128c7e; transform: translateY(-5px) scale(1.05); 
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* --- Imágenes del Catálogo (Mejora Recuadros con Marco Blanco Solicitado) --- */
.card-image {
    width: 100%; max-width: 320px; height: auto; display: block;
    margin: 0.5rem auto 1.5rem auto; border-radius: 12px;
    border: 4px solid #ffffff !important; /* Marco Blanco Grueso y Sólido - Forzado */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    opacity: 1; transition: all 0.4s ease; 
    filter: brightness(1) contrast(1); /* Quitamos el oscurecimiento para que el blanco brille */
}

.service-card:hover .card-image {
    transform: scale(1.05) translateY(-5px);
    border-color: #ffffff; /* Mantiene el blanco al hover o cambia a azul si prefieres */
    box-shadow: 0 15px 45px rgba(255, 255, 255, 0.2);
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-stack);
    transition: border-color 0.3s, background 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(0,0,0,0.5);
}

.submit-btn {
    width: 100%;
    font-size: 1.1rem;
    padding: 1.2rem;
    margin-top: 1rem;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Utilities --- */
.fade-in {
    opacity: 1;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* --- Hamburger Menu Icon --- */
.hamburger {
    display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001;
}
.hamburger .bar {
    width: 25px; height: 3px; background-color: var(--text-main);
    transition: all 0.3s ease; border-radius: 3px;
}
.hamburger.toggle .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.hamburger.toggle .bar:nth-child(2) { opacity: 0; }
.hamburger.toggle .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

/* --- Responsive --- */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .benefits-container {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-links { 
        position: absolute; top: 100%; left: 0; width: 100%;
        background: rgba(7, 9, 19, 0.98); backdrop-filter: blur(15px);
        flex-direction: column; align-items: center; gap: 0;
        padding: 2rem 0; border-bottom: 1px solid var(--border-glass);
        clip-path: circle(0% at top right); transition: all 0.4s ease-out;
    }
    .nav-links.active { clip-path: circle(150% at top right); }
    .nav-links li { margin: 1rem 0; }
    
    .hero h1 { font-size: 2.2rem; }
    
    .hero { padding-top: 6rem; }
    
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions a { text-align: center; }

    /* Achicar acolchado en tarjetas para espacio horizontal */
    .service-card { padding: 1.5rem; }
    
    /* El recuadro de imagen se mantiene con sus bordes en móvil */
    .card-image { 
        max-width: 280px; 
        margin: 0 auto 1.5rem auto; 
    }

    /* Reducir WhatsApp en teléfonos */
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
}

/* --- Sub-nav de Catálogo (Calidad Local Premium) --- */
.catalog-nav {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem;
    margin-bottom: 3.5rem;
}
.catalog-link {
    background: rgba(255, 255, 255, 0.05); color: #ffffff;
    padding: 0.8rem 1.6rem; border-radius: 50px; text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.95rem; font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}
.catalog-link:hover {
    background: rgba(255, 255, 255, 0.15); border-color: #ffffff; 
    transform: translateY(-3px); box-shadow: 0 12px 25px rgba(0,0,0,0.5);
    color: #ffffff;
}

