/*
Theme Name: Publipromo
Theme URI: https://publipromo.com 
Author: Tu Nombre
Author URI: https://publipromo.com 
Description: Tema personalizado para tienda de productos promocionales
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: publipromo_theme
*/

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

html {
    scroll-behavior: smooth;
}

body, html {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    font-family: Arial, sans-serif;
    background-color: #F9F9F9;
    padding: 0;
}

@media (min-width: 768px) {
    body {
        padding: 0;
    }
}

a {
    text-decoration: none;
    color: inherit;
}

ul, ol {
    list-style: none;
}

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

input, button, textarea {
    font-family: inherit;
    font-size: 1em;
}

button {
    cursor: pointer;
}

h1,h2,h3,h4,h5,h6 {color: #385170;}
/* ==================== CONTENEDOR PRINCIPAL ==================== */

/* --- HEADER RESPONSIVE --- */
/* --- HEADER RESPONSIVE CON MENÚ DESKTOP Y MÓVIL --- */

.site-header {
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    font-family: 'Segoe UI', sans-serif;
}

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

/* Fila superior */
.header-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid rgba(18, 173, 31, 0.87);
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-branding .logo img {
    height: 80px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Búsqueda */
.search-input-wrapper {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
}

.search-input-wrapper input {
    padding: 8px 12px;
    border: none;
    outline: none;
    width: 220px;
}

.search-input-wrapper .search-submit {
    background: #00c070;
    border: none;
    color: white;
    padding: 8px 10px;
    cursor: pointer;
}

/* Carrito */
.cart-icon {
    font-size: 1.4em;
    color: #333;
    text-decoration: none;
}

.cart-icon .cart-count {
    font-size: 0.8em;
    color: #00c070;
    font-weight: bold;
}

/* Botón menú móvil */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 3px;
    transition: 0.3s;
}

/* Menú principal (escritorio) */
/* --- MENÚ PRINCIPAL: 100% ancho con distribución proporcional --- */
/* --- MENÚ PRINCIPAL: 100% ancho, plano, sin efectos --- */
.header-menu-full {
    background-color: #00c070; /* Verde sólido (sin transparencia ni bordes) */
    padding: 0;
    margin: 0;
}

.header-menu-full .menu {
    display: flex;
    justify-content: space-between; /* Distribuye el 100% del ancho */
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.header-menu-full .menu li {
    flex: 1; /* Cada elemento ocupa espacio equitativo */
    margin: 0;
    padding: 0;
}

.header-menu-full .menu a {
    display: block;
    color: white;           /* Texto blanco */
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;  /* Sin subrayado */
    padding: 12px 0;        /* Altura uniforme, sin padding lateral */
    margin: 0;
}





.main-navigation .menu {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 30px;
}

.menu-item-has-children {
    position: relative;
}

/* Submenú - semitransparente */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 192, 112, 0.9);
    min-width: 200px;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      padding-left: 10px;
    animation: fadeIn 0.3s ease forwards;
}

.sub-menu li {
 
}

.sub-menu li a {
    color: white;
    font-weight: normal;
    display: block;
  
}

.menu-item-has-children:hover > .sub-menu {
    display: block;
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- MENÚ MÓVIL --- */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1001;
    overflow-y: auto;
}

.mobile-menu-overlay.show {
    display: block;
}

.mobile-menu {
    background: white;
    width: 90%;
    max-width: 320px;
    height: 100%;
    padding: 20px;
    position: relative;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-header img {
    height: 40px;
}

#close-mobile-menu {
    background: none;
    border: none;
    font-size: 1.8em;
    cursor: pointer;
    color: #333;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
}

.mobile-menu-list .menu-item {
    margin-bottom: 10px;
}

.mobile-menu-list a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    display: block;
}

.mobile-menu-list .sub-menu {
    margin-top: 5px;
    list-style: none;
    padding-left: 15px;
}

.mobile-menu-list .sub-menu li {
    padding: 5px 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .header-menu-full .menu {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .header-right .menu-search-bar {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .header-menu-full {
        display: none;
    }
}




.slide-caption { position:relative; top:-250px; padding: 1em 0 0 2em; font-weight: normal; color:white}
.slide-caption h3 { font-weight: bold; color:white; font-size: 2.5em;}
.carousel-controls { position:relative; top:-120px; padding: 2em 0;}
.slide {  margin-bottom:-100px; height: 340px}


.carousel-controls {
    text-align: right;
    margin: 0 50px 0 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.carousel-controls button {
    background-color: #2C4D6C;
    color: white;
    border: none;
    padding: 12px;
    font-size: 1.1em;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.carousel-controls button svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.2s ease;
}

.carousel-controls button:hover {
    background-color: #1E90FF;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(30, 144, 255, 0.4);
}

.carousel-controls button:hover svg {
    transform: translateX(-1px);
}

.carousel-controls button:active {
    transform: scale(0.95);
}

.carousel-controls button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.5);
}


.mid-page-carousel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 60px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
/* --- OCULTAR SECCIONES EN MÓVIL --- */
@media (max-width: 768px) {
    .category-carousel {
        display: none !important;
    }
}




/* ==================== INICIO SECCIONES SERIGRAFIA-TAMPOGRAFIA-LASER ==================== */
/* Estilos generales para la sección */
  .featured-services {
    padding: 40px 20px;
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
  }

  .services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
  }

  .service-card {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.333% - 14px);
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  }

  .service-image {
    overflow: hidden;
  }

  .service-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3 / 2; /* Mantiene proporción */
    transition: transform 0.4s ease;
  }

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

  .service-info {
    padding: 15px 20px;
    flex-grow: 1;
  }

  .service-info h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #005780;
  }

  .service-info p {
    font-size: 0.9em;
    color: #005780;
  }

  @media (max-width: 768px) {
    .service-card {
      width: calc(50% - 10px);
    }
  }

  @media (max-width: 480px) {
    .service-card {
      width: 100%;
    }
  }







/* ==================== 12 productos destacados index ==================== */
  .productos-destacados-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

.producto-card {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(25% - 15px);
    text-align: center;
    padding: 15px;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.producto-imagen img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: transform 0.4s ease;
}

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

.producto-info h4 {
    font-size: 1em;
    margin: 10px 0 5px;
    color: #2C4D6C;
}

.producto-info p {
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

.producto-info a.ver-producto-btn {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 15px;
    background-color: #2C4D6C;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 0.9em;
    text-align: center;
}

.producto-info a.ver-producto-btn:hover {
    background-color: #1E90FF;
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .producto-card {
        width: calc(50% - 10px);
    }
}

@media (max-width: 480px) {
    .producto-card {
        width: 100%;
    }
}








/* ==================== BUSQUEDA Y CARRITO ==================== */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-icon {
    font-size: 20px;
    color: #333;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
}

.search-icon:hover {
    color: #0073aa;
}

.search-box {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 999;
    min-width: 220px;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.search-box.show {
    display: block;
}

.search-box input[type="search"] {
    width: calc(100% - 80px);
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-box input[type="search"]:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

.search-box input[type="submit"] {
    padding: 8px 12px;
    background-color: #0073aa;
    color: white;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-box input[type="submit"]:hover {
    background-color: #005780;
}

.cart-icon {
    font-size: 20px;
    color: #333;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: #0073aa;
}

.cart-icon::after {
    content: " (0)";
    font-size: 12px;
    color: #999;
    margin-left: 4px;
    vertical-align: super;
}








/* ==================== PRODUCTOS ==================== */
.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px 0;
}

.product-images,
.product-info {
    width: calc(50% - 10px);
    box-sizing: border-box;    
}

.product-main-image img {
    max-width: 70%;
    height: auto;
    border-radius: 0px;
    margin:0 auto;  
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
    border: 1px solid #ddd;
    background-color: #eee;
    margin:0 auto;     
}

.product-thumbnail img {
    width: 60px;
    margin:10px;
    height: auto;
    border-radius: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 2px solid #ccc;
}

.product-thumbnail img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.product-title {
    font-size: 2em;
    margin: 0 0 10px;
    color: #333;
}

.product-excerpt-short {
    font-size: 0.95em;
    color: #666;
    margin-top: 10px;
    display: block;
}

.product-short-info {
    margin-top: 15px;
    font-size: 0.95em;
    color: #555;
}

.product-short-info p {
    margin: 5px 0;
}

.add-to-cart {
    display: inline-block;
    padding: 12px 24px;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #005780;
}

/* ==================== TABLA DE PRECIOS ==================== */
.price-table {
    margin-top: 30px;
}

.price-table h3 {
    font-size: 1.2em;
    color: #0073aa;
    margin-bottom: 10px;
}

.price-table table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    font-size: 0.85em;
}

.price-table th,
.price-table td {
    padding: 12px 16px;
    text-align: center;
    border: 1px solid #ddd;
}

.price-table th {
    background-color: #0073aa;
    color: white;
    font-weight: normal;
}

.price-table tr:hover {
    background-color: #f0f0f0;
}

/* ==================== ACORDEÓN DE PRESUPUESTO ==================== */
.presupuesto-acordeon {
    margin-top: 40px;
}

.accordion-item {
    border-bottom: 1px solid #49bbf0;
}

.accordion-header {
    background-color: #8fcffa;
    color: #333;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    font-size: 1em;
    border: none;
    outline: none;
    text-align: left;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: #0073aa;
}

.accordion-panel {
    display: none;
    padding: 15px;
    background-color: #ddd;
}

.accordion-panel.open {
    display: block;
}

.calculate-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background-color: #0073aa;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.calculate-button:hover {
    background-color: #005780;
}

.result-box {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid #0073aa;
    font-size: 1em;
}

/* ==================== PÁGINA DE TODAS LAS CATEGORÍAS ==================== */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 30px;
}

.categoria-box {
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.categoria-box:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.categoria-box img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.categoria-box h3 {
    font-size: 18px;
    margin: 10px 0 5px;
}

.categoria-box p {
    font-size: 14px;
    color: #666;
}

/* ==================== PÁGINA DE DETALLES DEL PRODUCTO ==================== */
.product-description-full {
    margin-top: 30px;
    font-size: 1em;
    color: #333;
    margin-bottom: 40px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.detail-item {
    background-color: #f9f9f9;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #eee;
}

.detail-item strong {
    display: block;
    font-size: 0.9em;
    color: #777;
    margin-bottom: 4px;
}

.detail-item span {
    font-size: 1em;
    color: #333;
}

/* ==================== PAGINACIÓN ==================== */
.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    margin: 0 5px;
    text-decoration: none;
    color: #0073aa;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #0073aa;
    color: white;
}

.pagination span.current {
    background-color: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* ==================== FOOTER ==================== */
.site-footer {
    background-color: #f5f5f5;
    padding: 30px 0;
    margin-top: 60px;
    border-top: 1px solid #ddd;
    text-align: center;
}

.site-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.site-footer p {
    margin: 0 0 15px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 15px;
}

.footer-menu li a {
    text-decoration: none;
    color: #666;
    font-size: 0.9em;
}

.footer-menu li a:hover {
    color: #0073aa;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .product-container {
        flex-direction: column;
    }

    .product-images,
    .product-info {
        width: 100%;
    }

    .main-navigation ul.menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 10px;
    }

    .header-right {
        margin-top: 10px;
    }

    .categorias-grid {
        padding: 0 20px;
    }
}