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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(rgba(240, 242, 245, 0.75), rgba(240, 242, 245, 0.75)),
                url('images/ss.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    color: #1a1a1a;
}

.container {
    max-width: 800px;
    width: 100%;
    padding: 0;
    background: transparent;
}

.profile {
    text-align: center;
    margin: 0 0 40px 0;
    background: white;
    padding: 20px 5px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 1px 8px rgba(0,0,0,0.1);
    width: 100%;
    transform: translateZ(0);
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.profile:hover {
    transform: translateY(-5px) rotateX(2deg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25), 0 5px 15px rgba(0,0,0,0.15);
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #f0f2f5;
    margin-bottom: 15px;
}

.profile h1 {
    color: #1a1a1a;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.profile p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icon {
    color: #1a1a1a;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    background: #f0f2f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform-style: preserve-3d;
}

.social-icon:hover {
    transform: translateY(-5px) translateZ(10px);
    background: #e4e6e9;
    color: #0066ff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
    padding: 0 5px;
}

.link-card {
    width: 100%;
    background: white;
    padding: 16px 20px;
    border-radius: 12px;
    color: #1a1a1a;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    transform: translateZ(0);
    transform-style: preserve-3d;
}

.link-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.link-title {
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.link-subtitle {
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
}

.link-card:hover {
    transform: translateY(-8px) rotateX(3deg) translateZ(10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25), 0 5px 15px rgba(0,0,0,0.15);
}

.link-card:active {
    transform: translateY(-4px) translateZ(5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.top-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin: 0 0 30px 0;
}

.corner-button {
    background: white;
    border: none;
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
    transform-style: preserve-3d;
}

.corner-button i {
    font-size: 0.9rem;
}

.corner-button:hover {
    background: #f8f9fa;
    transform: translateY(-5px) translateZ(8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.2), 0 4px 10px rgba(0,0,0,0.12);
}

.gallery-section {
    margin: 40px 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 1.5rem 5px;
    width: 100%;
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    z-index: 0;
    border-radius: 20px;
}

.gallery-title {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 1.4rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.gallery-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 0.95rem;
    font-weight: normal;
    position: relative;
    z-index: 1;
}

.gallery-container {
    display: flex;
    gap: 20px;
    overflow-x: scroll;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 1;
}

.gallery-container::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    flex: 0 0 280px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    transition: all 0.3s ease;
    transform: translateZ(0);
    transform-style: preserve-3d;
}

.gallery-card:hover {
    box-shadow: 0 15px 40px rgba(0,0,0,0.25), 0 5px 15px rgba(0,0,0,0.15);
    transform: translateY(-8px) rotateY(-2deg) translateZ(10px);
}

.gallery-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-text {
    padding: 20px;
    flex-grow: 1;
}

.gallery-text h3 {
    margin-bottom: 10px;
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 600;
}

.gallery-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

.gallery-navigation {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 15px;
    z-index: 1;
}

.gallery-nav-btn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-nav-btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.gallery-nav-btn i {
    color: #1a1a1a;
    font-size: 0.9rem;
}

.ver-mas-btn {
    background: #0066ff;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 20px 20px;
    width: fit-content;
    align-self: center;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
    transform-style: preserve-3d;
}

.ver-mas-btn:hover {
    background: #0052cc;
    transform: translateY(-4px) translateZ(8px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.4), 0 3px 8px rgba(0, 102, 255, 0.2);
}

.ver-mas-btn:active {
    transform: translateY(-2px) translateZ(4px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* Estilos para la sección de sucursales */
.locations-section {
    padding: 2rem 5px;
    margin: 40px 0;
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-color: #f8f9fa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.locations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 0;
    backdrop-filter: blur(5px);
}

.locations-header {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.locations-header h2 {
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.locations-header p {
    color: #666;
    font-size: 0.9rem;
    max-width: 80%;
    margin: 0 auto;
}

.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.location-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .location-card {
        flex-direction: row;
        height: 200px;
    }
    
    .location-card .location-image {
        width: 40%;
        height: 100%;
    }
    
    .location-card .location-info {
        width: 60%;
        padding: 1.5rem 2rem;
    }
    
    .location-icon {
        position: absolute;
        top: 1.2rem;
        left: calc(40% - 20px);
        margin: 0;
        z-index: 2;
    }
}

/* Estilos para las tarjetas de ubicación */
.locations-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    position: relative;
    z-index: 1;
    padding: 0.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.location-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: row;
    height: 220px;
    transform: translateZ(0);
    transform-style: preserve-3d;
}

.location-card:hover {
    transform: translateY(-10px) rotateX(2deg) translateZ(10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.featured-location {
    border: 2px solid var(--color-primary);
}

.location-image {
    width: 35%;
    overflow: hidden;
    position: relative;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.location-card:hover .location-image img {
    transform: scale(1.08);
}

.location-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-primary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.featured-location .location-badge {
    background-color: #ff6b6b;
}

.location-info {
    padding: 1.5rem;
    position: relative;
    width: 65%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.location-icon {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 3px solid white;
    z-index: 3;
}

.location-info h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--color-text-dark);
    font-weight: 600;
}

.location-details {
    margin-bottom: 1.2rem;
}

.location-details p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-details p i {
    color: var(--color-primary);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.location-phone {
    font-weight: 500;
    color: #1a1a1a;
}

.location-actions {
    display: flex;
    gap: 15px;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
}

.location-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background-color: #f5f5f5;
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
}

.location-link i {
    font-size: 1rem;
}

.location-link:hover {
    background-color: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.whatsapp-link {
    background-color: #e8f5e9;
    color: #1a9c39;
}

.whatsapp-link:hover {
    background-color: #25d366;
    color: white;
}

@media (max-width: 768px) {
    .locations-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
        gap: 2rem;
    }
    
    .location-card {
        width: 100%;
        margin: 0 auto;
        max-width: 450px;
        flex-direction: column;
        height: auto;
    }
    
    .location-image {
        width: 100%;
        height: 180px;
    }
    
    .location-info {
        width: 100%;
        padding: 1.5rem;
    }
    
    .location-icon {
        top: -25px;
        left: 1.5rem;
        transform: none;
    }
    
    .location-phone {
        margin-bottom: 0.3rem;
    }
    
    .location-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .location-link {
        width: 100%;
        padding: 10px 15px;
    }
}

/* Estilos para los modales de mapas */
.map-popup {
    width: 90%;
    max-width: 800px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
}

/* Estilos para el popup del mapa */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.popup-content {
    background: #fff;
    border-radius: 15px;
    max-width: 90%;
    width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.container {
    max-width: 700px;
    width: 100%;
    background: transparent;
    border-radius: 25px;
    overflow: hidden;
    padding: 0;
}

.map-popup {
    max-width: 800px;
    width: 90%;
    padding: 0;
    overflow: hidden;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #3f72af;
}

.map-header h3 {
    color: white;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
}

.close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-popup:hover {
    opacity: 1;
}

.map-content {
    height: 450px;
    width: 100%;
}

.map-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-actions {
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: #fff;
}

.map-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: white;
    color: #3f72af;
    border: 1px solid rgba(63, 114, 175, 0.3);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    flex: 1;
    margin: 0 0.5rem;
}

.map-action-btn:hover {
    background: #3f72af;
    color: white;
    transform: translateY(-2px);
}

.map-action-btn:first-child {
    margin-left: 0;
}

.map-action-btn:last-child {
    margin-right: 0;
}

footer {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
}

footer p {
    color: #1a1a1a;
    font-size: 1rem;
    font-weight: 500;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: white;
    padding: 35px;
    border-radius: 24px;
    max-width: 420px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 22px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.close-modal:hover {
    color: #1a1a1a;
    background: #e8e8e8;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: #1a1a1a;
    margin-bottom: 15px;
    font-size: 1.6rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.modal-content h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #0066ff;
    border-radius: 2px;
}

.modal-content p {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e4e6e9;
    border-radius: 14px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9fb;
}

.form-group input::placeholder {
    color: #aab0b7;
    font-weight: 400;
}

.form-group input:focus {
    outline: none;
    border-color: #0066ff;
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
    background: #fff;
}

.form-group input:hover {
    border-color: #c8cdd4;
    background: #fff;
}

.submit-btn {
    background: #0066ff;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.submit-btn:hover {
    background: #0052cc;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.3);
}

.submit-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.2);
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.qr-container {
    background: linear-gradient(145deg, #f8f9fa, #ffffff);
    padding: 20px;
    border-radius: 20px;
    margin: 25px 0;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.03);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.qr-image {
    margin: 0 auto 20px;
    padding: 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: inline-block;
    border: 1px solid #eaeaea;
    max-width: 100%;
    text-align: center;
}

.static-qr {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    width: 180px;
}

.qr-text {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0;
}

.share-buttons-container {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
}

.copy-link-btn, .share-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    flex: 1;
}

.copy-link-btn {
    background: #4CAF50;
    color: white;
}

.copy-link-btn:hover {
    background: #3e8e41;
}

.share-link-btn {
    background: #0066ff;
    color: white;
}

.share-link-btn i, .copy-link-btn i {
    font-size: 1.1rem;
}

.copy-link-btn i {
    animation: bounce 1s infinite;
}

.share-link-btn i {
    animation: pulse 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.share-modal {
    text-align: center;
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    .profile {
        padding: 20px;
    }

    .gallery-nav-btn {
        display: none;
    }

    .corner-button {
        padding: 8px 16px;
    }
}
