/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #000;
    overflow-x: hidden;
}

/* NAVBAR */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10%;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}


.logo{
    width: 100%;
    max-width: 100px;

}
.logo img {
width: 100%;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav ul li a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    color: #d61c29;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 22px;
}

.cart-icon span {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #d61c29;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 50%;
}

/* HERO SECTION */
.hero-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    align-items: center;
    padding: 40px 10%;
    min-height: 70vh;
}

.hero-info {
    max-width: 500px;
}

.hero-title {
    font-size: 72px;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -2px;
    margin-bottom: 30px;
}

.cta-group {
    display: inline-flex;
    align-items: center;
    border: 2px solid #d61c29;
    margin-bottom: 30px;
}

.btn-buy {
    background-color: #d61c29;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-buy:hover {
    background-color: #b0141f;
}

.price {
    padding: 0 25px;
    font-weight: 700;
    color: #d61c29;
    font-size: 16px;
}

.hero-description {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

.hero-image-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-shoe {
    width: 90%;
    max-width: 480px;
    transform: rotate(-15deg);
    transition: transform 0.5s ease, filter 0.3s;
}

.badge-new {
    position: absolute;
    top: 10%;
    right: 15%;
    background-color: #d61c29;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    padding: 20px 15px;
    border-radius: 50%;
    letter-spacing: 1px;
}

/* SLIDER SECTION */
.slider-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 10% 60px 10%;
}

.slider-wrapper {
    width: 60%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease-in-out;
}

.thumb-card {
    min-width: calc(33.33% - 14px);
    height: 120px;
    background-color: #fff;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumb-card img {
    width: 90%;
    height: auto;
    object-fit: cover;
}

.thumb-card.active, .thumb-card:hover {
    border-color: #d61c29;
}

.slide-arrow {
    background: none;
    border: 2px solid #d61c29;
    color: #d61c29;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.slide-arrow:hover {
    background-color: #d61c29;
    color: #fff;
}

/* CATÁLOGO SECTION */
.catalogo-section {
    padding: 80px 10%;
    background-color: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #000;
}

.section-header p {
    font-size: 16px;
    color: #666;
}

.catalogo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.producto-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.producto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.producto-imagen {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.producto-info {
    padding: 20px;
}

.producto-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.producto-precio {
    color: #d61c29;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 15px;
}

.producto-btn {
    background-color: #d61c29;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    transition: background-color 0.3s;
}

.producto-btn:hover {
    background-color: #b0141f;
}

/* NOSOTROS SECTION */
.nosotros-section {
    padding: 80px 10%;
    background-color: #f5f5f5;
}

.nosotros-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.nosotros-texto h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.nosotros-texto p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #555;
}

.valores {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.valor {
    text-align: center;
}

.valor i {
    font-size: 40px;
    color: #d61c29;
    margin-bottom: 10px;
}

.valor h4 {
    font-size: 14px;
}

.nosotros-imagen img {
    width: 100%;
    border-radius: 10px;
}

/* FAQ SECTION */
.faq-section {
    padding: 80px 10%;
    background-color: #fff;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #f0f0f0;
}

.faq-question h3 {
    font-size: 16px;
    margin: 0;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
}

.faq-answer.active {
    max-height: 200px;
    padding: 20px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* CARRITO LATERAL */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    z-index: 1002;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.cart-header h3 {
    font-size: 20px;
}

.close-cart {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.cart-item-imagen {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.cart-item-precio {
    color: #d61c29;
    font-weight: 700;
}

.cart-item-cantidad {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.cantidad-btn {
    background-color: #f0f0f0;
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 5px;
    cursor: pointer;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 18px;
}

.checkout-btn {
    background-color: #d61c29;
    color: #fff;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #b0141f;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1001;
    display: none;
}

.cart-overlay.active {
    display: block;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    header { padding: 20px 5%; }
    nav { display: none; }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 40px 5%;
    }
    
    .hero-info { margin: 0 auto 40px auto; }
    .hero-title { font-size: 50px; }
    .slider-wrapper { width: 90%; }
    .thumb-card { min-width: calc(50% - 10px); }
    
    .nosotros-container {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

/* HEADER ICONS */
.header-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.user-icon {
    cursor: pointer;
    font-size: 22px;
    transition: color 0.3s;
}

.user-icon:hover {
    color: #d61c29;
}

/* CONTACT SECTION */
.contact-section {
    padding: 80px 10%;
    background-color: #f5f5f5;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    background: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 10px;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 40px;
    color: #d61c29;
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-card p {
    color: #666;
}

.contact-form {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form button {
    background-color: #d61c29;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    width: 100%;
}

/* MODAL DE AUTENTICACIÓN */
.auth-modal,
.address-modal,
.tracking-modal,
.wishlist-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1004;
    justify-content: center;
    align-items: center;
}

.auth-modal.active,
.address-modal.active,
.tracking-modal.active,
.wishlist-modal.active {
    display: flex;
}

.auth-modal-content,
.address-modal-content,
.tracking-modal-content,
.wishlist-modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.auth-header,
.address-header,
.tracking-header,
.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.close-auth,
.close-address,
.close-tracking,
.close-wishlist {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #666;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.auth-tab {
    flex: 1;
    padding: 15px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.auth-tab.active {
    color: #d61c29;
    border-bottom: 2px solid #d61c29;
}

.auth-form {
    display: none;
    padding: 30px;
}

.auth-form.active {
    display: block;
}

.auth-form input,
.address-form input,
.address-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.auth-form button,
.address-form button {
    width: 100%;
    padding: 12px;
    background-color: #d61c29;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
}

/* ORDERS LIST */
.orders-list,
.wishlist-items {
    padding: 20px;
}

/* Mejoras para los pedidos */
.order-item {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.order-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.order-status {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pendiente {
    background: #ff9800;
    color: white;
}

.status-confirmado {
    background: #2196F3;
    color: white;
}

.status-enviado {
    background: #9C27B0;
    color: white;
}

.status-entregado {
    background: #4CAF50;
    color: white;
}

/* FOOTER */
.footer {
    background-color: #1a1a1a;
    color: #fff;
    padding: 60px 10% 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section p {
    color: #999;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #d61c29;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #d61c29;
}

.newsletter {
    display: flex;
    gap: 10px;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.newsletter button {
    padding: 10px 20px;
    background-color: #d61c29;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #666;
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
/* PANEL DE ADMINISTRACIÓN */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    overflow-y: auto;
}

.admin-panel.active {
    display: block;
}

.admin-panel-content {
    background: #f5f5f5;
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
    border-radius: 15px;
    min-height: 90vh;
    overflow: hidden;
}

.admin-panel-header {
    background: #1a1a1a;
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-panel-header h2 {
    margin: 0;
}

.close-admin {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.admin-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 0 20px;
    gap: 10px;
}

.admin-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.admin-tab:hover {
    background: #f0f0f0;
}

.admin-tab.active {
    color: #d61c29;
    border-bottom: 3px solid #d61c29;
}

.admin-tab-pane {
    display: none;
    padding: 30px;
}

.admin-tab-pane.active {
    display: block;
}

/* Estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 40px;
    color: #d61c29;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 32px;
    margin: 10px 0;
}

/* Tablas */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f8f8;
    font-weight: 700;
}

.admin-table tr:hover {
    background: #f9f9f9;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-select {
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.btn-edit,
.btn-delete,
.btn-view {
    padding: 5px 10px;
    margin: 0 3px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-edit {
    background: #2196F3;
    color: white;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-view {
    background: #4CAF50;
    color: white;
}

/* Filtros */
.admin-filters,
.admin-search {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.admin-filters input,
.admin-filters select,
.admin-search input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    flex: 1;
}

.btn-add-product {
    background: #d61c29;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 20px;
}

/* Modales */
.user-detail-modal,
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2100;
    display: none;
    justify-content: center;
    align-items: center;
}

.user-detail-modal.active,
.product-modal.active {
    display: flex;
}

.user-detail-content,
.product-modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 10px;
}

.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .admin-tabs {
        flex-wrap: wrap;
    }
    
    .admin-tab {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-container {
        grid-template-columns: 1fr;
    }
}

/* Estilos para el panel admin - asegurar que se vea */
.admin-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: none;
    overflow-y: auto;
}

.admin-panel.active {
    display: block;
}

.admin-panel-content {
    background: #f5f5f5;
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
    border-radius: 15px;
    min-height: 90vh;
}

/* Asegurar que los tabs se vean */
.admin-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 0 20px;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-tab {
    padding: 15px 25px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.admin-tab.active {
    color: #d61c29;
    border-bottom: 3px solid #d61c29;
}

.admin-tab-pane {
    display: none;
    padding: 30px;
}

.admin-tab-pane.active {
    display: block;
}

/* Tablas del admin */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 10px;
    margin-top: 20px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background: #f8f8f8;
    font-weight: 700;
}

/* Badges de estado */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.status-pendiente { background: #ff9800; color: white; }
.status-confirmado { background: #2196F3; color: white; }
.status-enviado { background: #9C27B0; color: white; }
.status-entregado { background: #4CAF50; color: white; }

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stat-card i {
    font-size: 40px;
    color: #d61c29;
    margin-bottom: 10px;
}

.stat-card h3 {
    font-size: 32px;
    margin: 10px 0;
}

/* Botones admin */
.btn-edit, .btn-delete, .btn-view {
    padding: 5px 10px;
    margin: 0 3px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-edit { background: #2196F3; color: white; }
.btn-delete { background: #f44336; color: white; }
.btn-view { background: #4CAF50; color: white; }
.btn-add-product { background: #d61c29; color: white; border: none; padding: 10px 20px; border-radius: 5px; cursor: pointer; margin-bottom: 20px; }

/* Charts */
.charts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.chart-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

/* Asegurar que todos los modales tengan el z-index correcto */
.auth-modal,
.address-modal,
.tracking-modal,
.wishlist-modal,
.user-detail-modal,
.product-modal,
.order-details-modal {
    z-index: 10000 !important;
}

/* El panel admin debe tener un z-index menor que los modales que abre */
.admin-panel {
    z-index: 9999 !important;
}

/* Modales secundarios (deben estar POR ENCIMA del panel admin) */
.user-detail-modal.active,
.product-modal.active,
.order-details-modal {
    z-index: 10001 !important;
}

/* Asegurar que el contenido del modal sea visible */
.user-detail-content,
.product-modal-content,
.order-details-content {
    position: relative;
    background: white;
    border-radius: 10px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
}

/* Mejorar el diseño de los modales */
.user-detail-modal .user-detail-content {
    width: 90%;
    max-width: 700px;
}

.product-modal .product-modal-content {
    width: 90%;
    max-width: 500px;
}

.user-detail-header,
.product-modal-header,
.order-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: white;
    border-radius: 10px 10px 0 0;
}

.user-detail-header button,
.product-modal-header button,
.order-details-header button {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.user-detail-header button:hover,
.product-modal-header button:hover,
.order-details-header button:hover {
    color: #d61c29;
}

.user-detail-body,
.product-modal-body {
    padding: 20px;
}

/* Estilos para los formularios dentro de modales */
.product-modal-body input,
.product-modal-body textarea,
.product-modal-body select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.product-modal-body textarea {
    resize: vertical;
    min-height: 80px;
}

.product-modal-body button {
    width: 100%;
    padding: 12px;
    background-color: #d61c29;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.product-modal-body button:hover {
    background-color: #b0141f;
}

/* Mejorar el diseño de los pedidos en el panel admin */
.admin-order {
    background: #f9f9f9;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-actions select,
.admin-actions input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.admin-actions button {
    padding: 8px 15px;
    background-color: #d61c29;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Asegurar que los botones dentro del panel admin sean visibles */
.admin-table .btn-view,
.admin-table .btn-edit,
.admin-table .btn-delete {
    padding: 5px 10px;
    margin: 2px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 12px;
}

.admin-table .btn-view {
    background-color: #4CAF50;
    color: white;
}

.admin-table .btn-edit {
    background-color: #2196F3;
    color: white;
}

.admin-table .btn-delete {
    background-color: #f44336;
    color: white;
}

.admin-table .btn-view:hover,
.admin-table .btn-edit:hover,
.admin-table .btn-delete:hover {
    opacity: 0.8;
}

/* Estilos para el timeline de pedidos */
.order-timeline {
    margin: 20px 0;
}

.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
}

.timeline-step {
    position: relative;
    margin-bottom: 25px;
}

.timeline-icon {
    position: absolute;
    left: -30px;
    top: 0;
    width: 30px;
    height: 30px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.timeline-step.completed .timeline-icon {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

.timeline-step.active .timeline-icon {
    border-color: #d61c29;
    color: #d61c29;
}

.timeline-content {
    padding-left: 15px;
}

.timeline-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.timeline-content p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Estilos para productos en el pedido */
.order-product-item {
    display: flex;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.order-product-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.order-product-item h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.order-product-item p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* Badges de estado */
.order-status-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 12px;
}

.status-pendiente { background: #ff9800; color: white; }
.status-confirmado { background: #2196F3; color: white; }
.status-enviado { background: #9C27B0; color: white; }
.status-entregado { background: #4CAF50; color: white; }

/* MODAL DE NEWSLETTER */
.newsletter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 10050;
    justify-content: center;
    align-items: center;
}

.newsletter-modal.active {
    display: flex;
}

.newsletter-modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.newsletter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: white;
}

.newsletter-header h2 {
    margin: 0;
    font-size: 24px;
}

.newsletter-header h2 i {
    margin-right: 10px;
}

.close-newsletter {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: white;
    transition: transform 0.3s;
}

.close-newsletter:hover {
    transform: scale(1.1);
}

.newsletter-body {
    padding: 30px;
    color: white;
}

.newsletter-body p {
    margin-bottom: 20px;
    line-height: 1.6;
}

#newsletterForm input:not([type="checkbox"]) {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
}

.newsletter-interests {
    margin: 20px 0;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.newsletter-interests label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    cursor: pointer;
}

.newsletter-interests input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.newsletter-body button {
    width: 100%;
    padding: 12px;
    background-color: #ff6b6b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.newsletter-body button:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

.newsletter-note {
    font-size: 12px;
    margin-top: 15px;
    text-align: center;
    opacity: 0.8;
}

/* Notificación de suscripción */
.subscription-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #4CAF50;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10060;
    animation: slideInRight 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.subscription-toast.error {
    background: #f44336;
}

.subscription-toast i {
    font-size: 24px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============ MODAL DE DETALLES DE USUARIO ============ */
.user-detail-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10001;
    display: none;
    justify-content: center;
    align-items: center;
}

.user-detail-modal.active {
    display: flex;
}

.user-detail-modal .user-detail-content {
    background: white;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 20px;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.user-detail-modal .user-detail-header {
    background: linear-gradient(135deg, #d61c29 0%, #8b0000 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-detail-modal .user-detail-header h2 {
    margin: 0;
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-detail-modal .user-detail-header h2 i {
    font-size: 28px;
}

.user-detail-modal .user-detail-header button {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s;
}

.user-detail-modal .user-detail-header button:hover {
    transform: scale(1.1);
}

.user-detail-modal .user-detail-body {
    padding: 0;
    max-height: calc(85vh - 70px);
    overflow-y: auto;
}

/* Sección de información personal */
.user-info-section {
    background: #f8f9fa;
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.user-info-section h3 {
    color: #d61c29;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.user-info-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.user-info-card .label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.user-info-card .value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.user-info-card .value i {
    color: #d61c29;
    margin-right: 8px;
}

/* Sección de pedidos */
.user-orders-section {
    padding: 25px;
}

.user-orders-section h3 {
    color: #d61c29;
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-order-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #d61c29;
    transition: transform 0.3s;
}

.user-order-card:hover {
    transform: translateX(5px);
    background: #f0f0f0;
}

.user-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.order-id {
    font-weight: 700;
    color: #d61c29;
    font-size: 14px;
}

.order-date {
    font-size: 12px;
    color: #888;
}

.order-total {
    font-weight: 700;
    color: #333;
    margin: 8px 0;
}

.order-status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.order-products-count {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

.view-order-btn {
    background: #d61c29;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    width: 100%;
    transition: background 0.3s;
}

.view-order-btn:hover {
    background: #b0141f;
}

.empty-orders {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-orders i {
    font-size: 50px;
    margin-bottom: 15px;
    color: #ddd;
}

/* Responsive */
@media (max-width: 600px) {
    .user-info-grid {
        grid-template-columns: 1fr;
    }
    
    .user-order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ============ MENÚ DE USUARIO ============ */
.user-menu {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 1005;
    animation: slideDown 0.3s ease;
    min-width: 260px;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-menu-content {
    padding: 0;
}

.user-menu-header {
    background: linear-gradient(135deg, #d61c29 0%, #8b0000 100%);
    padding: 20px;
    color: white;
    text-align: center;
}

.user-menu-header h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.user-menu-header p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.user-menu-divider {
    height: 1px;
    background: #eee;
    margin: 0;
}

.user-menu button {
    width: 100%;
    padding: 14px 20px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #333;
}

.user-menu button i {
    width: 20px;
    font-size: 16px;
    color: #d61c29;
}

.user-menu button:hover {
    background: #f5f5f5;
}

.user-menu button:active {
    background: #eee;
}

/* ============ MODAL DE LISTA DE DESEOS ============ */
.wishlist-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10050;
    justify-content: center;
    align-items: center;
}

.wishlist-modal.active {
    display: flex;
}

.wishlist-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.wishlist-header {
    background: linear-gradient(135deg, #d61c29 0%, #8b0000 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wishlist-header h2 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wishlist-header h2 i {
    font-size: 22px;
}

.wishlist-header .close-wishlist {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s;
}

.wishlist-header .close-wishlist:hover {
    transform: scale(1.1);
}

.wishlist-items {
    padding: 20px;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
}

.wishlist-item {
    display: flex;
    gap: 15px;
    align-items: center;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.wishlist-item:hover {
    transform: translateX(5px);
    background: #f0f0f0;
}

.wishlist-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 10px;
}

.wishlist-item-info {
    flex: 1;
}

.wishlist-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.wishlist-item-info p {
    margin: 0 0 10px 0;
    color: #d61c29;
    font-weight: bold;
    font-size: 16px;
}

.wishlist-item button {
    background: #d61c29;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.wishlist-item button:hover {
    background: #b0141f;
}

.empty-wishlist {
    text-align: center;
    padding: 50px;
    color: #999;
}

.empty-wishlist i {
    font-size: 60px;
    margin-bottom: 15px;
    color: #ddd;
}

/* ============ MODAL DE SEGUIMIENTO DE PEDIDOS ============ */
.tracking-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10050;
    justify-content: center;
    align-items: center;
}

.tracking-modal.active {
    display: flex;
}

.tracking-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    overflow: hidden;
    animation: modalFadeIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tracking-header {
    background: linear-gradient(135deg, #d61c29 0%, #8b0000 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-header h2 {
    margin: 0;
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tracking-header h2 i {
    font-size: 22px;
}

.tracking-header .close-tracking {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    transition: transform 0.3s;
}

.tracking-header .close-tracking:hover {
    transform: scale(1.1);
}

.orders-list {
    padding: 20px;
    max-height: calc(80vh - 70px);
    overflow-y: auto;
}

.order-card {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    border-left: 4px solid #d61c29;
    transition: transform 0.3s;
}

.order-card:hover {
    transform: translateX(5px);
    background: #f0f0f0;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.order-number {
    font-weight: bold;
    color: #d61c29;
    font-size: 16px;
}

.order-date {
    font-size: 12px;
    color: #888;
}

.order-total {
    font-weight: bold;
    font-size: 16px;
    margin: 8px 0;
    color: #333;
}

.order-products {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.order-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 8px;
}

.order-status.pendiente { background: #ff9800; color: white; }
.order-status.confirmado { background: #2196F3; color: white; }
.order-status.enviado { background: #9C27B0; color: white; }
.order-status.entregado { background: #4CAF50; color: white; }

.order-view-btn {
    background: #d61c29;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    margin-top: 12px;
    transition: background 0.3s;
}

.order-view-btn:hover {
    background: #b0141f;
}

.empty-orders {
    text-align: center;
    padding: 50px;
    color: #999;
}

.empty-orders i {
    font-size: 60px;
    margin-bottom: 15px;
    color: #ddd;
}

.empty-orders button {
    margin-top: 20px;
    background: #d61c29;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
}

/* ============ MODAL DE CONFIRMACIÓN (para cerrar sesión) ============ */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10060;
    justify-content: center;
    align-items: center;
}

.confirm-modal.active {
    display: flex;
}

.confirm-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

.confirm-header {
    background: linear-gradient(135deg, #d61c29 0%, #8b0000 100%);
    color: white;
    padding: 20px;
}

.confirm-header i {
    font-size: 50px;
    margin-bottom: 10px;
}

.confirm-header h3 {
    margin: 0;
    font-size: 20px;
}

.confirm-body {
    padding: 25px;
}

.confirm-body p {
    margin: 0 0 20px 0;
    color: #666;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
}

.confirm-buttons button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.confirm-cancel {
    background: #f0f0f0;
    color: #333;
}

.confirm-cancel:hover {
    background: #e0e0e0;
}

.confirm-logout {
    background: #d61c29;
    color: white;
}

.confirm-logout:hover {
    background: #b0141f;
}

/* Animación para modales */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    font-family: 'Montserrat', sans-serif;
}

.notification-success {
    background: #4CAF50;
    color: white;
}

.notification-error {
    background: #f44336;
    color: white;
}

.notification-warning {
    background: #ff9800;
    color: white;
}

.notification-info {
    background: #2196F3;
    color: white;
}

/* ============ SECCIÓN COTIZACIÓN PERSONALIZADA ============ */
.cotizacion-section {
    padding: 80px 10%;
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
}

.modelos-info {
    text-align: center;
    margin-bottom: 40px;
}

.modelos-info h3 {
    font-size: 28px;
    color: #d61c29;
    margin-bottom: 15px;
}

.modelos-info p {
    color: #666;
    font-size: 16px;
}

.modelos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.modelo-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.modelo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.modelo-card.selected {
    border: 3px solid #d61c29;
    box-shadow: 0 0 0 3px rgba(214,28,41,0.2);
}

.modelo-imagen {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.modelo-info {
    padding: 20px;
}

.modelo-nombre {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.modelo-descripcion {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.modelo-precio-base {
    font-size: 18px;
    font-weight: 700;
    color: #d61c29;
    margin-bottom: 15px;
}

.btn-seleccionar-modelo {
    width: 100%;
    padding: 12px;
    background: #d61c29;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-seleccionar-modelo:hover {
    background: #b0141f;
}

.form-personalizado {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    animation: slideUp 0.4s ease;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.form-header h3 {
    color: #d61c29;
    font-size: 24px;
}

.close-form {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-form:hover {
    color: #d61c29;
}

.modelo-seleccionado {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #d61c29;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group label i {
    color: #d61c29;
    margin-right: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d61c29;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: #d61c29;
    background: #fef5f5;
}

.upload-area i {
    font-size: 48px;
    color: #d61c29;
    margin-bottom: 10px;
}

.upload-area p {
    margin: 10px 0;
    color: #666;
}

.upload-area span {
    font-size: 12px;
    color: #999;
}

.image-preview {
    margin-top: 15px;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.btn-enviar-cotizacion {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #d61c29 0%, #8b0000 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-enviar-cotizacion:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(214,28,41,0.4);
}

/* Modal de confirmación */
.cotizacion-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10060;
    justify-content: center;
    align-items: center;
}

.cotizacion-modal.active {
    display: flex;
}

.cotizacion-modal-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    animation: modalFadeIn 0.3s ease;
    overflow: hidden;
}

.cotizacion-modal-header {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    padding: 30px;
}

.cotizacion-modal-header i {
    font-size: 60px;
    margin-bottom: 15px;
}

.cotizacion-modal-header h2 {
    margin: 0;
    font-size: 24px;
}

.cotizacion-modal-body {
    padding: 30px;
}

.cotizacion-modal-body p {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.cotizacion-modal-body ul {
    text-align: left;
    margin: 20px 0;
    padding-left: 25px;
}

.cotizacion-modal-body li {
    margin: 10px 0;
    color: #666;
}

.modal-note {
    font-size: 13px;
    color: #999;
    margin-top: 20px;
}

.cotizacion-modal-footer {
    padding: 20px;
    display: flex;
    gap: 15px;
    border-top: 1px solid #eee;
}

.btn-cerrar-modal {
    flex: 1;
    padding: 12px;
    background: #f0f0f0;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #666;
}

.btn-ir-catalogo {
    flex: 1;
    padding: 12px;
    background: #d61c29;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .form-personalizado {
        padding: 20px;
    }
    
    .cotizacion-modal-footer {
        flex-direction: column;
    }
}

/* Modal para acción de imagen */
.image-action-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10070;
    justify-content: center;
    align-items: center;
}

.image-action-modal[style*="display: flex"],
.image-action-modal[style*="display: flex;"] {
    display: flex !important;
}

.image-action-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

.image-action-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #d61c29 0%, #8b0000 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.image-action-header h3 {
    margin: 0;
    font-size: 18px;
}

.image-action-header button {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.image-action-body {
    padding: 25px;
}

.image-preview-container {
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.image-action-message {
    background: #e3f2fd;
    padding: 12px;
    border-radius: 8px;
    margin: 15px 0;
    font-size: 14px;
}

.image-steps {
    margin: 15px 0;
    padding-left: 20px;
}

.image-steps li {
    margin: 10px 0;
    color: #555;
}

.image-action-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-download-image,
.btn-copy-image,
.btn-continue {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-download-image {
    background: #4CAF50;
    color: white;
}

.btn-download-image:hover {
    background: #45a049;
}

.btn-copy-image {
    background: #2196F3;
    color: white;
}

.btn-copy-image:hover {
    background: #0b7dda;
}

.btn-continue {
    background: #d61c29;
    color: white;
}

.btn-continue:hover {
    background: #b0141f;
}
/* Modal de detalle de cotización */
.cotizacion-detalle-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 10080;
    justify-content: center;
    align-items: center;
}

.cotizacion-detalle-content {
    background: white;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

.detalle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #d61c29 0%, #8b0000 100%);
    color: white;
    border-radius: 20px 20px 0 0;
}

.detalle-header button {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
}

.detalle-body {
    padding: 25px;
}

.detalle-seccion {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.detalle-seccion h3 {
    color: #d61c29;
    margin-bottom: 15px;
    font-size: 18px;
}

.detalle-seccion p {
    margin: 8px 0;
    line-height: 1.5;
}

.detalle-footer {
    padding: 20px;
    display: flex;
    gap: 15px;
    border-top: 1px solid #eee;
}

.btn-whatsapp {
    flex: 1;
    background: #25D366;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.btn-cerrar {
    flex: 1;
    background: #f0f0f0;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-export {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
}