.macycalc-container{
  display: flex;
  width: 100%;
  justify-content: flex-start;   
  align-items: stretch;
  gap: 1rem;
  min-width: 0;                  
  flex-wrap: nowrap;          
}

.macycalc {
  border: 2px solid #273756;
  border-radius: 40px;
  padding: 1rem;
  text-align: left;
  color: #273756;
  max-width: none;
  width: 100%;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.macycalc-header {
  display: flex;
  align-items: center;     
  gap: 10px;
  margin-bottom: 1.5rem;
}

.macycalc-header h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  color: #273756;
}
.macycalc-header .macycalc-icon{
  display: inline-flex;        
  align-items: center;
}
.macycalc-header .macycalc-icon svg{ 
  vertical-align: middle;
  width: 1.90em;  
  height: 1.90em;
  }

.macycalc-inputs {
  display: flex;
  justify-content: left;
  flex-direction: left;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.macycalc-field {
  display: flex;
  flex-direction: line;
  align-items: left;
}

.macycalc-field label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #273756;
}

.macycalc-counter {
  display: flex;
  align-items: left;
  border: 2px solid #273756;
  border-radius: 40px;
  padding: 0.3rem 0.6rem;
  margin-left: 4px;
}

.macycalc-counter input {
  width: 50px;
  text-align: center;
  border: none;
  outline: none;
  font-weight: 600;
  font-size: 1rem;
  color: rgba(39, 55, 86, 0.3);
  background: transparent;
}

.macycalc-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #273756;
  font-weight: bold;
  cursor: pointer;
  padding: 0 0.5rem;
  line-height: 1;
}

.macycalc-calc-btn {
  background: #273756;
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 0.6rem 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  margin-left: 3rem;
}

.macycalc-calc-btn:hover {
  background: #273756;
}

.macycalc-result {
  font-size: 1.8rem;
  font-weight: 800;
  color: #273756;
  margin-bottom: 1rem;
  align-items: left;
  text-align: left;
}

.macycalc-note {
  display: flex;
  align-items: flex-start;
  justify-content: left;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #273756;
  max-width: none;
  margin: 0 auto;
  text-align: left;
}

.macycalc-note svg {
  flex-shrink: 0;
  margin-top: 4px;
}
.macycalc .macycalc-note__icon svg{
  width: 1.90em;   
  height: 1.90em;
}
.macycalc .macycalc-note p{
  color: #273756;
  font-size: 12px; 
}

/* Responsive */
@media (max-width: 600px) {
  .macycalc {
    padding: 1.5rem;
  }

  .macycalc-header h3 {
    font-size: 24px;
  }

  .macycalc-counter input {
    width: 40px;
  }

  .macycalc-calc-btn {
    margin-left: 0rem;
    width: 100%;
  }
}
/* === Alinear label centrado vertical con el counter === */
.macycalc-inputs{
  align-items: center;          
}

.macycalc-field{
  display: flex;
  flex-direction: row;    
  align-items: center;         
  gap: .75rem;                  
}

.macycalc-field label{
  margin: 0;                    
  line-height: 1;            
}

.macycalc-counter{
  display: flex;
  align-items: center;            
  height: 42px;                  
}


@media (max-width: 600px){
  .macycalc-field{
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
}

/* ===== Responsive: inputs en móvil ===== */

@media (max-width: 640px){
  .macycalc{
    box-sizing: border-box;
    overflow-x: hidden;        
    padding: 1.5rem;      
  }

 
  .macycalc-header h3{
    font-size: 1.2rem;
    line-height: 1.1;
    margin: 0;
  }


  .macycalc-inputs{
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    width: 100%;
  }

  .macycalc-field{
    display: flex;
    flex-direction: column;   
    align-items: stretch;
    gap: .5rem;
    width: 100%;
    min-width: 0;   
  }

  
  .macycalc-counter{
    display: flex;
    width: 100%;
    box-sizing: border-box;   
    justify-content: space-between;
    padding: .32rem .5rem;
    gap: .35rem;
    height: 40px;
    margin-left: 0;   
    background: #fff;
  }

  /* Botones táctiles pero contenidos */
  .macycalc-btn{
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    flex: 0 0 auto;
  }

 
  .macycalc-counter input{
    flex: 1 1 0;              
    min-width: 0;     
    width: auto;
    max-width: 100%;
    text-align: center;
  }

  /* Botón CALCULAR */
  .macycalc .macycalc-calc-btn,
  .macycalc .macy-calc-btn{
    flex: 0 0 auto;
    align-self: flex-start;    
    width: auto;
    max-width: 100%;            
    white-space: nowrap;        
    overflow: hidden;           
    text-overflow: ellipsis;    
    margin-top: 1rem;
  }


  .macycalc .macycalc-note p{
    font-size: 16px;
  }
}

@media (max-width: 380px){
  .macycalc-counter{ height: 40px; }
  .macycalc-btn{ width: 36px; height: 36px; font-size: 1rem; }
  .macycalc-counter input{ width: 70px; max-width: 45%; }
}

@media (max-width: 1285px){
  .macycalc-inputs{
    display: flex;
    flex-wrap: wrap;          
    column-gap: 1.5rem;
    row-gap: 1rem;
    align-items: left;
  }

 
  .macycalc-field{
    flex: 1 1 calc(50% - .75rem);
  }

  /* el botón baja por falta de hueco, pero mantiene su ancho natural */
  .macycalc-calc-btn{
    order: 99;               
    flex: 0 0 auto;        
    margin-top: .5rem;    
    margin-left:0rem;
  }
}

/* ≤768px: más compacto */
@media (max-width: 768px){
  .macycalc-counter{
    padding: .28rem .45rem;
    gap: .35rem;
    height: 40px;  
  }
  .macycalc-btn{
    width: 30px; height: 30px;
    font-size: 1.05rem;
  }
  .macycalc-counter input{
    width: 52px;
  }
}