:root {
    --color-principal: #236072;
    --color-boton: #4082bc;
    --color-boton-sec: #72a6c3;
}

/* =========================================
    ESTRUCTURA GENERAL
========================================= */

body, html {
    height: 100%;
    margin: 0;
}

/* Imagen circular izquierda */
.circle-image-wrapper {
    width: 100%;
    display: flex;
    justify-content: left;
    align-items: center;
}

.circle-image {
    width: 67%;
    max-width: 520px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    overflow: hidden;
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ocultar imagen circular en mobile */
@media (max-width: 768px) {
    .circle-image-wrapper,
    .circle-image-wrapper * {
        display: none !important;
    }
}

/* Contenedor del formulario */
.form-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0px;
    overflow: hidden;
}

/* =========================================
    STEP FORM (TUS ESTILOS)
========================================= */

.step-form {
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding: 31px 34px;
    font-family: sans-serif;
}

.step-form * {
    box-sizing: border-box;
}

.step-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--color-principal);
    font-weight: 700;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px;
    font-size: 1rem;
    border-radius: 20px;
}

.pregunta {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: #333;
}

.error-msg {
    color: red;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* =========================================
    TELEFONO (País + Área + Número)
========================================= */

.telefono-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.telefono-item {
    flex: 1;
    min-width: 100px;
}

.telefono-largo {
    flex: 2;
}

/* =========================================
    IMAGEN SUPERIOR MOBILE
========================================= */

.imagen-top-mobile {
    display: none;
}


/* =========================================
    BOTON / OVERLAY
========================================= */

.form-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}



.overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.overlay i {
    color: black;
}

/* =========================================
    IMAGEN DERECHA / DECORADO
========================================= */

.right-image {
    position: absolute;
    right: 0px;
    top: 130px;
    width: 27%;
    overflow: hidden;
    z-index: -10;
}


.right-image img {
    width: 150%; /* Se ve más parte de la imagen */
    height: 100%;
    object-fit: cover;
    object-position: 70% 0;
}
/* Mobile */
@media (max-width: 768px) {
    .right-image {

        display: none;
    }

}


/* =======================================
   COLORES TITULOS
======================================= */
.titulo-principal,
.titulo-secundario,
.form-group label {
    color: var(--color-principal) !important;
    font-weight: 600;
}


/* =======================================
   BOTONES
======================================= */
.boton-principal {
    background-color: var(--color-boton) !important;
    border-color: var(--color-boton) !important;
}

.boton-nueva {
    background-color: var(--color-principal) !important;
    border-color: var(--color-principal) !important;
}




@media (min-width: 769px) {
    .form-container {
        transform: scale(0.90);
    }
}


/* =========================================
   FIX: Ocultar imagen izquierda en mobile completamente
========================================= */
@media (max-width: 768px) {
    .circle-image-wrapper,
    .circle-image-wrapper * {
        display: none !important;
    }
}

/* =========================================
   FIX: Imagen circular móvil pegada a la derecha
========================================= */
@media (max-width: 768px) {

  /* Contenedor que recorta */
  .imagen-top-mobile-wrapper {
    position: absolute;
    top: -35px;
    right: -64px;
    width: 58vw;
    height: 58vw;
    overflow: hidden !important;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
  }

  .imagen-top-mobile {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* ⚠️ BLOQUEO REAL DEL SCROLL HORIZONTAL */
  html, body {
    width: 100vw !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative !important;
  }

  /* Para matar cualquier overflow de Bootstrap */
  .container-fluid,
  .row,
  [class*="col-"] {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Para evitar que algo se desborde por paddings */
  * {
    box-sizing: border-box !important;
  }

}
/* ELIMINAR ESTA REGLA — causa el error */
/*
.imagen-top-mobile {
    position: relative;
    z-index: 10;
}
*/

@media (max-width: 768px) {

    .titulo-principal {
        font-size: 1.4rem !important;   /* más chico */
        width: 60% !important;          /* ocupa solo parte del form */
        text-align: left !important;    /* alineado a la izquierda */
        margin-left: 0 !important;      /* pegado al borde */
        line-height: 1.2;               /* compacto */
    }
}