/* Estilos para el formulario de Datos Antropométricos - Estilo shadcn */

.interno-datos {
    background-color: #ffffff;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 24px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.interno-datos .frame {
    display: flex;
    width: 100%;
    gap: 31px;
    position: relative;
    align-items: flex-start;
}

.interno-datos .informacion {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 31px;
    position: relative;
    flex: 1;
    flex-grow: 1;
    width: 100%;
}

.interno-datos .row {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 24px 20px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    background-color: #ffffff;
    border-radius: 28px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.interno-datos .row-perfil {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    flex: 1;
    flex-grow: 1;
}

.interno-datos .div-wrapper {
    flex: 0 0 auto;
    display: inline-flex;
    height: 48px;
    align-items: center;
    position: relative;
}

.interno-datos .div {
    width: 40px;
    height: 40px;
    background-color: #006D39;
    border-radius: 100px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.interno-datos .div img,
.interno-datos .div svg {
    width: 24px;
    height: 24px;
    color: white;
}

.interno-datos .col-nom-y-ap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: relative;
    flex: 1;
    flex-grow: 1;
}

.interno-datos .text-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    color: #111827;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 18px;
    white-space: nowrap;
}

.interno-datos .text-field {
    height: 56px;
    flex: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.interno-datos .text-field-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    flex: 1;
    align-self: stretch;
    width: 100%;
    flex-grow: 1;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
}

.interno-datos .state-layer-2 {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    padding: 4px 0px;
    position: relative;
    flex: 1;
    align-self: stretch;
    width: 100%;
    flex-grow: 1;
    border-radius: 4px 4px 0px 0px;
}

.interno-datos .content-wrapper-2 {
    display: flex;
    min-width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    position: relative;
}

.interno-datos .label-text-container-wrapper {
    height: 48px;
    padding: 4px 0px;
    flex: 1;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
}

.interno-datos .label-text-container {
    display: flex;
    align-items: center;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    padding-left: 16px;
}

.interno-datos .label-text {
    position: relative;
    flex: 1;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    color: #374151;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 18px;
}

.interno-datos .row-tarjetas-form {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.interno-datos .col-peso-pliegues {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    flex: 1;
    flex-grow: 1;
}

.interno-datos .frame-2 {
    display: flex;
    flex-direction: column;
    gap: 33px;
    padding: 29px 20px;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    background-color: #ffffff;
    border-radius: 28px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: relative;
    align-items: flex-start;
}

.interno-datos .headline {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    font-family: 'Poppins', var(--material-theme-title-medium-font-family, 'Roboto', sans-serif);
    font-weight: var(--material-theme-title-medium-font-weight, 600);
    color: #006D39;
    font-size: var(--material-theme-title-medium-font-size, 15px);
    letter-spacing: var(--material-theme-title-medium-letter-spacing, 0.15px);
    line-height: var(--material-theme-title-medium-line-height, 24px);
    font-style: var(--material-theme-title-medium-font-style, normal);
}

.interno-datos .div-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.interno-datos .frame-3 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    position: relative;
    align-items: flex-start;
}

.interno-datos .vector {
    margin-top: -0.5px;
    position: relative;
    align-self: stretch;
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
    border: none;
}

.interno-datos .headline-2 {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    letter-spacing: 0;
    line-height: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.interno-datos .col-text-files {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.interno-datos .text-field-wrapper {
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.interno-datos .text-field-3 {
    min-height: 56px;
    height: auto;
    align-self: stretch;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
}

.interno-datos .text-field-4 {
    gap: 10px;
    flex: 1;
    align-self: stretch;
    width: 100%;
    flex-grow: 1;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.interno-datos .text-field-4:focus-within {
    border-color: #006D39;
    box-shadow: 0 0 0 3px rgba(0, 109, 57, 0.1);
}

.interno-datos .state-layer-3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 16px;
    position: relative;
    flex: 1;
    align-self: stretch;
    width: 100%;
    flex-grow: 1;
    border-radius: 4px 4px 0px 0px;
}

.interno-datos .state-layer-3 input {
    border: none;
    background: #ffffff;
    width: 100%;
    outline: none;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    color: #111827;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 18px;
    padding: 8px 0;
    text-align: center;
}

.interno-datos .state-layer-3 input::placeholder {
    color: #9ca3af;
}

.interno-datos .state-layer-3 input:disabled,
.interno-datos .state-layer-3 input[readonly] {
    color: #6b7280;
    cursor: not-allowed;
    background-color: #f3f4f6;
}

/* Textarea: same look as inputs inside text-field-4 / state-layer-3 */
.interno-datos .state-layer-3 textarea,
.interno-datos .state-layer-textarea textarea {
    border: none;
    background: #ffffff;
    width: 100%;
    outline: none;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    color: #111827;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 18px;
    padding: 8px 16px;
    resize: vertical;
    min-height: 80px;
}

.interno-datos .state-layer-3 textarea::placeholder,
.interno-datos .state-layer-textarea textarea::placeholder {
    color: #9ca3af;
}

.interno-datos .text-field-4.text-field-textarea {
    min-height: 100px;
}

.interno-datos .text-field-4.text-field-textarea .state-layer-3 {
    align-items: flex-start;
    padding: 12px 16px;
}

.interno-datos .label-text-2 {
    position: relative;
    flex: 1;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    color: #374151;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 18px;
    margin-bottom: 4px;
}

.interno-datos .col-text-files-2 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
}

.interno-datos .state-layer-4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 0px 4px 16px;
    position: relative;
    flex: 1;
    align-self: stretch;
    width: 100%;
    flex-grow: 1;
    border-radius: 4px 4px 0px 0px;
}

.interno-datos .state-layer-4 input {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    color: #111827;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 18px;
    padding: 8px 0;
    text-align: center;
}

.interno-datos .state-layer-4 input::placeholder {
    color: #9ca3af;
}

.interno-datos .state-layer-4 input:disabled,
.interno-datos .state-layer-4 input[readonly] {
    color: #6b7280;
    cursor: not-allowed;
    background-color: #f3f4f6;
}

.interno-datos .span {
    letter-spacing: 0;
    line-height: 18px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #374151;
}

.interno-datos .img-2 {
    position: relative;
    align-self: stretch;
    width: 100%;
    height: 1px;
    background-color: #e5e7eb;
    border: none;
}

.interno-datos .button {
    all: unset;
    box-sizing: border-box;
    display: flex;
    height: 48px;
    align-items: center;
    position: relative;
    align-self: stretch;
    width: 100%;
    cursor: pointer;
}

.interno-datos .content-2 {
    flex: 1;
    align-self: stretch;
    flex-grow: 1;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid;
    border-color: #006D39;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    transition: all 0.2s;
}

.interno-datos .content-2:hover {
    background-color: #f0f9f4;
    border-color: #005a2f;
}

.interno-datos .state-layer-5 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    position: relative;
    flex: 0 0 auto;
    width: 100%;
}

.interno-datos .label {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    color: #006D39;
    font-size: 13px;
    letter-spacing: 0;
    line-height: 18px;
    white-space: nowrap;
}

.interno-datos .frame-4 {
    display: flex;
    flex-direction: column;
    gap: 24px;
    flex: 1;
    flex-grow: 1;
    position: relative;
    align-items: flex-start;
}

.interno-datos .frame-5 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 33px;
    padding: 29px 20px;
    position: relative;
    align-self: stretch;
    width: 100%;
    flex: 0 0 auto;
    background-color: #ffffff;
    border-radius: 28px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.interno-datos .frame-5 .headline {
    margin: 0;
    padding: 0;
}

.interno-datos .img {
    position: relative;
    width: 24px;
    height: 24px;
    aspect-ratio: 1;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .interno-datos .row-tarjetas-form {
        flex-direction: column;
    }
    
    .interno-datos .col-peso-pliegues,
    .interno-datos .frame-4 {
        width: 100%;
    }
}

/* Form field styles */
.interno-datos input[type="text"],
.interno-datos input[type="number"] {
    width: 100%;
    border: none;
    background: #ffffff;
    outline: none;
}

.interno-datos .form-control {
    background-color: #ffffff !important;
}

.interno-datos .formula-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.interno-datos .formula-field input {
    flex: 1;
}

.interno-datos .formula-field .edit-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    margin-left: 8px;
}

/* Botones de acción */
.interno-datos .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    width: 100%;
    justify-content: flex-end;
}

.interno-datos .btn-success {
    background-color: #006D39;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 28px;
    cursor: pointer;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

.interno-datos .btn-success:hover {
    background-color: #005a2f;
}

.interno-datos .btn-default {
    background-color: transparent;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 10px 24px;
    border-radius: 28px;
    cursor: pointer;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

.interno-datos .btn-default:hover {
    background-color: #f9fafb;
    border-color: #d1d5db;
}

.interno-datos .btn-danger {
    background-color: #dc2626;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 28px;
    cursor: pointer;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

.interno-datos .btn-danger:hover {
    background-color: #b91c1c;
}

.interno-datos .btn-info {
    background-color: #0ea5e9;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 28px;
    cursor: pointer;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

.interno-datos .btn-info:hover {
    background-color: #0284c7;
}

/* Opcion Delete: filas de solo lectura */
.interno-datos .opcion-delete-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.interno-datos .opcion-delete-row:last-child {
    margin-bottom: 0;
}

.interno-datos .opcion-delete-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #374151;
    font-size: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.interno-datos .opcion-delete-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #111827;
    font-size: 13px;
    line-height: 1.5;
}

/* Validation messages */
.interno-datos .field-validation-error {
    color: #B3261E;
    font-size: 11px;
    margin-top: 4px;
    display: block;
}

.interno-datos .text-danger {
    color: #dc2626;
    font-size: 11px;
    margin-top: 4px;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* Estilos adicionales para inputs de archivo */
.interno-datos input[type="file"] {
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    background-color: #ffffff;
    font-size: 13px;
    cursor: pointer;
    transition: border-color 0.2s;
    text-align: center;
}

.interno-datos input[type="file"]:hover {
    border-color: #006D39;
}

/* Ajustes para campos readonly */
.interno-datos .text-field-2 input[readonly],
.interno-datos .text-field-4 input[readonly] {
    background-color: #f9fafb;
    cursor: default;
}

/* Iconos de edición */
.interno-datos .edit-icon {
    color: #6b7280;
    transition: color 0.2s;
}

.interno-datos .edit-icon:hover {
    color: #006D39;
}

/* Detalles y Multimedia: bloques más compactos y más separación entre secciones */
.interno-datos .frame-4 .frame-2 .div-2 {
    gap: 12px;
}

.interno-datos .frame-4 .frame-2 .div-2 + .div-2 {
    margin-top: 24px;
}

.interno-datos .frame-4 .frame-2 .col-text-files {
    gap: 16px;
}

.interno-datos .frame-4 .frame-2 .text-field-4.text-field-textarea {
    min-height: 72px;
}

.interno-datos .frame-4 .frame-2 .text-field-textarea .state-layer-3 {
    padding: 8px 16px;
}

.interno-datos .frame-4 .frame-2 .state-layer-3 textarea {
    min-height: 56px;
}

.interno-datos .frame-4 .frame-2 .text-field-3 {
    height: auto;
    min-height: 0;
}

/* Desktop: col-text-files en Detalles y Multimedia más compacto y con gap claro */
@media (min-width: 769px) {
    .interno-datos .frame-4 .frame-2 .col-text-files {
        gap: 24px;
    }

    .interno-datos .frame-4 .frame-2 .text-field-4.text-field-textarea {
        min-height: 56px;
    }

    .interno-datos .frame-4 .frame-2 .text-field-textarea .state-layer-3 {
        padding: 6px 16px;
    }

    .interno-datos .frame-4 .frame-2 .state-layer-3 textarea {
        min-height: 48px;
    }
}

/* ========================================
   Página Receta Create: evitar solapamiento con navbar
   ======================================== */
.main-content-with-sidebar > .interno-datos {
    padding-top: 140px;
    min-height: 100vh;
    box-sizing: border-box;
}

.interno-datos .opcion-create-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #006D39;
    font-size: 22px;
    margin: 0 0 24px 0;
    padding: 0;
}

/* ========================================
   Modal SubGrupos (estilo shadcn)
   ======================================== */
#modal-subgrupos .modal-content {
    border-radius: 28px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

#modal-subgrupos .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 24px;
    background: #f9fafb;
    border-radius: 28px 28px 0 0;
}

#modal-subgrupos .modal-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #006D39;
    font-size: 18px;
    margin: 0;
}

#modal-subgrupos .modal-header .btn-danger {
    background: transparent;
    color: #6b7280;
    border: none;
    font-size: 24px;
    line-height: 1;
    padding: 0 8px;
}

#modal-subgrupos .modal-header .btn-danger:hover {
    color: #dc2626;
}

#modal-subgrupos .modal-body {
    padding: 24px;
}

#modal-subgrupos #txt-BuscarSugGrupo {
    border: 1px solid #e5e7eb;
    border-radius: 28px;
    padding: 10px 16px;
    font-size: 13px;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#modal-subgrupos #txt-BuscarSugGrupo:focus {
    outline: none;
    border-color: #006D39;
    box-shadow: 0 0 0 3px rgba(0, 109, 57, 0.1);
}

#modal-subgrupos #btn-BuscarSubGrupo {
    border-radius: 28px;
    border: 1px solid #006D39;
    color: #006D39;
    background: transparent;
    padding: 10px 20px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

#modal-subgrupos #btn-BuscarSubGrupo:hover {
    background: #f0f9f4;
}

#modal-subgrupos .modal-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 24px;
    background: #f9fafb;
    border-radius: 0 0 28px 28px;
}

#modal-subgrupos #cancelar-subgrupo {
    border-radius: 28px;
    border: 1px solid #e5e7eb;
    color: #374151;
    background: #fff;
    padding: 10px 24px;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s;
}

#modal-subgrupos #cancelar-subgrupo:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

/* Tabla SubGrupos dentro de interno-datos */
.interno-datos #tablaSubgrupo {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

.interno-datos #tablaSubgrupo .cabecera-tabla {
    background: #f9fafb;
    color: #374151;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

.interno-datos #tablaSubgrupo .cabecera-tabla th {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.interno-datos #tablaSubgrupo tbody tr {
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
}

.interno-datos #tablaSubgrupo tbody tr:last-child {
    border-bottom: none;
}

.interno-datos #tablaSubgrupo tbody td {
    padding: 12px 16px;
    color: #111827;
}

.interno-datos .agregar-subgrupo-wrap {
    width: auto;
}

.interno-datos .agregar-subgrupo-wrap .button {
    width: auto;
    align-self: flex-start;
}

.interno-datos .agregar-subgrupo-wrap .content-2 {
    width: auto;
}

.interno-datos #tablaSubgrupo .btn-danger.btn-xs,
.interno-datos #tablaSubgrupo button[quitar-subgrupo] {
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    background: transparent !important;
    color: #dc2626 !important;
    border: 1px solid #dc2626 !important;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Poppins', sans-serif;
}

.interno-datos #tablaSubgrupo .btn-danger.btn-xs:hover,
.interno-datos #tablaSubgrupo button[quitar-subgrupo]:hover {
    background: #fef2f2 !important;
}

/* Preview de imagen (Foto) */
.interno-datos #preview:empty {
    display: none;
}

.interno-datos #preview {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    min-height: 80px;
    width: 100%;
    max-width: 280px;
    background: #f9fafb;
    box-sizing: border-box;
}

.interno-datos #preview img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

/* ========================================
   Overrides para producción: mayor especificidad + !important
   para que no sean pisados por Bootstrap/Site.css u otros
   ======================================== */
body .main-content-with-sidebar > form.interno-datos.opcion-form-estilo {
    padding-top: 140px !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    background-color: #ffffff !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    padding-bottom: 24px !important;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif !important;
}

body .main-content-with-sidebar form.interno-datos.opcion-form-estilo .opcion-create-title {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    color: #006D39 !important;
    font-size: 22px !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
}

body .main-content-with-sidebar form.interno-datos.opcion-form-estilo .row-tarjetas-form,
body .main-content-with-sidebar form.interno-datos.opcion-form-estilo .frame-2,
body .main-content-with-sidebar form.interno-datos.opcion-form-estilo .form-actions {
    display: flex !important;
}

body .main-content-with-sidebar form.interno-datos.opcion-form-estilo .text-field-4 {
    background-color: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 28px !important;
}

body .main-content-with-sidebar form.interno-datos.opcion-form-estilo .state-layer-3 input,
body .main-content-with-sidebar form.interno-datos.opcion-form-estilo .state-layer-3 textarea,
body .main-content-with-sidebar form.interno-datos.opcion-form-estilo .form-control {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

body .main-content-with-sidebar form.interno-datos.opcion-form-estilo .btn-success {
    background-color: #006D39 !important;
    color: white !important;
    border-radius: 28px !important;
}

body .main-content-with-sidebar form.interno-datos.opcion-form-estilo .btn-default {
    background-color: transparent !important;
    color: #374151 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 28px !important;
}

body .main-content-with-sidebar form.interno-datos.opcion-form-estilo .headline {
    color: #006D39 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
}

