/*
Theme Name: SIMPLE Software
Theme URI: https://simplesoftware.com.ar
Author: SIMPLE Software
Author URI: https://simplesoftware.com.ar
Description: Theme nativo ultra liviano, sin dependencias de terceros, optimizado para el ecosistema WooCommerce de SIMPLE Software con estilo Office 2007.
Version: 2.4.0
Text Domain: simple-software
*/

/* ==========================================================================
   1. RESET BASE & BOX SIZING
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: #1b365d;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: #0f2342;
}

/* ==========================================================================
   2. ESTRUCTURA Y CONTENEDORES GLOBALES
   ========================================================================== */
.simple-container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ==========================================================================
   3. CABECERA NATIVA ESTILO OFFICE 2007 (SIMPLE Software)
   ========================================================================== */
.simple-site-header {
    background: linear-gradient(180deg, #244875 0%, #1b365d 50%, #0f2342 100%);
    border-bottom: 3px solid #00a8ff;
    padding: 10px 0;
    position: relative;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.simple-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simple-logo {
    display: flex;
    align-items: center;
}

.simple-logo img {
    max-height: 52px;
    width: auto;
    display: block;
}

.simple-logo a {
    font-size: 1.5rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.simple-logo a span {
    color: #ffbd69;
}

/* Navegación Base Office 2007 */
.simple-main-nav {
    display: flex;
    align-items: center;
}

.simple-main-nav ul,
.simple-main-nav ul.simple-menu,
.simple-main-nav ul.simple-menu-fallback {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 4px;
}

.simple-main-nav ul li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.simple-main-nav ul li a {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 8px 16px;
    display: block;
    text-decoration: none;
    border-radius: 4px;
    white-space: nowrap;
    border: 1px solid transparent;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
    transition: all 0.2s ease-in-out;
}

/* Iluminación Naranja Claro */
.simple-main-nav ul li a:hover,
.simple-main-nav ul li.current-menu-item > a,
.simple-main-nav ul li.current-menu-ancestor > a {
    background: linear-gradient(180deg, #ffe0b2 0%, #ffbd69 45%, #f09600 50%, #e58000 100%);
    color: #000000 !important;
    border: 1px solid #d47000;
    border-radius: 4px;
    text-shadow: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 2px 4px rgba(0,0,0,0.2);
}

/* Submenús Desplegables (Despliegue Lateral Estricto a la Derecha) */
.simple-main-nav ul li ul,
.simple-main-nav ul li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1b365d;
    min-width: 240px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    border: 1px solid #284b7c;
    border-top: 3px solid #ffbd69;
    border-radius: 0 0 6px 6px;
    display: none;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 5px 0;
    z-index: 100000;
}

.simple-main-nav ul li:hover > ul,
.simple-main-nav ul li.focus > ul {
    display: flex;
}

.simple-main-nav ul li ul li {
    width: 100%;
    position: relative;
}

.simple-main-nav ul li ul li a {
    padding: 10px 18px;
    border-bottom: 1px solid #284b7c;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 0;
    text-shadow: none;
}

.simple-main-nav ul li ul li:last-child a {
    border-bottom: none;
}

.simple-main-nav ul li ul li a:hover {
    background: linear-gradient(180deg, #ffe0b2 0%, #ffbd69 45%, #f09600 50%, #e58000 100%) !important;
    color: #000000 !important;
    padding-left: 22px;
}

.simple-main-nav ul li.menu-item-has-children > a::after {
    content: " ▾";
    font-size: 0.8rem;
    color: #ffbd69;
}

.simple-main-nav ul li ul li.menu-item-has-children > a::after {
    content: " ▸";
    float: right;
    color: #ffbd69;
}

.simple-main-nav ul li ul li a:hover::after {
    color: #000000;
}

.simple-main-nav ul li ul li ul,
.simple-main-nav ul li ul li ul.sub-menu {
    top: 0 !important;
    left: 100% !important;
    border-top: 1px solid #284b7c !important;
    border-left: 3px solid #ffbd69 !important;
    border-radius: 0 6px 6px 6px !important;
}

/* ==========================================================================
   4. COMPONENTES Y SHORTCODES
   ========================================================================== */
.simple-vc-row {
    width: 100%;
    margin: 0;
    padding: 0;
}

.simple-vc-row-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.simple-row-wrapper,
.simple-vc-row-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.simple-vc-col {
    padding-left: 5px;
    padding-right: 5px;
    box-sizing: border-box;
}

.simple-vc-col-12 { flex: 0 0 100%; max-width: 100%; }
.simple-vc-col-6  { flex: 0 0 50%;  max-width: 50%; }
.simple-vc-col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.simple-vc-col-3  { flex: 0 0 25%;  max-width: 25%; }
.simple-vc-col-2  { flex: 0 0 16.666666%; max-width: 16.666666%; }

.simple-vc-text-block {
    margin-bottom: 15px;
    width: 100%;
}

.simple-vc-icon-wrapper {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    width: 100%;
}
.simple-vc-icon-wrapper.align-center { justify-content: center; text-align: center; }
.simple-vc-icon-wrapper.align-left { justify-content: flex-start; }
.simple-vc-icon-wrapper.align-right { justify-content: flex-end; }

.simple-vc-icon-wrapper i {
    display: inline-block;
    line-height: 1;
}

.simple-vc-icon-wrapper.size-xl i { font-size: 3.5rem; }
.simple-vc-icon-wrapper.size-lg i { font-size: 2.5rem; }
.simple-vc-icon-wrapper.size-md i { font-size: 1.8rem; }

.simple-vc-icon-wrapper.color-sky i { color: #00a8ff; }
.simple-vc-icon-wrapper.color-blue i { color: #1b365d; }

.simple-vc-image-wrapper {
    margin-bottom: 15px;
    width: 100%;
}
.simple-vc-image-wrapper.align-center img { margin: 0 auto; }
.simple-vc-image-wrapper.align-left img { margin-right: auto; }
.simple-vc-image-wrapper.align-right img { margin-left: auto; }

.simple-vc-image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.simple-vc-image-wrapper.vc_box_shadow_3d img {
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-radius: 8px;
}

.simple-btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(180deg, #00a8ff 0%, #0066cc 100%);
    color: #ffffff !important;
    text-align: center;
    border-radius: 6px;
    font-weight: 800;
    border: 1px solid #004a99;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.simple-btn:hover {
    background: linear-gradient(180deg, #ffe0b2 0%, #ffbd69 45%, #f09600 50%, #e58000 100%) !important;
    color: #000000 !important;
    border-color: #d47000;
    transform: translateY(-2px);
}

/* ==========================================================================
   5. GRILLA PARALELA LADO A LADO - DESARROLLOS ESPECIALES [clients]
   ========================================================================== */
.simple-clients-block {
    margin: 40px 0;
    text-align: center;
    width: 100%;
}

.simple-clients-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1b365d;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.simple-clients-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #ffbd69;
}

/* GRILLA FLEXBOX EXPLÍCITA PARA MOSTRAR LAS 5 TARJETAS EN LÍNEA */
.simple-clients-grid-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 15px;
    width: 100%;
}

.simple-client-card-item {
    flex: 1 1 220px;
    max-width: 250px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 4px solid #1b365d;
    border-radius: 10px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 240px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.simple-client-card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

.simple-client-logo-box {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.simple-client-logo-box img {
    max-height: 65px;
    width: auto;
    object-fit: contain;
}

.simple-client-software-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1b365d;
    margin-bottom: 12px;
    line-height: 1.3;
    text-align: center;
}

.simple-client-software-link {
    display: block;
    width: 100%;
    padding: 9px 12px;
    background: linear-gradient(180deg, #ffe0b2 0%, #ffbd69 45%, #f09600 50%, #e58000 100%);
    color: #000000 !important;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid #d47000;
    text-align: center;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease;
}

.simple-client-software-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* ==========================================================================
   6. BLOG NATIVO Y NOTICIAS
   ========================================================================== */
.simple-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.simple-post-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.simple-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.simple-post-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #f1f5f9;
    position: relative;
}

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

.simple-post-card:hover .simple-post-thumbnail img {
    transform: scale(1.05);
}

.simple-post-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1b365d 0%, #0f2342 100%);
    color: #ffbd69;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.simple-post-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.simple-post-meta {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 12px;
}

.simple-post-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.simple-post-title a {
    color: #1b365d;
    text-decoration: none;
}

.simple-post-title a:hover {
    color: #00a8ff;
}

.simple-post-excerpt {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.simple-post-footer {
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    margin-top: auto;
}

/* ==========================================================================
   7. WOOCOMMERCE TIENDA, CATÁLOGO Y PAGINACIÓN
   ========================================================================== */
.woocommerce-page .simple-container,
.woocommerce .simple-container {
    margin-top: 40px;
    margin-bottom: 40px;
}

ul.products,
.simple-products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 30px 0 !important;
    width: 100% !important;
}

ul.products li.product,
.simple-product-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    text-align: center !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    margin: 0 !important;
    width: 100% !important;
    float: none !important;
}

ul.products li.product:hover,
.simple-product-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08) !important;
}

ul.products li.product img {
    margin: 0 auto 15px auto !important;
    max-height: 180px !important;
    width: auto !important;
    object-fit: contain !important;
}

.woocommerce-loop-product__title,
.simple-product-title {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin: 10px 0 !important;
    color: #1b365d !important;
    line-height: 1.3 !important;
}

.price,
.simple-product-price {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #10b981 !important;
    margin-bottom: 15px !important;
}

.simple-pagination-wrapper .woocommerce-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
}

.simple-pagination-wrapper ul.page-numbers {
    display: flex !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 8px !important;
    align-items: center !important;
}

.simple-pagination-wrapper ul.page-numbers li {
    margin: 0 !important;
    padding: 0 !important;
}

.simple-pagination-wrapper ul.page-numbers li a,
.simple-pagination-wrapper ul.page-numbers li span {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    background-color: #ffffff !important;
    color: #1b365d !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out !important;
}

.simple-pagination-wrapper ul.page-numbers li span.current {
    background-color: #ffbd69 !important;
    color: #000000 !important;
    border-color: #d47000 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.simple-pagination-wrapper ul.page-numbers li a:hover {
    background-color: #1b365d !important;
    color: #ffffff !important;
    border-color: #1b365d !important;
}

/* ==========================================================================
   8. WOOCOMMERCE FICHA INDIVIDUAL DE PRODUCTO (SINGLE PRODUCT)
   ========================================================================== */
.simple-single-product-wrapper {
    margin-top: 20px;
}

.simple-product-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.simple-product-gallery {
    flex: 1 1 400px;
    max-width: 500px;
}

.simple-product-gallery img {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.simple-product-summary {
    flex: 1 1 500px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.simple-single-title {
    font-size: 2.2em;
    font-weight: 900;
    color: #1b365d;
    margin-bottom: 15px;
    line-height: 1.2;
}

.simple-single-price {
    font-size: 1.8em;
    font-weight: 800;
    color: #10b981;
    margin-bottom: 20px;
}

.simple-single-excerpt {
    font-size: 1.05em;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.simple-single-add-to-cart form.cart {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    margin-bottom: 25px;
}

.simple-single-add-to-cart .quantity input.qty {
    width: 70px;
    height: 48px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
}

.simple-single-add-to-cart button.single_add_to_cart_button {
    height: 48px;
    padding: 0 35px;
    background: linear-gradient(180deg, #ffe0b2 0%, #ffbd69 45%, #f09600 50%, #e58000 100%) !important;
    color: #000000 !important;
    font-size: 1em !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    border: 1px solid #d47000 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
}

.simple-single-add-to-cart button.single_add_to_cart_button:hover {
    background: linear-gradient(180deg, #00a8ff 0%, #0066cc 100%) !important;
    color: #ffffff !important;
    border-color: #004a99 !important;
    transform: translateY(-2px);
}

.simple-single-meta {
    font-size: 0.9em;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
}

.simple-single-meta span {
    display: block;
    margin-bottom: 5px;
}

.simple-product-description-tabs {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.simple-section-title {
    font-size: 1.6em;
    font-weight: 800;
    color: #1b365d;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #ffbd69;
}

.simple-product-body {
    font-size: 1em;
    color: #2c3e50;
    line-height: 1.7;
}

/* ==========================================================================
   9. PIE DE PÁGINA (SIMPLE Software)
   ========================================================================== */
.simple-site-footer {
    background: linear-gradient(180deg, #1b365d 0%, #0f2342 100%);
    color: #cbd5e1;
    padding: 40px 0 25px 0;
    margin-top: 60px;
    border-top: 3px solid #ffbd69;
    font-size: 0.9rem;
}

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

.simple-footer-wrapper strong {
    color: #ffffff;
}

/* ==========================================================================
   10. RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1200px) {
    ul.products,
    .simple-products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

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

    .simple-client-card-item {
        flex: 1 1 30%;
        max-width: 30%;
    }
}

@media (max-width: 992px) {
    ul.products,
    .simple-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .simple-header-wrapper {
        flex-direction: column;
        gap: 15px;
    }

    .simple-main-nav ul,
    .simple-main-nav ul.simple-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .simple-vc-col-6, 
    .simple-vc-col-4, 
    .simple-vc-col-3,
    .simple-vc-col-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .simple-product-hero {
        flex-direction: column;
    }

    .simple-product-gallery {
        max-width: 100%;
    }

    .simple-client-card-item {
        flex: 1 1 45%;
        max-width: 45%;
    }
}

@media (max-width: 600px) {
    ul.products,
    .simple-products-grid,
    .simple-blog-grid {
        grid-template-columns: 1fr !important;
    }

    .simple-main-nav ul,
    .simple-main-nav ul.simple-menu {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .simple-main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .simple-main-nav ul li ul,
    .simple-main-nav ul li ul.sub-menu {
        position: relative;
        top: 0;
        width: 100%;
        box-shadow: none;
    }

    .simple-footer-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .simple-client-card-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
}