/* Importar la fuente Inter de Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Reset y estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #2e3034;
    color: #f0f0f0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Estilos del encabezado */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

.logo img {
    height: 30px; /* Ajusta el tamaño del logo */
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.main-nav a {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
}

/* Estilos de la sección principal */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    flex-grow: 1;
}

.hero-section {
    text-align: left;
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1rem;
    color: #a0a0a0;
}

/* Estilos del contenedor del formulario */
.form-container {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    padding: 2rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    background-color: #f0f0f0;
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    position: relative;
}

.form-header label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.country-select {
    border: none;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 1.5rem; /* Espacio para la flecha */
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
    color: #333;
    font-weight: 600;
}

.country-select:focus {
    outline: none;
}

/* Ocultar el select visualmente pero mantenerlo funcional para accesibilidad */
.country-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.flag-icon {
    height: 20px;
    width: auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.input-with-currency {
    display: flex;
    align-items: center;
    background-color: #3e4044;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
}

.input-with-currency input {
    flex-grow: 1;
    border: none;
    background-color: transparent;
    color: #f0f0f0;
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0;
    width: 100%;
}

.input-with-currency input:focus {
    outline: none;
}

.currency-label {
    font-size: 1.25rem;
    font-weight: 600;
    color: #a0a0a0;
}

.exchange-rate-banner {
    background-color: #d8ff00; /* Color verde/amarillo del banner */
    color: #333;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    text-align: center;
    font-weight: 600;
    margin: 1rem 0;
}

/* Estilos específicos para el campo de Whatsapp */
.whatsapp-input {
    display: flex;
    background-color: #3e4044;
    border-radius: 0.5rem;
    overflow: hidden;
}

.country-code-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-right: 1px solid #555;
    position: relative;
    cursor: pointer;
}

.country-code-selector .flag-icon-small {
    height: 16px;
    width: auto;
}

.country-code-selector span {
    font-size: 1rem;
    color: #f0f0f0;
    font-weight: 600;
}

.country-code-select {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.whatsapp-input input {
    flex-grow: 1;
    border: none;
    background-color: transparent;
    color: #f0f0f0;
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.whatsapp-input input:focus {
    outline: none;
}

/* Estilos para la comisión */
.commission {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.commission #commission-amount {
    font-weight: 600;
    color: #f0f0f0;
}

/* Estilos del botón de envío */
.submit-button {
    width: 100%;
    background-color: #272c2f;
    color: #f0f0f0;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #3d4245;
}

/* Texto de términos y condiciones */
.terms-text {
    text-align: center;
    font-size: 0.8rem;
    color: #a0a0a0;
    margin-top: 1rem;
}

.terms-text a {
    color: #d8ff00; /* Color de enlace */
    text-decoration: none;
}

/* Estilos responsivos */
@media (min-width: 768px) {
    .main-content {
        flex-direction: row;
        gap: 4rem;
        padding: 4rem;
    }
    .hero-section {
        margin-bottom: 0;
    }
    .hero-title {
        font-size: 4rem;
    }
}