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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Responsivo */
header {
    background: #000000;
    color: white;
    padding: 0.8rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    color: #00d1ff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
}

header .menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

header .menu a {
    color: white;
    text-decoration: none;
    transition: 0.3s;
    font-weight: 500;
}

header .menu a.activo, header .menu a:hover {
    color: #00d1ff;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background-color: white;
    transition: 0.3s;
}

/* Slider Optimizado y Responsivo */
.slider-container {
    position: relative;
    height: 400px; /* Altura estándar desktop */
    overflow: hidden;
    background: #000;
}

.slider {
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajusta la imagen a la altura sin deformar */
    object-position: center;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.5));
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.slide-content h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 0.5rem;
}

.slide-content p {
    font-size: 1.5rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: background 0.3s;
}

.prev:hover, .next:hover { background: rgba(0, 209, 255, 0.5); }
.prev { left: 20px; }
.next { right: 20px; }

/* Sección Bienvenida Corporativa */
.bienvenida-corp {
    background: white;
    padding: 3rem 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.bienvenida-content h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.bienvenida-content h2 .calipso { color: #00d1ff !important; }

.mision-resumen p {
    font-size: 1.1rem;
    color: #555;
    max-width: 900px;
    margin: 0 auto;
}

.link-ver-mas {
    color: #00d1ff;
    text-decoration: none;
    font-weight: 600;
    margin-left: 5px;
    transition: 0.3s;
}

/* Grid de Categorías */
.categorias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.categoria-card {
    background: linear-gradient(to right, #e0e0e0, #ffffff);
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    text-decoration: none;
    color: #000000;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(128, 128, 128, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.categoria-info {
    flex: 1;
    padding-right: 1rem;
    line-height: 1.2;
}

.categoria-info .prim-palabra { font-size: 1.8rem; display: inline-block; line-height: 1; color: #00d1ff; }

.categoria-img { width: 45%; height: 110px; flex-shrink: 0; }
.categoria-img img { width: 100%; height: 100%; object-fit: contain; }

/* Filtros Categorías en Productos.php (Modo Barra Profesional) */
.filtros {
    background: #000000;
    padding: 0.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow-x: auto;
    scrollbar-width: none;
}

.filtros::-webkit-scrollbar { display: none; }

.filtros h3 { display: none; }

.filtros ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.2rem;
    min-width: max-content;
}

.filtros ul li a {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.filtros ul li a.activo {
    background: #00d1ff;
    color: #000000;
    font-weight: bold;
}

/* Productos */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.producto-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.producto-card img { width: 100%; height: 110px; object-fit: cover; }
.producto-info { padding: 1rem; }
.producto-acciones { display: flex; gap: 0.5rem; justify-content: space-between; align-items: center; margin-top: 1rem; }

/* Detalle de producto */
.producto-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.producto-imagen img { width: 100%; border-radius: 10px; }

/* Contacto y Formularios */
.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contacto-info, .contacto-formulario {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: #2c3e50; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: #00d1ff;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #00d1ff;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s;
}

.btn:hover { background: #00b8e6; transform: translateY(-2px); }

.btn-principal { background: #27ae60; color: white; }
.btn-agregar { background: #000; color: #00d1ff; border: 1px solid #00d1ff; }
.btn-agregar:hover { background: #00d1ff; color: #000; }

/* Tablas */
.tabla-carrito {
    width: 100%;
    background: white;
    border-collapse: collapse;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tabla-carrito th, .tabla-carrito td { padding: 1.2rem; text-align: left; border-bottom: 1px solid #eee; }
.tabla-carrito th { background: #000; color: white; }

/* Footer */
footer { background: #000; color: #00d1ff; text-align: center; padding: 2rem 0; margin-top: 4rem; }

/* Responsivo */
@media (max-width: 992px) {
    .contacto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .filtros ul { justify-content: flex-start; }

    .menu-toggle { display: flex; }
    header .menu {
        position: fixed;
        top: 55px; left: -100%;
        width: 100%; height: calc(100vh - 55px);
        background: #000;
        flex-direction: column;
        padding-top: 2rem;
        transition: 0.4s;
    }
    header .menu.active { left: 0; }

    .slider-container { height: 200px; } /* Reducido para evitar recorte excesivo */
    .slide-content { padding: 1rem; }
    .slide-content h1 { font-size: 1.4rem; }
    .slide-content p { font-size: 0.9rem; } /* Ajustado para móviles */

    .categorias-grid { grid-template-columns: 1fr; }
    .producto-detalle { grid-template-columns: 1fr; }

    .tabla-carrito thead { display: none; }
    .tabla-carrito tr { display: block; border: 1px solid #eee; margin-bottom: 1rem; padding: 1rem; }
    .tabla-carrito td { display: flex; justify-content: space-between; border: none; padding: 0.5rem 0; }
    .tabla-carrito td::before { content: attr(data-label); font-weight: bold; }

    .bienvenida-content h2 { font-size: 1.5rem; }
    .mision-resumen p { font-size: 1rem; }
}

@media (max-width: 480px) {
    .slider-container { height: 150px; } /* Más bajo para móviles pequeños */
    .slide-content h1 { font-size: 1.1rem; }
    .slide-content p { font-size: 0.8rem; } /* Ajustado para móviles muy pequeños */
}