/* ================================================================= *
   CREATIVE SOLUCIONES - ESTILOS EDITORIALES MAESTROS
   ================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: #fcfbf9;
    color: #2b2d42;
    line-height: 1.7;
    overflow-x: hidden;
}

.editorial-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 30px;
}

/* PANTALLA DE CARGA ARTESANAL */
#artisan-loader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: #f7f5f0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-inner {
    max-width: 320px;
}

.loader-logo-img {
    width: 75px; height: 75px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.loader-brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1c24;
    letter-spacing: -0.5px;
}

.loader-subtitle {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 20px;
}

.loader-line {
    width: 100%; height: 3px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.loader-line::after {
    content: '';
    position: absolute;
    top: 0; left: 0; height: 100%; width: 50%;
    background: #2b2d42;
    animation: loaderMove 1.5s infinite ease-in-out;
}

@keyframes loaderMove {
    0% { left: -50%; }
    100% { left: 100%; }
}

/* BARRA DE PROMOCIÓN SUPERIOR */
.editorial-promo-bar {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    color: #111827;
    padding: 10px 0;
    font-size: 0.88rem;
    font-weight: 600;
}

.promo-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.promo-flex i { color: #ffffff; margin-right: 6px; }

.promo-btn-action {
    background: #111827;
    color: #f59e0b;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s;
}

.promo-btn-action:hover {
    background: #000000;
    color: #ffffff;
    transform: scale(1.03);
}

/* TOPBAR */
.editorial-topbar {
    background-color: #1a1c24;
    color: #9ca3af;
    padding: 10px 0;
    font-size: 0.82rem;
}

.topbar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.topbar-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar-info i { color: #f59e0b; margin-right: 5px; }
.topbar-actions a { color: #f3f4f6; text-decoration: none; font-weight: 600; transition: color 0.2s; }
.topbar-actions a i { color: #22c55e; }
.topbar-actions a:hover { color: #f59e0b; }

/* HEADER */
.editorial-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.master-logo {
    width: 50px; height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.brand-title {
    display: block;
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.brand-sub {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #4b5563;
    font-weight: 600;
}

.editorial-nav {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.editorial-nav a {
    text-decoration: none;
    color: #4b5563;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s;
}

.editorial-nav a:hover, .editorial-nav a.active {
    color: #2563eb;
}

/* HERO SECTION */
.hero-editorial {
    padding: 90px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f7f5f0 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.editorial-tag {
    display: inline-block;
    background-color: #e0e7ff;
    color: #3730a3;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-copy h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #111827;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-lead {
    font-size: 1.08rem;
    color: #4b5563;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 45px;
}

.btn-editorial-primary {
    background-color: #1e293b;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}
.btn-editorial-primary:hover { background-color: #0f172a; }

.btn-editorial-outline {
    background-color: transparent;
    color: #1e293b;
    border: 2px solid #cbd5e1;
    padding: 12px 26px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}
.btn-editorial-outline:hover { border-color: #1e293b; }

.hero-metrics {
    display: flex;
    gap: 30px;
    border-top: 1px solid #e5e7eb;
    padding-top: 25px;
}

.metric strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: #111827;
}

.metric span {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.hero-visual {
    position: relative;
}

.hero-frame {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    background: #fff;
    border: 1px solid #e5e7eb;
}

.hero-carousel {
    position: relative;
    height: 420px;
}

.hero-carousel img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-carousel img.active { opacity: 1; }

/* ================================================================= *
   FONDOS PASTELES VIVOS Y DIFERENCIADOS POR SECCIÓN
   ================================================================= */
.editorial-section {
    padding: 90px 0;
}

/* 1. Manifiesto / Quiénes Somos -> Crema cálido vivo */
.section-bg-cream { 
    background: linear-gradient(135deg, #fcf9f2 0%, #f4efe6 100%); 
}

/* 2. Catálogo -> Celeste pastel fresco y llamativo */
.section-bg-sky { 
    background: linear-gradient(135deg, #f0f7ff 0%, #e2effe 100%); 
}

/* 3. Producción -> Menta pastel natural y elegante */
.section-bg-sage { 
    background: linear-gradient(135deg, #f2f7f4 0%, #e5f0eb 100%); 
}

/* 4. Clientes -> Lavanda pastel armónico */
.section-bg-lavender { 
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); 
}

/* 5. Certificaciones -> Melocotón pastel cálido */
.section-bg-peach { 
    background: linear-gradient(135deg, #fffaf0 0%, #feefd6 100%); 
}

/* 6. Contacto -> Arena pastel suave y acogedor */
.section-bg-sand { 
    background: linear-gradient(135deg, #faf6f0 0%, #f0eae1 100%); 
}

.section-heading-center {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 55px auto;
}

.mini-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #6b7280;
    font-weight: 700;
    display: block;
    margin-bottom: 8px;
}

.section-heading-center h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.5px;
}

.heading-rule {
    width: 50px; height: 3px;
    background-color: #cbd5e1;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* MANIFIESTO / NOSOTROS */
.manifesto-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.lead-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

.manifesto-text p {
    color: #4b5563;
    margin-bottom: 15px;
}

.feature-checklist {
    list-style: none;
    margin-top: 25px;
}

.feature-checklist li {
    margin-bottom: 12px;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-checklist i { color: #16a34a; }

.video-card-holder {
    height: 340px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    background: #fff;
    border: 1px solid #e5e7eb;
}

.video-card-holder video {
    width: 100%; height: 100%; object-fit: cover;
}

/* CATÁLOGO GRID */
.catalog-editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.catalog-item-card, .corp-card-item, .cert-card-box, .contact-form-holder, .contact-details-holder, .production-story-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.catalog-item-card:hover, .corp-card-item:hover, .cert-card-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.06);
}

.card-img-holder {
    height: 200px;
    overflow: hidden;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.card-img-holder img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.catalog-item-card:hover .card-img-holder img { transform: scale(1.04); }

/* REGLA ESPECIAL PARA EL VIDEO EN EL CATÁLOGO */
.card-img-holder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 10px;
}

.card-content p {
    font-size: 0.92rem;
    color: #4b5563;
    margin-bottom: 15px;
}

.sub-specs {
    list-style: none;
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
}
.sub-specs li {
    font-size: 0.82rem;
    color: #6b7280;
    margin-bottom: 6px;
    position: relative;
    padding-left: 12px;
}
.sub-specs li::before {
    content: '•';
    position: absolute; left: 0; color: #2563eb;
}

/* PRODUCTION STORY */
.production-story-box {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    color: #374151;
}

/* CLIENTS */
.clients-visual-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.corp-card-item {
    padding: 20px;
    text-align: center;
    cursor: pointer;
}
.corp-card-item img {
    width: 100%; height: 160px; object-fit: contain;
    background: #f9fafb; border-radius: 6px; padding: 10px;
    margin-bottom: 12px;
}
.corp-card-item p { font-weight: 600; color: #374151; font-size: 0.9rem; }

.clients-directory-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.directory-pill {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4b5563;
}

/* CERTIFICACIONES GRID */
.certs-editorial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.cert-card-box {
    padding: 25px 20px;
    text-align: center;
    cursor: pointer;
}
.cert-card-box img {
    width: 100%; height: 140px; object-fit: contain;
    background: #f9fafb; padding: 10px; border-radius: 6px;
    margin-bottom: 15px;
}
.cert-card-box h3 { font-size: 1.05rem; font-weight: 700; color: #111827; margin-bottom: 5px; }
.cert-card-box p { font-size: 0.82rem; color: #6b7280; }

/* CONTACTO */
.contact-editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-holder, .contact-details-holder {
    padding: 40px;
}

.contact-form-holder h3, .contact-details-holder h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 25px;
}

.form-row { margin-bottom: 20px; }
.form-row label {
    display: block; font-size: 0.85rem; font-weight: 600; color: #374151; margin-bottom: 6px;
}
.form-row input, .form-row textarea {
    width: 100%; padding: 12px 16px;
    background: #f9fafb; border: 1px solid #d1d5db;
    border-radius: 8px; font-size: 0.95rem; color: #111827;
}
.form-row input:focus, .form-row textarea:focus {
    outline: none; border-color: #2563eb; background: #fff;
}

.map-frame-box {
    height: 220px; border-radius: 8px; overflow: hidden; margin-bottom: 20px; border: 1px solid #e5e7eb;
}

.specs-contact-list { list-style: none; }
.specs-contact-list li {
    font-size: 0.9rem; color: #4b5563; margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px;
}
.specs-contact-list i { color: #f59e0b; margin-top: 4px; }

/* FOOTER */
.editorial-footer {
    background-color: #ffffff;
    color: #111827;
    padding: 35px 0;
    border-top: 2px solid #e5e7eb;
    font-size: 0.9rem;
    font-weight: 600;
}

.editorial-footer p {
    color: #111827 !important;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* MODAL */
.modal-overlay {
    display: none; position: fixed; z-index: 99999;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(17, 24, 39, 0.85);
    padding-top: 60px; text-align: center;
}
.modal-image-content {
    margin: auto; display: block; max-width: 85%; max-height: 85vh; border-radius: 8px; object-fit: contain;
}
.modal-close {
    position: absolute; top: 25px; right: 40px;
    color: #fff; font-size: 45px; font-weight: bold; cursor: pointer;
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .hero-grid, .manifesto-grid, .contact-editorial-grid { grid-template-columns: 1fr; }
    .hero-copy h1 { font-size: 2.3rem; }
    .header-flex { flex-direction: column; gap: 15px; text-align: center; }
}

/* MEJORAS ESPECÍFICAS PARA TELÉFONOS MÓVILES */
@media(max-width: 768px) {
    .editorial-container {
        padding: 0 15px;
    }

    .header-flex {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .editorial-nav {
        justify-content: center;
        gap: 12px;
        font-size: 0.85rem;
    }

    .hero-copy h1 {
        font-size: 2.1rem;
    }

    .hero-editorial {
        padding: 50px 0;
    }

    .editorial-section {
        padding: 50px 0;
    }

    .contact-editorial-grid, .manifesto-grid, .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-form-holder, .contact-details-holder {
        padding: 20px;
    }

    .topbar-flex {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .topbar-info {
        justify-content: center;
        gap: 10px;
    }
}