/* ===== LAYOUT GENERAL ===== */

.registro-layout {
    display: flex;
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
}

/* ===== COLUMNA IZQUIERDA ===== */

.registro-form-container {
    width: 60%;
    padding: 60px 80px;
    background-color: white;
}

/* ===== COLUMNA DERECHA ===== */

.registro-imagen {
    width: 40%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 3px solid #d9d9d9;
}

.registro-imagen img {
    max-width: 80%;
}

/* ===== HEADER ===== */

.registro-header h2 {
    font-size: 26px;
    font-weight: 600;
    color: #b38b00;
    margin: 0;
}

.linea-decorativa {
    width: 60px;
    height: 4px;
    background-color: black;
    margin-top: 10px;
    margin-bottom: 40px;
    border-radius: 4px;
}

.btn-back {
    text-decoration: none;
    font-size: 20px;
    margin-right: 10px;
    color: black;
}

/* ===== GRID DE CAMPOS ===== */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px 40px;
}

.full-width {
    grid-column: span 2;
}

/* ===== CAMPOS ===== */

.form-group label {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1.5px solid #dcdcdc;
    background: transparent;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

/* Focus dorado */
.form-group input:focus,
.form-group select:focus {
    border-color: #b38b00;
    box-shadow: 0 0 0 2px rgba(179,139,0,0.1);
}

/* Placeholder */
.form-group input::placeholder {
    color: #9e9e9e;
    font-size: 13px;
}

/* ===== CHECKBOX ===== */

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* ===== CAPTCHA ===== */

.captcha-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

/* ===== BOTONES ===== */

.botones {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
}

.btn-volver {
    padding: 12px 30px;
    border-radius: 10px;
    background-color: #1A2E35;
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.btn-registrar {
    padding: 12px 30px;
    border-radius: 10px;
    background-color: #C1B58D;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
}

.btn-registrar:hover {
    background-color: #b3a77e;
}

/* CONTENEDOR DEL ICONO */
.info-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* ICONO */
.info-icon {
    color: #212529;
    font-size: 15px;
    cursor: pointer;
}

/* TOOLTIP NUEVO */
.tooltip-custom {
    position: absolute;
    top: -32px;
    left: 22px;

    background-color: #1A2E35;
    color: #ffffff;

    padding: 5px 10px;
    border-radius: 6px;

    font-size: 12px;
    font-weight: 400;

    white-space: nowrap;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.2s ease;

    text-transform: none !important;
}

/* Flechita */
.tooltip-custom::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 12px;

    border-width: 5px;
    border-style: solid;
    border-color: #1A2E35 transparent transparent transparent;
}

/* Mostrar tooltip */
.info-wrapper:hover .tooltip-custom {
    opacity: 1;
    visibility: visible;
}

/* --- AJUSTES RESPONSIVOS --- */

@media (max-width: 1024px) {
    /* En pantallas menores a 1024px, cambiamos la dirección del layout */
    .registro-layout {
        flex-direction: column;
    }

    .registro-form-container {
        width: 100%;
        padding: 40px 30px; /* Reducimos el padding lateral */
    }

    .registro-imagen {
        width: 100%;
        height: 250px; /* Altura fija para la imagen en móvil */
        border-left: none;
        border-top: 3px solid #d9d9d9;
    }

    .registro-imagen img {
        max-height: 100%;
        width: auto;
    }
}

@media (max-width: 768px) {
    /* En celulares, reducimos los márgenes y tamaños de fuente */
    .registro-header h2 {
        font-size: 20px;
        line-height: 1.25;
    }

    .registro-form-container {
        padding: 30px 20px;
    }

    .linea-decorativa {
        margin-bottom: 24px;
    }

    .registro-imagen {
        display: none;
    }

    .form-grid {
        grid-template-columns: 1fr; /* Una sola columna para los inputs */
        gap: 15px;
    }

    .full-width {
        grid-column: span 1;
    }

    .botones {
        flex-direction: column; /* Botones apilados en móvil */
        gap: 10px;
    }

    .btn-volver, .btn-registrar {
        width: 100%;
        text-align: center;
    }

    .tooltip-inner {
        max-width: 260px;
        white-space: normal;
    }
}

@media (max-width: 480px) {
    .registro-form-container {
        padding: 24px 16px;
    }

    .g-recaptcha {
        transform: scale(0.88);
        transform-origin: left center;
    }
}

select:invalid {
    color: #9e9e9e;
}

/* ===== ERROR EN INPUT ===== */

.form-control.is-invalid {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5;
}

.error-text {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

.tooltip-inner{
    max-width: none;      /* quita el límite de ancho */
    white-space: nowrap;  /* evita que el texto se parta */
    font-size: 14px;
    padding: 10px 14px;
}
