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

:root {
    --pastel-pink: #FFD1DC;
    --pastel-blue: #A7D8DE;
    --pastel-purple: #E0BBE4;
    --pastel-green: #B5EAD7;
    --pastel-yellow: #FFF2B5;
    --pastel-lavender: #E6E6FA;
    --text-soft: #5E5E5E;
    --background-soft: #FDF6F9;
}

body {
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #fdf6f9 0%, #f9f0f5 100%);
    color: var(--text-soft);
    line-height: 1.6;
    min-height: 100vh;
}

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

/* Header Animado */
.header {
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.header h1 {
    font-size: 2.2rem;
    font-weight: 600;
    color: #6B5E6B;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.subtitle {
    font-size: 1.1rem;
    color: #8A7A8A;
    font-weight: 300;
    position: relative;
    z-index: 2;
}

/* Formas flotantes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: linear-gradient(45deg, var(--pastel-pink), var(--pastel-purple));
    border-radius: 50%;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 100px;
    height: 100px;
    top: -20px;
    left: -20px;
    background: var(--pastel-pink);
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: -40px;
    right: -30px;
    background: var(--pastel-blue);
    animation-delay: 2s;
    opacity: 0.2;
}

.shape:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 50%;
    left: 80%;
    background: var(--pastel-green);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

/* Buscador */
.search-section {
    margin-bottom: 30px;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #B8A9B8;
    font-size: 1.2rem;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 50px;
    background: white;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    color: var(--text-soft);
}

.search-input:focus {
    outline: none;
    border-color: var(--pastel-purple);
    box-shadow: 0 5px 25px rgba(224, 187, 228, 0.3);
}

.search-input::placeholder {
    color: #C5B5C5;
}

/* Filtros */
.filters-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 30px;
    background: white;
    color: var(--text-soft);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    font-family: 'Quicksand', sans-serif;
}

.filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--pastel-purple), var(--pastel-pink));
    color: #5E4B5E;
}

/* Contador de resultados */
.results-count {
    text-align: center;
    margin: 20px 0;
    font-size: 0.95rem;
    color: #A58DA5;
    font-weight: 300;
}

/* Grid de negocios */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Tarjetas de negocio */
.business-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 25px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.5);
    animation: cardAppear 0.5s ease-out;
}

.business-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    background: white;
}

.business-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #5E4B5E;
    margin-bottom: 10px;
}

.business-type {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    background: var(--pastel-lavender);
    color: #6B5E6B;
}

.business-type.negocio {
    background: var(--pastel-blue);
}

.business-type.servicio {
    background: var(--pastel-green);
}

.business-description {
    color: #7A6A7A;
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Botones de contacto */
.contact-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.contact-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    color: white;
    font-family: 'Quicksand', sans-serif;
}

.contact-btn.whatsapp {
    background: #25D366;
}

.contact-btn.whatsapp:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.contact-btn.email {
    background: var(--pastel-purple);
    color: #5E4B5E;
}

.contact-btn.email:hover {
    background: #D0A9D4;
    transform: scale(1.05);
}

.contact-btn.website {
    background: var(--pastel-blue);
    color: #5E4B5E;
}

.contact-btn.website:hover {
    background: #8EC4CC;
    transform: scale(1.05);
}

/* Botón flotante */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pastel-purple), var(--pastel-pink));
    color: #5E4B5E;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(224, 187, 228, 0.4);
    transition: all 0.3s ease;
    font-size: 1.5rem;
    z-index: 1000;
}

.fab:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 8px 25px rgba(224, 187, 228, 0.6);
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: #A58DA5;
    font-size: 0.9rem;
}

.footer-small {
    font-size: 0.8rem;
    margin-top: 10px;
}

.footer a {
    color: #B28BB2;
    text-decoration: none;
    font-weight: 500;
}

.footer a:hover {
    text-decoration: underline;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 1s ease-out;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

/* Scroll animations */
.scroll-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.scroll-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries para Mobile First */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .header h1 {
        font-size: 1.8rem;
    }

    .business-grid {
        grid-template-columns: 1fr;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
    }

    .fab {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 40px;
    color: #B8A9B8;
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Empty State */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #B8A9B8;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Estilos para el filtro de ciudades */
.city-filter-container {
    margin-top: 15px;
    text-align: center;
}

.city-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    border: 2px solid #E8D9E8;
    border-radius: 30px;
    font-size: 0.95rem;
    font-family: 'Quicksand', sans-serif;
    color: var(--text-soft);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B5E6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.city-select:focus {
    outline: none;
    border-color: var(--pastel-purple);
    box-shadow: 0 0 0 4px rgba(224, 187, 228, 0.2);
}

/* Badge de ciudad en tarjetas */
.city-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    background: var(--pastel-lavender);
    color: #6B5E6B;
    margin-bottom: 10px;
    margin-right: 5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(135deg, #fff5f9, #fff);
    margin: 30px auto;
    padding: 30px 20px;
    border-radius: 40px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    animation: slideUp 0.4s ease-out;
}

.close {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 28px;
    font-weight: 300;
    color: #B8A9B8;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
}

.close:hover {
    color: #5E4B5E;
    transform: rotate(90deg);
    background: #f0e0f0;
}

.modal-title {
    text-align: center;
    margin-bottom: 30px;
    color: #5E4B5E;
    font-size: 1.8rem;
    padding-right: 30px;
}

/* Formulario en modal */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #6B5E6B;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 2px solid #E8D9E8;
    border-radius: 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--pastel-purple);
    box-shadow: 0 0 0 4px rgba(224, 187, 228, 0.2);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.radio-option {
    flex: 1;
    min-width: 120px;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option label {
    display: block;
    padding: 12px;
    text-align: center;
    background: #F5EAF5;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
}

.radio-option input[type="radio"]:checked + label {
    background: var(--pastel-purple);
    border-color: #B28BB2;
    transform: scale(1.02);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--pastel-purple), var(--pastel-pink));
    color: #5E4B5E;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Quicksand', sans-serif;
    margin-top: 20px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(224, 187, 228, 0.4);
}

.submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.message {
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: none;
}

.message.success {
    background: #B5EAD7;
    color: #2E5A4B;
    display: block;
}

.message.error {
    background: #FFD1DC;
    color: #8B4B5E;
    display: block;
}

.message.info {
    background: #FFF2B5;
    color: #8B7A4B;
    display: block;
}

/* Responsive para modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px auto;
        padding: 20px 15px;
        width: 95%;
    }
    
    .modal-title {
        font-size: 1.5rem;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .close {
        right: 15px;
        top: 15px;
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}
.fab:not(#openFormBtn) {
    display: none !important;
}

.category-filter-container {
    margin-top: 15px;
    text-align: center;
}

.category-select {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    border: 2px solid #E8D9E8;
    border-radius: 30px;
    font-size: 0.95rem;
    font-family: 'Quicksand', sans-serif;
    color: var(--text-soft);
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B5E6B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
}

.category-select:focus {
    outline: none;
    border-color: var(--pastel-purple);
    box-shadow: 0 0 0 4px rgba(224, 187, 228, 0.2);
}

.category-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    background: var(--pastel-yellow);
    color: #6B5E6B;
    margin-bottom: 5px;
    margin-right: 5px;
}

/* ===== MAPA ===== */
.map-section {
    margin-bottom: 30px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.map-header {
    background: rgba(255,255,255,0.95);
    padding: 14px 20px;
    font-weight: 600;
    color: #5E4B5E;
    font-size: 1rem;
    border-bottom: 2px solid #F0E0F0;
}

.map-header i {
    margin-right: 8px;
    color: var(--pastel-purple);
}

#map {
    height: 340px;
    width: 100%;
    background: #f0f0f0;
}

/* Marcadores personalizados */
.marker-pin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    border: 2px solid var(--pastel-purple);
    cursor: pointer;
    transition: transform 0.2s;
}

.marker-pin:hover { transform: scale(1.1); }

/* Popup del mapa */
.popup-negocio { font-family: 'Quicksand', sans-serif; min-width: 150px; }
.popup-negocio strong { color: #5E4B5E; font-size: 1rem; }
.popup-negocio a { color: #25D366; font-weight: 600; text-decoration: none; font-size: 0.9rem; }

/* Badge en mapa */
.en-mapa { background: var(--pastel-green) !important; color: #2E5A4B !important; }

/* Hint en label */
.label-hint { font-weight: 300; font-size: 0.82rem; color: #A58DA5; margin-left: 5px; }

@media (max-width: 768px) {
    #map { height: 260px; }
}