

.perfil-container {
    display: flex;
    flex-direction: column;
    width: 90%;
    margin: 0 auto;
    padding: 2rem;
}

.title{
  color: #263D8C;
  font-size: 30px;
  margin: 0;
}

.line{
     display: block;
     height: 2px;
     width: 39px; /* o la medida que necesites */
     background-color: #00A8F6;
     margin: 0.5rem 0; /* opcional: espacio arriba y abajo */
}

.header-profile{
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding:1rem auto;
}

.section-header-profile>p{
    color: #263D8C;
}

.button-close{
    width: 147px;
    height: 42px;
    color:#263D8C !important;
    border: 1px solid #bababa !important;
    background-color: white !important;
    padding: 1px;
    font-weight: bold;
}

input.button-save{
    width: 130px;
    height: 30px;
    color:white;
    border: 1px solid #bababa;
    background-color: #263D8C;
    padding: 1px;
    font-weight: bold;
    border-radius: 5px;
}

.button-close:hover {
    background-color: #263D8C !important;
    color: white !important;
    border-radius: 5px;

}

input.button-save:hover{
    background-color: #00A8F6;
    color: #263D8C;
}

input.button-save:active{
    background-color: #00A8F6;
    color: #263D8C;
}
.fila-profile {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  width: 100% ;
  margin-bottom: 30px;
}

.fila-profile div {
  display: flex;
  flex-direction: column;
}

.label {
  font-weight: 600;
  margin-bottom: 6px;
  margin-left: 1px;
}

.fila-profile input[type="text"] {
  width: 100% !important;
  padding: 4px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f7f7f7;
  box-sizing: border-box;
}

.fila-profile input[type="text"]:not([readonly]) {
  background-color: #fff;
  border-color: #263D8C;
  cursor: none;
}




.tabs {
    margin-top: 1rem;
    margin: auto;
    width: 100%;
}

.tab-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
   background-color: #263D8C;
   color: white;
    
}

.tab-nav li {
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: none;
    background: #263D8C;
    color:white;
    }

.tab-nav li.active {
    background: #00A8F6;
    font-weight: bold;
    color:#263D8C;
}

.tab-content {
    display: none;
    padding: 1rem;
    border: 1px solid #ccc;
}

.tab-content.active {
    display: block;
}

.newsletter-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;
}

.newsletter-card {
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 275px;
  text-align: left;
}

.img-card {
  width: 100%;
  height: 80px;
  object-fit: cover;
  object-position: right;
  border-radius: 4px;
}

.newsletter-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.newsletter-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.newsletter-img {
  width: 100%;
  height: 140px !important;
  object-fit: cover;
}

.newsletter-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.newsletter-title {
  font-size: 18px;
  margin: 0 0 8px;
}

.newsletter-desc {
  font-size: 14px;
  color: #555;
  flex-grow: 1;
  
}

.newsletter-divider {
  border: none;
  border-top: 1px solid #ddd;
  width: 100%;
  margin: 12px 0;
}

.estado {
  font-weight: bold;
  margin: auto;
  padding-top: 4px;
}

.estado.suscripto {
  color: green;
}

.estado.pendiente {
  color: rgb(139, 139, 139);
}

.estado.no-suscripto {
  color: #a5a5a5;
}

.btn-suscribirme {
  color: #01496d !important;
  border: none !important;
  cursor: pointer;
}

.btn-suscribirme:hover {
  color: #ffffff !important;
  background-color: #005f8d  !important;
}

.btn-suscribirme:active{
  color: #ffffff !important;
  background-color: #005f8d  !important;
}

.btn-suscribirme:focus {
  color: #ffffff !important;
  background-color: #005f8d !important;
  outline: none !important;
  box-shadow: none !important;
}

.btn-suscribirme:focus,
.btn-suscribirme:focus-visible,
.btn-suscribirme:focus-within {
  outline: none !important;
  box-shadow: none !important;
  background-color: #005f8d !important;
  color: #ffffff !important;
}

.estado_suscripcion{
  display: flex;
  margin: auto;
  justify-content: center;
  align-items: center;
  gap: 4px;

}


.password-btn {
    background: none !important;
    border:  1px solid #ccc !important;
    font-size: 16px !important;
    color: #263D8C !important;
    cursor: pointer;
    transition: transform 0.2s;
    margin-bottom: 20px;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }

  .password-btn:hover {
    transform: scale(1.1);
    background: none !important;
    color: #263D8C !important;
  }


@media (max-width: 1024px) {

   .header-profile {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  /* Container */
  .perfil-container {
    width: 100%;
    padding: 1rem;
  }

  /* TABS SIEMPRE CENTRADAS */
  .tab-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .tab-nav li {
    font-size: 14px;
    padding: 8px 14px;
  }

  /* FORM → 1 COLUMNA */
  .fila-profile {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Inputs full */
  .fila-profile input[type="text"] {
    width: 100% !important;
  }

  /* Botón guardar */
  input.button-save {
    width: 100%;
    height: 40px;
  }

  /* Newsletter → 1 COLUMNA */
  .newsletter-list {
    grid-template-columns: 1fr;
  }

  .newsletter-card {
    width: 100%;
  }

  .newsletter-img {
    height: 180px !important;
  }

}

@media (max-width: 480px) {

  .title {
    font-size: 20px;
  }

  .tab-nav li {
    font-size: 13px;
    padding: 6px 10px;
  }

  .newsletter-desc {
    font-size: 13px;
  }
  
  /* Header en columna SOLO en mobile chico */
  .header-profile {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 12px;
  }

  /* Botón cerrar sesión debajo del estado */
  .button-close {
    margin-top: 10px;
    width: 100%;
    max-width: 280px;
  }

.section-header-profile p {
  margin: 4px 0;
}
 .perfil-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .password-btn,
  .editar-btn {
    width: 100%;
  }

}

