* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --dark: #2c3e50;
    --light: #f5f7fa;
    --gray: #7f8c8d;
    --white: #ffffff;
}

body {
    background-color: var(--light);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.head {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo a::before {
    content: "★";
    margin-right: 8px;
    font-size: 1.5rem;
}

.navbar {
    display: flex;
    gap: 1.5rem;
}

.navbar a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar a:hover, .navbar a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.main-content {
    padding: 3rem 0;
    flex: 1;
}

/* ===== HERO SECTION ===== */
.hero {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--white) 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin: 2rem 0 4rem 0;
    border: 1px solid #e8ecef;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 700;
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(106, 17, 203, 0.4);
}

/* ===== SECCIONES Y TÍTULOS ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-title p {
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

/* ===== CARACTERÍSTICAS ===== */
.features-section {
    padding: 4rem 0;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--dark);
    font-weight: 600;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
    font-size: 1rem;
}

/* ===== EQUIPO ===== */
.team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-member {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 4rem;
}

.member-info {
    padding: 1.5rem;
}

.member-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.3rem;
}

.member-info p {
    color: var(--gray);
}

/* ===== PRODUCTOS ===== */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.3rem;
    min-height: auto;
    display: flex;
    align-items: center;
}

.product-info p {
    color: var(--gray);
    margin-bottom: 1rem;
    line-height: 1.6;
    flex: 1;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ===== FORMULARIO DE CONTACTO ===== */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto 3rem;
    border: 1px solid #f0f0f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 500;
}

.form-group label:after {
    content: " *";
    color: #e74c3c;
}

.form-group label[for="telefono"]:after {
    content: "";
}

.form-control {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(106, 17, 203, 0.1);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== ESTILOS WHATSAPP ===== */
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: bold !important;
    border: none !important;
    width: 100%;
    justify-content: center;
    padding: 1rem !important;
    font-size: 1.1rem !important;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #25D366 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3) !important;
}

/* ===== INFORMACIÓN DE CONTACTO ===== */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #f0f0f0;
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

.info-card h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-size: 1.2rem;
}

.info-card p {
    color: var(--gray);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

/* ===== ANIMACIONES ===== */
@keyframes slideInRight {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes slideOutRight {
    from { 
        transform: translateX(0); 
        opacity: 1; 
    }
    to { 
        transform: translateX(100%); 
        opacity: 0; 
    }
}

/* ===== TEXTO JUSTIFICADO Y CENTRADO ===== */
.justified-text {
    text-align: justify;
    text-justify: inter-word;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.justified-text p {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--gray);
}

/* Aplicar texto justificado a las tarjetas de características */
.feature-card .justified-text {
    max-width: 100%;
    margin: 0;
}

.feature-card .justified-text p {
    font-size: 1rem;
    margin-bottom: 1rem;
    text-align: justify;
    text-justify: inter-word;
}

/* Asegurar que el hero mantenga el texto centrado pero justificado */
.hero .justified-text {
    text-align: center;
}

.hero .justified-text p {
    text-align: justify;
    text-justify: inter-word;
}

/* Mejorar el espaciado en las tarjetas */
.feature-card {
    display: flex;
    flex-direction: column;
}

.feature-card h3 {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 1rem;
}

/* Características de productos */
.product-features {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature {
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Detalles de productos */
.product-details {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.detail-item {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

/* Botón en la parte inferior */
.product-info .btn {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* Placeholder para imágenes faltantes */
.product-img:not(:has(img)) {
    color: var(--white);
    font-size: 3rem;
}

/* ===== ESTILOS PARA PEDIDOS ===== */
.pedidos-link {
    background: rgba(255, 255, 255, 0.3) !important;
    font-weight: bold !important;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--dark);
}

/* Acciones de productos */
.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-cotizar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    flex: 1;
}

.btn-pedido {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
    flex: 1;
}

/* Panel de pedidos */
.panel-controls {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-primary { background: var(--primary) !important; }
.btn-secondary { background: #6c757d !important; }
.btn-warning { background: #ffc107 !important; color: #000 !important; }
.btn-danger { background: #dc3545 !important; }

.btn-small {
    padding: 0.3rem 0.8rem !important;
    font-size: 0.8rem !important;
}

.filtros-pedidos {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filtros-pedidos select,
.filtros-pedidos input {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: var(--white);
}

.estadisticas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.estadistica-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.estadistica-card h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--gray);
}

.numero {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
}

.numero.pendiente { color: #ffc107; }
.numero.produccion { color: #17a2b8; }
.numero.completado { color: #28a745; }

/* Tabla de pedidos */
.tabla-pedidos {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.tabla-pedidos th,
.tabla-pedidos td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.tabla-pedidos th {
    background: var(--primary);
    color: var(--white);
    font-weight: 600;
}

.tabla-pedidos tr:hover {
    background: #f8f9fa;
}

.estado-pedido {
    padding: 0.3rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: var(--white);
}

.no-pedidos {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    font-style: italic;
}

/* ===== ESTILOS PARA ADMINISTRACIÓN ===== */
.admin-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.dashboard-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
}

.dashboard-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Secciones de administración */
.admin-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.section-header h3 {
    color: var(--dark);
    margin: 0;
}

/* Gestión de productos */
.productos-lista {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.producto-admin-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.producto-info h4 {
    margin: 0 0 0.5rem 0;
    color: var(--dark);
}

.producto-info p {
    margin: 0 0 1rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.producto-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.producto-actions {
    display: flex;
    gap: 0.5rem;
}

/* Configuración */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.config-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.config-card h4 {
    margin: 0 0 1rem 0;
    color: var(--dark);
}

/* Form actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* ===== ESTILOS PARA EL NUEVO SISTEMA ===== */

/* Estados de pedidos */
.estado-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.estado-pendiente { background: #fff3cd; color: #856404; }
.estado-confirmado { background: #d1ecf1; color: #0c5460; }
.estado-produccion { background: #d4edda; color: #155724; }
.estado-completado { background: #c3e6cb; color: #155724; }
.estado-entregado { background: #d1edf1; color: #0c5460; }

/* ===== ESTILOS PARA LOADING Y ERRORES ===== */
.loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    display: none;
}

.loading p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.loading .fa-spinner {
    font-size: 2rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    text-align: center;
    padding: 2rem;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    color: #721c24;
    margin: 2rem 0;
}

.error-message h3 {
    margin-bottom: 1rem;
    color: #721c24;
}

.error-message p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.success-message {
    text-align: center;
    padding: 2rem;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    margin: 2rem 0;
}

.no-products {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    font-style: italic;
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* Botón de cotización */
.btn-cotizacion {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cotizacion:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 17, 203, 0.3);
}

/* Placeholder para imágenes */
.image-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    border: 2px dashed #dee2e6;
}

.image-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Estadísticas grid */
.estadisticas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Confirmaciones */
.whatsapp-confirmation {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1000;
    animation: slideInRight 0.3s ease;
    max-width: 300px;
}

.whatsapp-confirmation.error {
    background: #dc3545;
}

.whatsapp-confirmation.success {
    background: #28a745;
}

/* ===== MEJORAS PARA MODAL DE PEDIDOS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    overflow-y: auto;
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-content .form-group {
    margin-bottom: 1rem;
}

.modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.modal-content .form-control {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-content .form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.1);
}

.modal-content textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover {
    color: var(--dark);
}

.modal-content .btn-whatsapp {
    margin-top: 1rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navbar {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 4rem 1.5rem;
        margin: 1rem 0 2rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .btn-whatsapp {
        width: 100%;
        justify-content: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Responsive para texto justificado */
    .justified-text p {
        font-size: 1.1rem;
        text-align: left;
    }
    
    .feature-card .justified-text p {
        text-align: left;
    }
    
    .hero .justified-text p {
        text-align: left;
    }
    
    .feature-card h3 {
        min-height: auto;
        font-size: 1.2rem;
    }

    /* Responsive para productos */
    .product-image {
        height: 180px;
    }
    
    .product-img {
        height: 180px;
    }
    
    .product-info h3 {
        min-height: auto;
        font-size: 1.2rem;
    }

    /* Responsive para pedidos */
    .product-actions {
        flex-direction: column;
    }
    
    .panel-controls,
    .filtros-pedidos {
        flex-direction: column;
    }
    
    .tabla-pedidos {
        font-size: 0.8rem;
    }
    
    .tabla-pedidos th,
    .tabla-pedidos td {
        padding: 0.5rem;
    }
    
    .estadisticas {
        grid-template-columns: 1fr 1fr;
    }

    /* Responsive para modal */
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }

    /* Responsive para administración */
    .admin-dashboard {
        grid-template-columns: 1fr;
    }
    
    .producto-admin-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .producto-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }

    /* Responsive para loading y errores */
    .loading {
        padding: 2rem 1rem;
    }
    
    .error-message {
        padding: 1.5rem;
        margin: 1rem 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .feature-card {
        padding: 1.5rem 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }

    /* Responsive para productos */
    .product-image {
        height: 160px;
    }
    
    .product-img {
        height: 160px;
    }

    /* Responsive para modal */
    .modal-content {
        margin: 5% auto;
        padding: 1rem;
    }

    /* Responsive para loading y errores */
    .loading {
        padding: 1.5rem 1rem;
    }
    
    .loading p {
        font-size: 1rem;
    }
    
    .error-message {
        padding: 1rem;
    }
    
    .error-message h3 {
        font-size: 1.1rem;
    }
    
    .error-message p {
        font-size: 0.9rem;
    }
}
/* Estilos para notificaciones - Agregar al CSS existente */
.notificaciones-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    max-width: 400px;
}

.notificacion-toast {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-left: 4px solid var(--primary);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.3s ease;
    max-width: 350px;
}

.notificacion-icono {
    background: var(--primary);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notificacion-contenido {
    flex: 1;
}

.notificacion-titulo {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.notificacion-mensaje {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

.notificacion-tiempo {
    font-size: 0.8rem;
    color: #adb5bd;
    margin-top: 4px;
}

.notificacion-cerrar {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
}

.notificacion-cerrar:hover {
    background: #f8f9fa;
    color: var(--dark);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}
