/*
Theme Name: Mi Tema Empresa
Theme URI: https://yourdomain.com
Author: Your Name
Description: Tema personalizado para negocio - bilingue ready.
Version: 1.0
Text Domain: mi-tema-empresa
*/

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: #222;
  background: #fff;
}

/* Header */
.site-header {
  background: #111;
  color: #fff;
  padding: 10px 20px;
}
.site-branding { display:flex; align-items:center; gap:12px; }
.site-title a { color:#fff; text-decoration:none; font-size:1.2rem; font-weight:bold; }

/* Nav */
.nav-menu {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:6px;
}
.nav-menu li a {
  color:#fff;
  text-decoration:none;
  padding:10px 14px;
  display:block;
  font-weight:600;
}
.nav-menu li a:hover { background: rgba(255,255,255,0.06); border-radius:6px; }

/* Landing page */
.landing-page {
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 80px 20px;
  color: #fff;
  background: linear-gradient(135deg, #FFD700, #FF8C00, #FF00AA);
  background-size: 400% 400%;
  animation: gradientShift 12s ease infinite;
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.landing-page h1 { font-size:2.6rem; margin:0 0 12px; }
.landing-page p { font-size:1.15rem; margin:0 0 20px; }

/* CTA button */
.cta-button {
  display:inline-block;
  padding:14px 28px;
  background:#FF6600;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  border-radius:50px;
  box-shadow:0 6px 18px rgba(0,0,0,0.2);
  transition: transform .2s ease, background .2s ease;
}
.cta-button:hover { transform: translateY(-3px); background:#FF00AA; }

/* Disk animation */
.disk-animation { margin-top:28px; display:flex; justify-content:center; }
.disk {
  width:110px; height:110px; border-radius:50%;
  background: radial-gradient(circle at center, #444 15%, #888 40%, #FF6600 70%, #FF00AA 100%);
  border:6px solid rgba(0,0,0,0.25);
  box-shadow:0 8px 30px rgba(0,0,0,0.25);
  animation: spin 1.9s linear infinite;
}
@keyframes spin { from{transform:rotate(0);} to{transform:rotate(360deg);} }

/* Contact page */
.contact-page { padding:60px 18px; max-width:900px; margin:0 auto; background:#fff; color:#222; }
.contact-block { background:#f7f7f7; padding:18px; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.04); }

/* Products grid */
.products-grid { display:grid; gap:18px; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); padding:20px; }
.product-card { background:#fff; padding:12px; border-radius:8px; box-shadow:0 6px 20px rgba(0,0,0,0.05); }
.product-card img { width:100%; height:160px; object-fit:cover; border-radius:6px; }
.product-card h3 { margin:10px 0 6px; font-size:1.05rem; }

/* Footer */
.site-footer { background:#111; color:#ddd; text-align:center; padding:18px; margin-top:30px; }

/* Responsive */
@media (max-width:768px){
  .landing-page h1 { font-size:2rem; }
  .cta-button { padding:12px 20px; }
}

/* ==========================================
   SOLUCIÓN COMPLETA PARA EL LOGO
   Agrega este código al FINAL de tu style.css
   ========================================== */

/* ==== LOGO INDUSTRIAL MODERNO - VERSIÓN CORREGIDA ==== */

/* Resetear cualquier estilo previo del logo */
.logo {
    display: inline-flex !important;
    align-items: center !important;
    gap: 15px !important;
    background: white !important;
    padding: 15px 25px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
    border: 1px solid #e0e0e0 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    text-transform: none !important; /* Evitar mayúsculas automáticas */
}

.logo:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15) !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* Resetear el ícono */
.logo-icon {
    width: 45px !important;
    height: 45px !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #FF6600, #FF00AA) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3) !important;
    flex-shrink: 0 !important;
}

.logo-icon::before {
    content: "" !important;
    position: absolute !important;
    width: 18px !important;
    height: 18px !important;
    background: white !important;
    border-radius: 50% !important;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.1) !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
}

/* Texto del logo con la línea industrial */
.logo-text {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 300 !important;
    font-size: 26px !important;
    color: #222 !important;
    letter-spacing: 1px !important;
    position: relative !important;
    text-transform: lowercase !important; /* Forzar minúsculas */
    margin: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
}

.logo-text::before {
    content: "" !important;
    position: absolute !important;
    top: 50% !important;
    left: -8px !important;
    width: 3px !important;
    height: 120% !important;
    background: linear-gradient(135deg, #FF6600, #FF00AA) !important;
    transform: translateY(-50%) !important;
    border-radius: 2px !important;
}

/* Sobreescribir cualquier estilo del header que pueda interferir */
.site-header {
    background: #333 !important; /* Mantener el fondo oscuro del header */
}

.site-header .logo {
    background: white !important; /* Asegurar que el logo tenga fondo blanco */
}

/* ==== RESPONSIVE MEJORADO ==== */
@media (max-width: 768px) {
    .logo {
        padding: 12px 20px !important;
        gap: 12px !important;
    }
    
    .logo-icon {
        width: 35px !important;
        height: 35px !important;
    }
    
    .logo-icon::before {
        width: 14px !important;
        height: 14px !important;
    }
    
    .logo-text {
        font-size: 20px !important;
        letter-spacing: 0.5px !important;
    }
    
    .logo-text::before {
        width: 2px !important;
        left: -6px !important;
    }
}

@media (max-width: 480px) {
    .logo {
        padding: 10px 16px !important;
        gap: 10px !important;
    }
    
    .logo-icon {
        width: 30px !important;
        height: 30px !important;
    }
    
    .logo-icon::before {
        width: 12px !important;
        height: 12px !important;
    }
    
    .logo-text {
        font-size: 18px !important;
    }
}

/* ==== FORZAR ESTILOS SI HAY CONFLICTOS ==== */

/* Si el texto sigue en mayúsculas, usar esto */
.logo .logo-text,
.logo span,
.logo-text {
    text-transform: lowercase !important;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 300 !important;
}

/* Si el fondo no es blanco */
a.logo,
.logo {
    background-color: white !important;
    background-image: none !important;
}

/* Si el ícono no se ve bien */
.logo .logo-icon,
.logo-icon {
    background: linear-gradient(135deg, #FF6600, #FF00AA) !important;
    background-color: #FF6600 !important; /* Fallback */
}


/* Header general */
.site-header {
    background: #111; /* fondo oscuro como en tu primera imagen */
    padding: 10px 20px;
    color: #fff;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.site-logo .logo {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

/* Menú */
.site-navigation .main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.site-navigation .main-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.site-navigation .main-menu li a:hover {
    color: #f39c12; /* efecto hover en amarillo */
}

/* Idiomas */
.language-switcher {
    margin-left: 20px;
}

.language-switcher a {
    color: #fff;
    text-decoration: none;
    margin-left: 8px;
    font-weight: bold;
}

.language-switcher img {
    vertical-align: middle;
    margin-right: 4px;
}
/* Forzar menú en horizontal */
.site-navigation {
    margin-left: auto; /* empuja el menú a la derecha */
}

.site-navigation .main-menu {
    display: flex;
    flex-direction: row; /* asegura fila horizontal */
    gap: 20px; /* separación entre items */
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation .main-menu li {
    display: inline-block;
}

.site-navigation .main-menu li a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 12px;
}

.site-navigation .main-menu li a:hover {
    color: #f39c12; /* hover amarillo */
}

/* ==========================================
   CSS PARA SISTEMA DE PRODUCTOS COMPLETO
   Agrega esto al final de tu style.css
   ========================================== */

/* ==== PÁGINA DE PRODUCTOS ==== */
.productos-page {
    min-height: 100vh;
    background: white;
    padding-top: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.page-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==== FILTROS DE CATEGORÍA ==== */
.product-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    padding: 20px 0;
}

.filter-btn {
    padding: 12px 24px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.filter-btn:hover {
    background: #FF6600;
    color: white;
    border-color: #FF6600;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #FF6600;
    color: white;
    border-color: #FF6600;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

/* ==== GRID DE PRODUCTOS ==== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* ==== IMAGEN DEL PRODUCTO ==== */
.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
}

.placeholder-icon {
    text-align: center;
}

.placeholder-icon span {
    font-size: 3rem;
    color: #ccc;
    display: block;
    margin-bottom: 10px;
}

/* Overlay de producto */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.view-details {
    color: white;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid white;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.view-details:hover {
    background: white;
    color: #333;
}

/* Badge de disponibilidad */
.availability-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.availability-badge.disponible {
    background: #28a745;
    color: white;
}

.availability-badge.agotado {
    background: #dc3545;
    color: white;
}

.availability-badge.pedido {
    background: #ffc107;
    color: #333;
}

/* ==== CONTENIDO DEL PRODUCTO ==== */
.product-content {
    padding: 25px;
}

.product-title a {
    color: #333;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    transition: color 0.3s ease;
}

.product-title a:hover {
    color: #FF6600;
}

.product-categories {
    margin-bottom: 15px;
}

.category-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #666;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 5px;
    border: 1px solid #e0e0e0;
}

.product-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.product-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #FF6600;
}

.product-link {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #FF6600;
}

.arrow {
    transition: transform 0.3s ease;
}

.product-link:hover .arrow {
    transform: translateX(3px);
}

/* ==== PÁGINA DE DETALLE DE PRODUCTO ==== */
.product-detail-page {
    min-height: 100vh;
    background: white;
    padding-top: 100px;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 30px;
    padding: 15px 0;
    font-size: 14px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #FF6600;
}

.separator {
    margin: 0 10px;
    color: #ccc;
}

.current {
    color: #333;
    font-weight: 500;
}

/* Contenido del detalle */
.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

/* Galería */
.product-gallery {
    position: sticky;
    top: 120px;
}

.main-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-main-img {
    width: 100%;
    height: auto;
    display: block;
}

.no-image-large {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
}

.placeholder-icon-large {
    text-align: center;
}

.placeholder-icon-large span {
    font-size: 5rem;
    color: #ccc;
    display: block;
    margin-bottom: 15px;
}

/* Información del producto */
.product-info {
    padding: 20px 0;
}

.product-info .product-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
    font-weight: bold;
}

.product-price-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #FF6600;
}

.price-label {
    color: #666;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: #FF6600;
}

.availability-section {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.availability-label {
    color: #666;
    font-weight: 500;
}

.availability-value {
    font-weight: bold;
}

.availability-value.disponible {
    color: #28a745;
}

.availability-value.agotado {
    color: #dc3545;
}

.availability-value.pedido {
    color: #ffc107;
}

/* Secciones de información */
.product-description,
.product-specifications {
    margin: 30px 0;
}

.product-description h3,
.product-specifications h3 {
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.product-description p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 15px;
}

.specs-content {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    font-family: 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* Acciones del producto */
.product-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.btn-contact {
    background: #FF6600;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
}

.btn-contact:hover {
    background: #FF00AA;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 170, 0.3);
}

.btn-back {
    background: transparent;
    color: #666;
    padding: 15px 30px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: #f8f9fa;
    color: #333;
    border-color: #ccc;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .productos-page,
    .product-detail-page {
        padding-top: 80px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .product-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .filter-btn {
        flex-shrink: 0;
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .product-gallery {
        position: static;
    }
    
    .product-info .product-title {
        font-size: 2rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .btn-contact,
    .btn-back {
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .product-card {
        margin: 0 5px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .product-meta {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

/* ==== ANIMACIONES Y EFECTOS ==== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.product-card {
    animation: fadeIn 0.6s ease-out;
}

/* Filtro de categorías con JavaScript */
.product-card.hidden {
    display: none;
}

.product-card.show {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* ==== SIN PRODUCTOS ==== */
.no-products {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    grid-column: 1 / -1;
}

.no-products h3 {
    color: #666;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.no-products p {
    color: #999;
}

/* ==== ESTILOS PARA EL ADMIN ==== */
.form-table th {
    width: 150px;
}

.form-table input[type="text"],
.form-table textarea,
.form-table select {
    width: 100%;
}

/* ==== MEJORAS ADICIONALES ==== */
.product-card .category-tag:hover {
    background: #FF6600;
    color: white;
    border-color: #FF6600;
}

.breadcrumbs .current {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

/* Smooth scroll para navegación */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .product-actions,
    .breadcrumbs,
    .site-header {
        display: none;
    }
    
    .product-detail-content {
        grid-template-columns: 1fr;
    }
}
