/* 📞 Sistema de Contacto Avanzado - Santiago Soto Arte */

.contact-content {
    max-width: 1000px;
    margin: 0 auto;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.contact-card h3 {
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.contact-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

/* Mostrar modal cuando está abierto (usado por la galería oficial) */
.modal.open {
    display: block;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    color: #666;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #333;
}

.modal-content h2 {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 2rem;
    margin: 0;
    border-radius: 20px 20px 0 0;
    font-family: 'Playfair Display', serif;
}

.modal-form,
.modal-products,
.modal-collaboration {
    padding: 2rem;
}

/* Formularios */
.contact-form {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-note {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Información de precios */
.pricing-info {
    background: #e8f2ff;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 2rem;
}

.pricing-info h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

.pricing-info ul {
    list-style: none;
    padding: 0;
}

.pricing-info li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #d0e7ff;
    display: flex;
    justify-content: space-between;
}

.pricing-info li:last-child {
    border-bottom: none;
}

/* Categorías de productos */
.product-categories {
    display: flex;
    gap: 0.75rem;
    margin: 2rem 0 1.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tab {
    padding: 0.75rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-tab:hover {
    border-color: #667eea;
    transform: translateY(-2px);
}

.category-tab.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
}

.product-category-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.product-category-content.active {
    display: block;
}

.category-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
}

/* Grid de productos */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

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

.product-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

.product-card.featured {
    border-color: #FFD700;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.product-card.featured::before {
    content: '⭐ DESTACADO';
    position: absolute;
    top: -10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.badge-save {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.product-card h4 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.product-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.price {
    display: block;
    font-weight: 700;
    color: #4CAF50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    background: linear-gradient(135deg, #4CAF50, #45A049);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: auto;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.3);
}

/* Tipos de colaboración */
.collaboration-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.collab-type {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.collab-type h4 {
    color: #667eea;
    margin-bottom: 1rem;
}

/* Mensajes de éxito */
.success-message {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #4CAF50, #45A049);
    color: white;
    border-radius: 15px;
    margin: 2rem 0;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.success-message h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.success-message p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.next-steps {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    text-align: left;
}

.next-steps h4 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.next-steps ol {
    line-height: 1.8;
    padding-left: 1.5rem;
}

/* Animaciones del modal */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Estilos para formularios mejorados */
.form-intro {
    text-align: center;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: 400;
}

/* Responsive para contacto */
@media (max-width: 768px) {
    .contact-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 95vh;
    }

    .modal-content h2 {
        font-size: 1.5rem;
        padding: 1.5rem;
    }

    .close-modal {
        font-size: 1.5rem;
        right: 15px;
        top: 12px;
    }

    .modal-form,
    .modal-products,
    .modal-collaboration {
        padding: 1rem;
    }

    /* Categorías en móvil - scroll horizontal */
    .product-categories {
        gap: 0.5rem;
        padding: 0.5rem;
        justify-content: flex-start;
    }

    .category-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .category-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    /* Grid de productos - 1 columna en móvil */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .product-card {
        padding: 1.25rem;
    }

    .product-icon {
        font-size: 2rem;
    }

    .product-card h4 {
        font-size: 1rem;
    }

    .product-card p {
        font-size: 0.85rem;
    }

    .add-to-cart-btn {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
    }

    .collaboration-types {
        grid-template-columns: 1fr;
    }

    /* Formularios en móvil */
    .contact-form {
        padding: 1.5rem;
    }

    .contact-form h4 {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 1rem; /* Evita zoom en iOS */
    }

    .submit-btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
}

/* Responsive extra pequeño (móviles pequeños) */
@media (max-width: 480px) {
    .modal-content {
        width: 98%;
        margin: 1% auto;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        padding: 1.2rem;
    }

    .modal-products h3 {
        font-size: 1.1rem;
    }

    .category-tab {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .product-card.featured::before {
        font-size: 0.6rem;
        padding: 0.25rem 0.6rem;
        top: -8px;
        right: 5px;
    }

    .badge-save {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .price {
        font-size: 1rem;
    }
}