/* estilo.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #2a2a2a;
}

header {
    background-color: #000;
    padding: 0;
    box-shadow: 0 2px 15px rgba(212, 175, 55, 0.4);
    height: 80px;
    position: relative;
    overflow: visible;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 20px;
    position: relative;
}

.logo {
    height: 96px;
    width: auto;
    position: absolute;
    top: 8px;
    left: 20px;
    z-index: 10;
}

header h1 {
    color: #D4AF37;
    text-transform: uppercase;
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
    margin-left: 120px;
}

/* Cintillo de cotizaciones */
.ticker-container {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    background: linear-gradient(90deg, #000, #2a2a2a, #000);
    border: 1px solid #D4AF37;
    border-top: none;
    padding: 8px 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out;
    z-index: 999;
}

.ticker-container.visible {
    opacity: 1;
    visibility: visible;
}

.ticker-wrapper {
    width: 100%;
    overflow: hidden;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-scroll 40s linear infinite;
    animation-delay: 0.5s;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    margin: 0 15px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #D4AF37;
}

.flag {
    width: 20px;
    height: 15px;
    margin: 0 5px;
    border: 1px solid #666;
    object-fit: cover;
}

.price-up {
    color: #00ff00;
    font-weight: bold;
}

.price-down {
    color: #ff4444;
    font-weight: bold;
}

.price-neutral {
    color: #D4AF37;
}

.separator {
    margin: 0 10px;
    color: #D4AF37;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #2a2a2a;
    position: relative;
}

.main-content {
    text-align: center;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.logo-container {
    margin-bottom: 40px;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 2s ease-in-out;
}

.logo-jg {
    width: 50vw;
    height: 50vh;
    opacity: 1;
    transform: scale(1);
    transition: all 2s ease-in-out;
    object-fit: contain;
}

.logo-jg.small {
    width: 80px;
    height: 80px;
    position: static;
    transform: scale(1);
}

.services {
    transition: opacity 1s ease-in-out;
}

.services h2 {
    color: #D4AF37;
    margin-bottom: 20px;
    font-size: 2rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.currencies {
    color: #D4AF37;
    margin-bottom: 30px;
    font-size: 1.4rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.services.hidden {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.contact-table {
    opacity: 0;
    visibility: hidden;
    width: 80%;
    max-width: 800px;
    border-collapse: collapse;
    background-color: #000;
    border: 2px solid #D4AF37;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.7);
    transition: opacity 1s ease-in-out;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
}

.contact-table.visible {
    opacity: 1;
    visibility: visible;
}

.contact-table th {
    background-color: #D4AF37;
    color: #000;
    padding: 20px;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-table td {
    padding: 15px;
    border: 1px solid #D4AF37;
    color: #D4AF37;
    vertical-align: top;
}

.contact-table .logo-cell {
    width: 20%;
    text-align: center;
    vertical-align: middle;
}

.contact-table .logo-cell img {
    width: 100px;
    height: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out 0.5s;
}

.contact-table.visible .logo-cell img {
    opacity: 1;
}

.contact-table .info-cell {
    background-color: #B8860B;
    color: #000;
    font-weight: bold;
    width: 20%;
    text-align: right; /* Alineado a la derecha */
    padding-right: 20px; /* Espacio adicional a la derecha */
    vertical-align: middle; /* Alineado vertical al centro */
}

.contact-table .data-cell {
    width: 60%;
    text-align: left;
    font-size: 1.1rem;
    vertical-align: middle; /* Alineado vertical al centro */
}

.contact-table .disclaimer-cell {
    background-color: #1a1a1a;
    color: #D4AF37;
    font-size: 0.8rem;
    font-style: italic;
    text-align: center;
    padding: 10px;
    border-top: 2px solid #D4AF37;
}

.whatsapp-btn {
    display: inline-block;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    padding: 18px 35px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
    font-size: 1.3rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128C7E, #25D366);
}

.whatsapp-btn:active {
    transform: translateY(-1px);
}

.phone-number {
    display: block;
    font-size: 1.1rem;
    margin-top: 8px;
    opacity: 0.9;
}

.whatsapp-table-btn {
    display: none;
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.whatsapp-table-btn.visible {
    display: inline-block;
    opacity: 1;
}

/* Responsive para m¨®viles */
@media (max-width: 768px) {
    header {
        height: 70px;
    }
    
    .header-content {
        padding: 0 15px;
    }
    
    .logo {
        height: 84px;
        top: 7px;
        left: 15px;
    }
    
    header h1 {
        font-size: 1.4rem;
        margin-left: 100px;
    }
    
    .ticker-container {
        width: 80%;
    }
    
    .ticker-item {
        font-size: 0.8rem;
        margin: 0 10px;
    }
    
    .flag {
        width: 18px;
        height: 13px;
    }
    
    .logo-jg {
        width: 70vw;
        height: 40vh;
    }
    
    .logo-jg.small {
        width: 60px;
        height: 60px;
    }
    
    .services h2 {
        font-size: 1.6rem;
    }
    
    .currencies {
        font-size: 1.2rem;
    }
    
    .whatsapp-btn {
        padding: 15px 30px;
        font-size: 1.2rem;
    }
    
    .contact-table {
        width: 95%;
    }
    
    .contact-table th {
        font-size: 1.2rem;
        padding: 15px;
    }
    
    .contact-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .contact-table .info-cell {
        padding-right: 15px;
        font-size: 0.9rem;
    }
    
    .contact-table .logo-cell img {
        width: 80px;
    }
    
    .contact-table .disclaimer-cell {
        font-size: 0.7rem;
        padding: 8px;
    }
    
    .whatsapp-table-btn {
        bottom: 30px;
        padding: 14px 28px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    header {
        height: 60px;
    }
    
    .header-content {
        padding: 0 10px;
    }
    
    .logo {
        height: 72px;
        top: 6px;
        left: 10px;
    }
    
    header h1 {
        font-size: 1.2rem;
        margin-left: 85px;
    }
    
    .ticker-container {
        width: 90%;
        padding: 6px 0;
    }
    
    .ticker-item {
        font-size: 0.7rem;
        margin: 0 8px;
    }
    
    .flag {
        width: 16px;
        height: 12px;
    }
    
    .logo-jg {
        width: 80vw;
        height: 35vh;
    }
    
    .logo-jg.small {
        width: 50px;
        height: 50px;
    }
    
    .services h2 {
        font-size: 1.4rem;
    }
    
    .currencies {
        font-size: 1rem;
    }
    
    .whatsapp-btn {
        padding: 14px 25px;
        font-size: 1.1rem;
    }
    
    .contact-table th {
        font-size: 1rem;
        padding: 12px;
    }
    
    .contact-table td {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .contact-table .info-cell {
        padding-right: 10px;
        font-size: 0.8rem;
    }
    
    .contact-table .logo-cell img {
        width: 70px;
    }
    
    .contact-table .disclaimer-cell {
        font-size: 0.65rem;
        padding: 6px;
    }
    
    .whatsapp-table-btn {
        bottom: 20px;
        padding: 12px 24px;
        font-size: 1rem;
    }
}