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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.container {
    max-width: 680px;
    width: 100%;
    padding: 15px;
}

.profile {
    text-align: center;
    margin-bottom: 40px;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    margin-bottom: 15px;
}

.profile h1 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.bio {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.profile p {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-card {
    width: 100%;
    background: rgba(255,255,255,0.9);
    padding: 15px;
    border-radius: 12px;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

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

.link-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 5px;
    width: 100%;
    text-align: center;
}

.link-subtitle {
    font-size: 0.8rem;
    color: #666;
    font-weight: normal;
    width: 100%;
    text-align: center;
}

.link-sub.location-hours {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 5px;
}

.location-phone {
    font-size: 0.9rem;
    color: #444;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.location-phone i {
    color: #0066cc;
    font-size: 0.8rem;
}

.link-card:hover {
    transform: translateY(-3px);
    background: white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.link-card:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.link-card:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.3);
}

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

.corner-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.corner-button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.subscribe-btn {
    background: rgba(255, 255, 255, 0.2);
}

.footer {
    margin-top: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    margin-bottom: 10px;
}

.logo-img {
    max-width: 100px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    max-width: 600px;
}

.footer-menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    width: 100%;
    margin: 20px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-section h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.menu-section ul {
    list-style: none;
    padding: 0;
}

.menu-section ul li {
    margin-bottom: 10px;
}

.menu-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.menu-section ul li a:hover {
    color: white;
    transform: translateX(5px);
    display: inline-block;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-menu {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .menu-section {
        padding: 0 20px;
    }
}

footer {
    text-align: center;
    margin: 60px 0 20px;
    padding: 25px 15px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    letter-spacing: 0.5px;
}

/* 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(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.location-modal h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 600;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 15px;
}

.modal-content p {
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #f5f5f5;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.close-modal:hover {
    color: #333;
    background-color: #e9e9e9;
    transform: rotate(90deg);
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #764ba2;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Share Modal Styles */
.share-modal {
    text-align: center;
}

.qr-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

#qrcode {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

#qrcode img {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.qr-text {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

.share-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

/* Gallery Styles */
.gallery-section {
    margin-top: 40px;
    position: relative;
    padding: 0;
}

.gallery-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.gallery-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: normal;
}

.gallery-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
}

.gallery-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.gallery-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 280px;
    height: 100%;
}

.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;
}

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

.gallery-text h3 {
    margin-bottom: 8px;
    color: #333;
}

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

.ver-mas-btn {
    background-color: #3f72af;
    color: white;
    border: 2px solid #3f72af;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 20px auto 10px;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: fit-content;
    letter-spacing: 0.5px;
}

.ver-mas-btn:hover {
    background-color: transparent;
    color: #3f72af;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(63, 114, 175, 0.2);
}

.ver-mas-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    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);
    color: #333;
    z-index: 1;
    transition: all 0.3s ease;
}

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

.gallery-nav-btn.next {
    right: -10px;
}

.gallery-nav-btn.prev {
    left: -10px;
    display: none; /* Initially hidden */
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .profile-img {
        width: 120px;
        height: 120px;
    }
    
    .profile h1 {
        font-size: 1.5rem;
    }
    
    .bio {
        font-size: 1rem;
    }
    
    .link-card {
        padding: 12px 15px;
    }
}

@media (max-width: 768px) {
    .gallery-nav-btn {
        display: none;
    }
    
    .gallery-container {
        padding: 10px 0;
    }
    
    .gallery-card {
        min-width: 260px;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    .locations-container {
        flex-direction: column;
    }
    
    .location-card {
        width: 100%;
        margin-bottom: 20px;
        min-width: 100%;
    }
    
    .location-image {
        height: 200px;
    }
    
    .location-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .location-btn {
        width: 100%;
    }
    
    .location-modal {
        width: 95%;
        max-width: 100%;
    }
    
    .map-container {
        height: 300px;
    }
}

/* Locations Styles */
.locations-section {
    margin-top: 40px;
    position: relative;
    padding: 0;
}

.locations-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
}

.locations-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 20px;
    font-weight: normal;
}

.locations-container {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.location-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex: 1;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 280px;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background: white;
}

.location-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

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

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

.location-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.location-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.location-info {
    flex: 1;
    text-align: center;
    margin: 15px 0;
}

.location-info h3 {
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
}

.location-info p {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.location-phone {
    font-size: 0.9rem;
    color: #444;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.location-phone i {
    color: #0066cc;
    font-size: 0.8rem;
}

.location-hours {
    color: #888;
    font-size: 0.8rem;
    display: block;
}

.map-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px auto 0;
}

.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.map-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Location Modal Styles */
.location-modal {
    max-width: 600px;
    width: 90%;
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.05);
}

.location-info {
    text-align: center;
    margin-bottom: 15px;
    padding: 0 15px;
}

.location-info p {
    margin: 8px 0;
    color: #555;
    font-size: 1rem;
}

.location-info i {
    margin-right: 8px;
    color: #666;
}

.location-map {
    padding: 0;
    height: 450px;
    margin: 0;
    width: 100%;
    overflow: hidden;
}

.location-address {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 15px;
    text-align: center;
    border-left: 4px solid #4285F4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.location-address p {
    margin: 8px 0;
    color: #555;
    font-size: 1rem;
}

.location-address i {
    color: #4285F4;
    margin-right: 8px;
}

.map-container {
    width: 100%;
    height: 450px;
    border-radius: 15px;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border: 4px solid white;
    transition: all 0.3s ease;
}

/* Estilos para los controles del mapa de Google */
.map-container .gm-style-cc {
    display: none;
}

.map-container .gm-style a img {
    opacity: 0.7;
}

.map-container iframe {
    filter: saturate(1.05) contrast(1.05);
    transition: all 0.5s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.map-container:hover iframe {
    filter: saturate(1.2) contrast(1.1);
}

/* Estilo para el marcador de Google Maps */
.gm-style-iw {
    padding: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.location-details {
    margin: 15px 0;
}

.location-details p {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95rem;
}

.location-map {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
}

#map {
    width: 100%;
    height: 100%;
    background-image: url('https://placehold.co/600x400/e0e0e0/cccccc?text=Mapa');
    background-size: cover;
    background-position: center;
}

.location-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0 10px 10px;
}

.location-btn {
    padding: 12px 18px;
    border-radius: 10px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    border: 1px solid #eaeaea;
    font-size: 0.95rem;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
    border: none;
}

.whatsapp-btn:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3);
}

.location-btn:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}
