#hero h2 {
    color: #fff;
    /* margin-bottom: 153px; */
    font-size: 48px;
    margin-top: -366px;
    font-weight: 900;
}

#hero {
    height: calc(52vh - 144px) !important;
}
 
.container2 {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #8B6F47 0%, #A0826D 100%);
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.header p {
    font-size: 1.1rem;
    opacity: 0.95;
}

.content {
    padding: 40px;
}

.form-section {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
    border-left: 4px solid #8B6F47;
    border-right: 4px solid #8B6F47;
}

.form-section h2 {
    font-size: 1.3rem;
    color: #8B6F47;
    margin-bottom: 20px;
}

.form-row {
    /* display: grid; */
    grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr 1.5fr auto;
    gap: 6px;
    align-items: flex-end;
}

@media (max-width: 1024px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group {
    /* display: flex;
    flex-direction: column; */
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

select,
input {
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

select:focus,
input:focus {
    outline: none;
    border-color: #8B6F47;
    box-shadow: 0 0 0 3px rgba(139, 111, 71, 0.1);
}

select {
    cursor: pointer;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
    padding-right: 40px;
}

.input-wrapper {
    position: relative;
}

.input-unit {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}

/* .input-wrapper input {
    padding-right: 35px;
} */

.btn-agregar {
    padding: 12px 25px;
    background: #8B6F47;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-agregar:hover {
    background: #6d5635;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 111, 71, 0.3);
}

.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    display: none;
}

.alert.show {
    display: block;
}

.alert.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}

.alert.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.table-section {
    margin-bottom: 40px;
}

.table-section h2 {
    font-size: 1.3rem;
    color: #8B6F47;
    margin-bottom: 20px;
    border-bottom: 2px solid #8B6F47;
    padding-bottom: 10px;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #ddd;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: #8B6F47;
    color: white;
}

th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
}

td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

tbody tr:hover {
    background: #f8f8f8;
}

tbody tr:last-child td {
    border-bottom: none;
}

.btn-eliminar {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-eliminar:hover {
    background: #ff5252;
    transform: scale(1.05);
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: #999;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.summary-section {
    background: linear-gradient(135deg, #8B6F47 0%, #A0826D 100%);
    color: white;
    padding: 30px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.summary-item {
    text-align: center;
}

.summary-item label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.summary-item .value {
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .button-group {
        grid-template-columns: 1fr;
    }
}

button {
    padding: 14px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-cotizar {
    background: #4caf50;
    color: white;
    grid-column: 1 / -1;
}

.btn-cotizar:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

.btn-limpiar {
    background: #e0e0e0;
    color: #DC3545;
    border: 1px solid;
}

.btn-limpiar:hover {
    background: #d0d0d0;
}

.madera-badge {
    display: inline-block;
    background: #8B6F47;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
}

@media (max-width: 768px) {
    #hero h2 {
        font-size: 28px;
        margin-top: -288px;
    }
    #hero p {
        width: 100%;
    }
}
 

/* ================================================
================================================ */

  /*  MODAL A LA DERECHA */
  .modal {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 1050;
      display: none;
      width: 100%;
      height: 100%;
      overflow: hidden;
      outline: 0;
  }
  .modal-header {
    padding: 1rem;
    padding-bottom: 8px;
  }
  .modal-open .modal {
      overflow-x: hidden;
      overflow-y: auto;
  }
  .modal.fade.modal-right .modal-dialog {
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
     /*-webkit-transform: translate(50px, 0);
    transform: translate(50px, 0); */
  }
  .modal.show .modal-dialog {
    -webkit-transform: none;
    transform: none;
  }
  .modal.fade .modal-dialog {
    transition: -webkit-transform 0.3s ease-out;
    transition: transform 0.3s ease-out;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out;
    /* -webkit-transform: translate(0, -50px);
    transform: translate(0, -50px); */
  }
  .modal-right .modal-dialog {
    position: absolute;
    right: 0;
    top: 0;
    margin: 0;
    width: 408px;
    /* height: 100vh; */
    height: 100%;
  }
  .modal-content {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
  }
  @media (max-width: 640px){
  .modal-right .modal-title {
      font-size: 18px;
  }
  
  }
  .modal-title {
    margin-bottom: 0;
    line-height: 1.5;
    color: #072585bf;
    font-weight: bold;
  }
  @media (max-width: 500px){
  .modal-right .modal-dialog {
      width: 100%;
  }
  }
   
  .modal-dialog {
    position: relative;
    width: auto;
    margin: 0.5rem;
    pointer-events: none;
  }
  .modal-dialog {
    z-index: 999;
  } 
  .modal.show {
    background-color: rgba(0, 0, 0, 0.53);
    z-index: 999 !important;
    -webkit-animation: all 0.5s;
    animation: all 0.5s;
  }
  .modal.show {
    z-index: 1050 !important;
  }
  
  .modal-right .modal-dialog .modal-content {
    overflow-y: auto;
    height: 100%;
    border-radius: 0;
  }
  .modal-content {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.3rem;
    outline: 0;
  }
   
  .modal.fade.modal-right .modal-dialog
  {
    transition: -webkit-transform 0.3s ease-out !important;
    transition: transform 0.3s ease-out !important;
    transition: transform 0.3s ease-out, -webkit-transform 0.3s ease-out !important;
    -webkit-transform: translate(50px, 0) !important;
    transform: translate(0px, 0) !important;
  }
  
  /**/

  .st_mod_form{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
  }

.btn-info {
    background-color: #8B6F47 !important;
    border-color: #8B6F47 !important;
}
.btn-outline-info-new {
    color: #8B6F47 !important;
    border-color: #8B6F47 !important;
    font-weight: bold !important;
    background-color: white !important;
}

.shadow-btn {
    box-shadow: 0px 3px 5px 0px gray;
    border-radius: 10px;
}

@media (max-width: 950px){
    .content_body_cotiza{
        padding: 10px !important;
    }
}
@media (max-width: 700px){
    .content_body_cotiza{
        padding: 4px !important;
    }
    .form-section{
        padding: 8px !important;
        border-left: none !important;
        border-right: none !important;
    }
}