/* Estilos generales */
body {
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/30756.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #f1f5f9;
    padding-top: 80px;
}

/* Sección principal */
#home {
    display: flex;
    flex-direction: column;
    padding: 30px 5%;
    gap: 30px;
}

.home-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 200px; /* Puedes ajustar este también */
}

/* Contenido principal */
.principal {
    flex: 1;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 500px;
}

.servicio {
    background: transparent;
    padding: 0;
    margin-bottom: 60px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicio strong {
    font-size: 2.8rem;
    color: #ffffff;
    display: block;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.servicio p {
    font-size: 1.4rem;
    line-height: 1.4;
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 80%;
    padding-top: 70px;
}

/* Socios */
.socios {
    display: flex;
    gap: 40px;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
    padding-top: 20px;
    margin-top: 20px;
}

.socios > div {
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-align: center;
    flex: 0 0 auto;
    width: 150px;
}

.socios img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.socios img:hover {
    transform: scale(1.1);
}

.socios p {
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Calculadora */
.calculadora {
    flex: 1;
    max-width: 450px;
    margin-bottom: 30px;
    margin-right: 20px;
}

.calculator-container {
    background-color: rgba(14, 23, 42, 0.95);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.calculator-container h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #38bdf8;
    text-align: center;
}

/* Formulario de calculadora */
.calculadora-form {
    
    padding: 20px;
    border-radius: 12px;
}

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

.calculadora-form .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #94a3b8;
    font-weight: 500;
    font-size: var(--font-size-sm);
}

/* Contenedor para los selectores de moneda en PLATEA */
.calculadora-form .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.calculadora-form .form-column {
    flex: 1;
    min-width: 0; /* Evita que los selectores se desborden */
}

.calculadora-form .form-column label {
    display: block;
    color: #94a3b8;
    margin-bottom: 8px;
    font-size: var(--font-size-sm);
}

.calculadora-form input[type="number"],
.calculadora-form select {
    width: 100%;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #f1f5f9;
    font-size: var(--font-size-base);
    transition: all 0.3s ease;
}

.calculadora-form input[type="number"]:focus,
.calculadora-form select:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

/* Responsive para los selectores de moneda en PLATEA */
@media (max-width: 576px) {
    .calculadora-form .form-row {
        flex-direction: column;
        gap: 10px;
    }

    .calculadora-form .form-column {
        width: 100%;
    }
}

/* Botones de tipo de operación */
.btn-outline-primary,
.btn-outline-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 160px;
    border: 1px solid;
    background: transparent;
    cursor: pointer;
}

/* Contenedor de botones */
.mb-3 {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px !important;
}

.btn-outline-primary {
    color: #38bdf8;
    border-color: #38bdf8;
}

.btn-outline-secondary {
    color: #94a3b8;
    border-color: #94a3b8;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #38bdf8;
    color: #0f172a;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background-color: #94a3b8;
    color: #0f172a;
}

/* Resultado */
.resultado-box {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 12px;
    margin-top: 15px;
}

.resultado-flex {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resultado-content {
    text-align: center;
}

.resultado-box h3 {
    color: #38bdf8;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.resultado-box p {
    font-size: 0.95rem;
    margin: 8px 0;
}

.tasa-detalle {
    color: #94a3b8;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* Botón de realizar cambio */
.btn-realizar-cambio {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    text-align: center;
    border: none;
}

.btn-realizar-cambio:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.2);
}

/* Text danger */
.text-danger {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 4px;
}

/* Tasas actuales */
.tasas-actuales-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.tasas-actuales {
    background-color: rgba(14, 23, 42, 0.95);
    padding: 25px;
    border-radius: 15px;
}

.tasas-actuales h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-align: center;
    color: #38bdf8;
}

.tasas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.tasa-item {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
}

.tasa-item:hover {
    transform: translateY(-5px);
}

.tasa-par {
    font-size: 1rem;
    margin-bottom: 8px;
    color: #f1f5f9;
    font-weight: 500;
}

.tasa-valores {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tasa-compra, 
.tasa-venta {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Responsive para tasas */
@media (max-width: 1200px) {
    .tasas-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .tasas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tasas-grid {
        grid-template-columns: 1fr;
    }
    
    .tasas-actuales {
        padding: 20px;
    }

    .mb-3 {
        flex-direction: column;
        align-items: center;
    }

    .btn-outline-primary,
    .btn-outline-secondary {
        width: 100%;
        max-width: 200px;
    }
}

/* Sección de contacto */
#contact {
    padding: 40px 7%;
    background-color: rgba(0, 0, 0, 0.6);
}

/* Sección Sobre Nosotros */
#about {
    padding: 60px 20px;
    background-color: rgba(14, 23, 42, 0.95);
    max-width: 1200px;
    margin: 0 auto;
}

#about h1 {
    text-align: center;
    font-size: 2.5rem;
    color: #38bdf8;
    margin-bottom: 50px;
}

.process-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.process-item {
    background-color: rgba(30, 41, 59, 0.8);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
}

.process-item:hover {
    transform: translateY(-5px);
}

.process-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.process-item h2 {
    font-size: 1.3rem;
    color: #38bdf8;
    margin: 15px 0;
}

.process-item p {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* WhatsApp flotante */
#whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

#whatsapp img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

#whatsapp img:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 995px) {
    .home-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .principal, 
    .calculadora {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .home-content {
        flex-direction: column;
        gap: 50px;
    }

    .principal {
        min-height: auto;
        position: relative;
        padding-bottom: 20px;
    }

    .servicio {
        margin-bottom: 20px;
    }

    .servicio strong {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .servicio p {
        font-size: 1.2rem;
        padding-top: 20px;
        max-width: 90%;
    }

    .socios {
        padding-top: 0;
        margin-top: 10px;
        position: relative;
        bottom: auto;
        gap: 30px;
    }

    .socios > div {
        width: 120px;
    }

    .socios img {
        width: 40px;
        height: 40px;
    }

    .socios p {
        font-size: 0.9rem;
        line-height: 1.3;
    }
}

@media (max-width: 600px) {
    .home-content {
        gap: 30px;
    }

    .servicio strong {
        font-size: 1.8rem;
    }

    .servicio p {
        font-size: 1.1rem;
    }

    .socios {
        gap: 20px;
    }

    .socios > div {
        width: 100px;
    }

    .socios p {
        font-size: 0.9rem;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    color: #f1f5f9 !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #38bdf8 !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Ajuste para el contenido debajo del navbar fijo */
main {
    min-height: calc(100vh - 80px);
}

/* Responsive para tasas y about */
@media (max-width: 1200px) {
    .tasas-grid,
    .process-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .tasas-grid,
    .process-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .tasas-grid,
    .process-gallery {
        grid-template-columns: 1fr;
    }
    
    .tasas-actuales,
    #about {
        padding: 20px;
    }
} 