/* CSS General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to bottom, white, #f0f0f0);
    min-height: 100vh;
    color: #333;
    position: relative;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    height: 50px;
    transition: all 0.3s ease;
}

.contact-btn {
    background: linear-gradient(to right, #1a73e8, #4285f4);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-transform: uppercase;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Banner */
.banner {
    width: 100%;
    height: 70vh;
    background-image: url('bg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.square-btn {
    width: 300px;
    height: 300px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.square-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.btn-1 {
    background-image: url('1.png');
}

.btn-2 {
    background-image: url('2.png');
}

.btn-3 {
    background-image: url('3.png');
}

.help-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    width: 30px;
    height: 30px;
    background-color: #1a73e8;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.help-icon:hover {
    transform: scale(1.2);
    background-color: #0d5bba;
}

/* Tooltips */
.tooltip-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    display: none;
}

.tooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 101;
    display: none;
}

.tooltip-content {
    position: relative;
}

.tooltip h3 {
    color: #1a73e8;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.tooltip p {
    color: #555;
    line-height: 1.6;
}

.close-tooltip {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a73e8;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
}

.close-tooltip:hover {
    background-color: #0d5bba;
}

/* Sección de Catálogo - Versión Pantalla Completa */
.catalog-section {
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f9f9f9, #f0f0f0);
    position: relative;
    min-height: calc(100vh - 150px);
}

.catalog-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('asd.png');
    background-repeat: repeat;
    background-size: 150px;
    opacity: 0.03;
    z-index: 0;
}

.catalog-title-container {
    display: inline-block;
    padding: 20px 40px;
    border-radius: 10px;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.catalog-title-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.catalog-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-weight: 700;
}

.saphirus-logo {
    height: 80px;
    margin-top: 10px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    transition: all 0.3s ease;
}

.saphirus-logo:hover {
    transform: scale(1.05);
}

/* Visor de Catálogo - Pantalla Completa */
.catalog-viewer-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    height: calc(100vh - 300px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.catalog-slider {
    flex: 1;
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pages-container {
    display: flex;
    flex: 1;
    transition: transform 0.3s ease;
    width: 100%;
    padding: 20px 60px;
    margin: 0;
    gap: 0 !important;
    overflow-y: auto;
}

.page-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 15px;
    margin: 0;
    flex: 0 0 100%;
    height: 100%;
}

.page-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* Indicador de página semicircular */
.page-number-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff4081;
    color: white;
    width: 40px;
    height: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 5;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

/* Flechas de navegación */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(26, 115, 232, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.5rem;
}

.nav-btn:hover {
    background-color: rgba(26, 115, 232, 1);
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* Botones de acción del catálogo */
.catalog-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(to right, #1a73e8, #4285f4);
    color: white !important;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    min-width: 300px;
    font-size: 1rem;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(to right, #1a73e8, #4285f4);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: none;
    min-width: 300px;
    font-size: 1rem;
}

.download-btn:hover, .home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to right, #1666d9, #3a6ed8);
}

/* Sección del Mapa */
.map-section {
    padding: 60px 20px;
    text-align: center;
    background-color: #f9f9f9;
    position: relative;
}

.section-title-container {
    margin-bottom: 30px;
}

.section-title {
    font-size: 2.2rem;
    color: #1a73e8;
    margin-bottom: 10px;
}

.section-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

#map {
    height: 70vh;
    width: 100%;
    min-height: 500px;
    z-index: 1;
}

.map-controls {
    display: flex;
    justify-content: center;
    padding: 15px;
    gap: 10px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a73e8;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
}

.zoom-btn:hover {
    background-color: #0d5bba;
}

.revendedor-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background-color: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.revendedor-btn:hover {
    background-color: #0d5bba;
}

/* Footer */
footer {
    background-color: #1a73e8;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 10px #999;
}

.whatsapp-float img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Responsive */
@media (max-width: 768px) {
    .banner {
        height: auto;
        padding: 50px 20px;
    }
    
    .buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .square-btn {
        width: 250px;
        height: 250px;
    }
    
    /* Ajustes específicos para el catálogo en mobile */
    .catalog-viewer-container {
        height: calc(100vh - 200px);
        min-height: 400px;
    }
    
    .pages-container {
        padding: 15px;
        flex-direction: column;
    }
    
    .page-wrapper {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    .page-wrapper img {
        max-height: calc(100vh - 250px);
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    #map {
        height: 60vh;
        min-height: 400px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float img {
        width: 30px;
        height: 30px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
    
    .tooltip {
        width: 95%;
        padding: 20px;
    }
    
    .download-btn, .home-btn {
        min-width: auto;
        width: 100%;
    }
}

@media (min-width: 768px) {
    .page-wrapper {
        width: 50% !important;
        flex: 0 0 50%;
    }
    
    .pages-container {
        padding: 30px 80px;
    }
    
    .nav-btn {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}

@media (min-width: 992px) {
    header {
        padding: 20px 50px;
    }
    
    .logo {
        margin-left: 50px;
    }
    
    .contact-btn {
        margin-right: 50px;
    }
}

/* Estilos para la sección de envíos */
.shipping-info {
    text-align: center;
    margin: 20px 0;
}

.shipping-text {
    color: #1a73e8;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.shipping-btn {
    display: inline-block;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10px 0;
}

.shipping-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background: linear-gradient(to right, #2575fc, #6a11cb);
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .shipping-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .shipping-text {
        font-size: 1rem;
    }
}