.hero--records {
  position: relative;
  height: auto !important;
  min-height: 260px !important;
  padding: 65px 0 !important;
  background: linear-gradient(135deg, rgba(247, 215, 0, 0.9), rgba(30, 58, 138, 0.82) 55%, rgba(220, 38, 38, 0.72));
}

.hero--records::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero/3.jpg") center/cover;
  opacity: 0.3;
}

.hero--records::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero--records .hero__content {
  position: relative;
  z-index: 2;
}

.hero--records .hero__title {
  font-size: 2.5rem !important;
  line-height: 1.1 !important;
  margin-bottom: 0.75rem !important;
}

.hero--records .hero__subtitle {
  font-size: 1rem !important;
}

.records {
  padding: 3rem 0 4rem;
  background: #ffffff;
  color: #1f2937;
}

.records__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.records__header {
  max-width: 760px;
  margin: 0 auto 2rem;
  text-align: center;
}

.records__header h2 {
  margin-bottom: 0.75rem;
  color: #ff6b35;
  font-size: 2rem;
}

.records__header p,
.records__placeholder p {
  color: #64748b;
  font-size: 1rem;
}

.records__placeholder {
  padding: 3rem 2rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
  text-align: center;
}

.records__icon {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 2.5rem;
}

.records__placeholder h3 {
  margin-bottom: 0.5rem;
  color: #1e3a8a;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .hero--records { min-height: 220px !important; padding: 52px 0 !important; }
  .hero--records .hero__title { font-size: 2rem !important; }
  .records { padding: 2rem 0 3rem; }
  .records__container { padding: 0 1rem; }
  .records__header h2 { font-size: 1.6rem; }
}

/* DISEÑO NUEVO RÉCORDS NACIONALES */
.hero--records{
    position:relative;
    height:auto!important;
    min-height:250px!important;
    padding:45px 0!important;
    overflow:hidden;
    background:#172b6a;
}
.hero--records::before{
    content:"";
    position:absolute;
    inset:0;
    background:url("../images/hero/3.jpg") center/cover;
    opacity:.40;
}
.hero--records::after{
    content:"";
    position:absolute;
    inset:0;
    background:rgba(5,15,35,.55);
}
.hero--records .hero__content{
    position:relative;
    z-index:2;
    text-align:right;
}
.hero--records .hero__eyebrow{
    display:block;
    margin-bottom:4px;
    color:#fff;
    font-size:20px;
    font-weight:700;
}
.hero--records .hero__title{
    margin:0!important;
    color:#fff;
    font-size:58px!important;
    line-height:1.05!important;
}

.records{
    padding:0 0 60px;
    background:#fff;
    color:#293241;
}
.records__container{
    max-width:1500px;
    margin:0 auto;
    padding:0 32px;
}
.records__filters{
    display:grid;
    grid-template-columns:1.2fr 1.15fr .75fr 1fr;
    gap:28px;
    align-items:end;
    padding:38px 0 32px;
    border-bottom:1px solid #e5e7eb;
}
.records__filters label{
    display:flex;
    flex-direction:column;
    gap:7px;
    color:#8f98a4;
    font-size:14px;
}
.records__filters input,
.records__filters select{
    width:100%;
    height:46px;
    padding:7px 5px;
    border:0;
    border-bottom:2px solid #d8dce2;
    border-radius:0;
    background:#fff;
    color:#303947;
    font-family:Poppins,sans-serif;
    font-size:16px;
    outline:none;
}
.records__filters input:focus,
.records__filters select:focus{
    border-bottom-color:#075aa9;
}
.records__results{
    padding-top:34px;
}
.records__results-title{
    margin:0 0 22px;
    padding-left:18px;
    border-left:8px solid #075aa9;
    color:#075aa9;
    font-size:27px;
    line-height:1.2;
    text-transform:uppercase;
}
.record{
    margin-bottom:22px;
    border:1px solid #e2e5e9;
}
.record__test{
    margin:0;
    padding:11px 24px;
    background:#ececec;
    color:#3d4652;
    font-size:16px;
    text-transform:uppercase;
}
.record__row{
    display:grid;
    grid-template-columns:minmax(280px,1.05fr) minmax(360px,1.65fr) 180px 50px;
    gap:24px;
    align-items:center;
    min-height:125px;
    padding:18px 24px;
    border-top:1px solid #edf0f3;
    background:#fff;
}
.record__row--historical{
    min-height:105px;
    background:#fafafa;
}
.record__person{
    display:flex;
    align-items:center;
    gap:15px;
    min-width:0;
}
.record__photo{
    position:relative;
    flex:0 0 78px;
    width:78px;
    height:78px;
    overflow:hidden;
    border:4px solid #e1e4e8;
    border-radius:50%;
    background:#eef1f5;
}
.record__photo span{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#738095;
    font-size:16px;
    font-weight:800;
}
.record__photo img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}
.record__person strong{
    display:block;
    color:#293241;
    font-size:17px;
    text-transform:uppercase;
}
.record__person small{
    display:block;
    margin-top:5px;
    color:#89919c;
    font-size:12px;
}
.record__details{
    display:flex;
    flex-direction:column;
    gap:5px;
}
.record__details strong{
    color:#354052;
    font-size:16px;
    text-transform:uppercase;
}
.record__details span{
    color:#8b939d;
    font-size:14px;
}
.record__score{
    text-align:center;
    white-space:nowrap;
}
.record__score span{
    color:#293241;
    font-size:36px;
    font-weight:400;
}
.record__score small{
    color:#8b939d;
    font-size:22px;
}
.record__expand{
    width:42px;
    height:42px;
    border:0;
    background:transparent;
    color:#075aa9;
    font-size:38px;
    font-weight:300;
    cursor:pointer;
}
.record__expand-placeholder{
    display:block;
    width:42px;
}
.record__history{
    border-top:1px solid #dce1e7;
}
.record__history h4{
    margin:0;
    padding:9px 24px;
    background:#f5f7fa;
    color:#667085;
    font-size:13px;
    text-transform:uppercase;
}
.records__message{
    padding:60px 15px;
    border:1px solid #e2e5e9;
    background:#fafafa;
    color:#77808c;
    text-align:center;
}

@media(max-width:1050px){
    .records__filters{
        grid-template-columns:1fr 1fr;
    }
    .record__row{
        grid-template-columns:1fr 1.3fr 130px 44px;
    }
}
@media(max-width:700px){
    .hero--records{
        min-height:190px!important;
        padding:38px 0!important;
    }
    .hero--records .hero__content{
        text-align:center;
    }
    .hero--records .hero__title{
        font-size:34px!important;
    }
    .records__container{
        padding:0 15px;
    }
    .records__filters{
        grid-template-columns:1fr;
        gap:15px;
        padding:24px 0;
    }
    .records__results-title{
        font-size:19px;
    }
    .record__row{
        grid-template-columns:1fr 85px 38px;
        gap:12px;
        padding:15px;
    }
    .record__person{
        grid-column:1/3;
    }
    .record__details{
        grid-column:1/2;
    }
    .record__score{
        grid-column:2/3;
    }
    .record__expand,
    .record__expand-placeholder{
        grid-column:3/4;
        grid-row:2;
    }
}

/* Tamaño de las banderas de récords */
.record__flag-image {
  display: inline-block !important;
  width: 38px !important;
  height: 24px !important;
  max-width: 38px !important;
  max-height: 24px !important;
  object-fit: cover !important;
  vertical-align: middle !important;
  margin-left: 10px !important;
  border-radius: 2px !important;
  flex: 0 0 38px !important;
}

.record__flag-emoji {
  display: inline-block !important;
  font-size: 30px !important;
  line-height: 24px !important;
  vertical-align: middle !important;
  margin-right: 10px !important;
}

.record__person-name {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.record__venue {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 26px !important;
}

/* Bandera junto al nombre del deportista */
.record__person-name {
  display: inline-flex !important;
  width: fit-content !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
}

.record__person-name strong {
  flex: 0 1 auto !important;
  width: auto !important;
}

.record__person-name .record__flag-image {
  width: 28px !important;
  height: 18px !important;
  max-width: 28px !important;
  max-height: 18px !important;
  margin: 0 0 0 3px !important;
  flex: 0 0 28px !important;
  object-fit: cover !important;
}

.record__person-name .record__flag-emoji {
  margin: 0 0 0 3px !important;
  font-size: 22px !important;
  line-height: 18px !important;
}

/* Todas las banderas con el mismo tamaño */
.record__flag-image,
.record__person-name .record__flag-image,
.record__venue .record__flag-image {
  display: inline-block !important;
  width: 28px !important;
  height: 18px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  object-fit: cover !important;
  margin: 0 4px 0 0 !important;
  border-radius: 2px !important;
  vertical-align: middle !important;
  flex: 0 0 28px !important;
}