@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Variables de colores (igual que en styleProteccion.css) */
:root {
    --febimbo-verde: #0f9e5b;
    --febimbo-verde-claro: #10d794;
    --febimbo-amarillo: #ebbe32;
    --febimbo-gris-oscuro: #313130;
    --febimbo-gris: #666;
    --febimbo-gris-claro: #f5f5f5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--febimbo-gris-oscuro);
    overflow-x: hidden;
}

/* Hero Section */
.convenios-hero {
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
    margin-top: -80px;
   
    position: relative;
    overflow: hidden;
}

.hero-text {
    width: 40%;
    padding: 80px 32px;
    margin-top: 60px;
    margin-left: 300px;
    margin-right: 0;
    position: relative;
    z-index: 2;
    order: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-heading {
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    color: var(--febimbo-gris-oscuro);
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
}

.hero-subheading {
    font-family: 'Poppins', sans-serif;
    color: var(--febimbo-gris);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-image {
    width: 40%;
    margin-top: 120px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
    padding: 0;
}

.hero-img {
    width: 500px;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 2;
}
/* Estilos para el botón de novedades en el hero */
.hero-buttons {
    display: flex;
    justify-content: center;
    margin-top: 25px;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--febimbo-verde);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(15, 158, 91, 0.2);
}

.hero-button:hover {
    background-color: var(--febimbo-verde-claro);
    transform: translateY(-3px);
}

.novedades-btn i {
    animation: bellRing 2s infinite;
}

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0);
    }
    5%, 15% {
        transform: rotate(10deg);
    }
    10%, 20% {
        transform: rotate(-10deg);
    }
    25% {
        transform: rotate(0);
    }
}

/* Estilos para el efecto de destello al scrollear a la sección */
@keyframes highlightAnimation {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(15, 158, 91, 0.05);
    }
}

.highlight-section {
    animation: highlightAnimation 2s ease;
}
.img-frame {
    position: absolute;
    right: 8%;
    bottom: 10%;
    width: 80px;
    height: 120px;
    border: 8px solid var(--febimbo-amarillo);
    z-index: 3;
    border-radius: 6px;
}

/* Grid de puntos decorativos */
.dot-pattern {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    width: 300px;
    position: absolute;
    bottom: 10px;
    left: 20%;
    z-index: 1;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--febimbo-amarillo);
    border-radius: 50%;
}

/* Elementos decorativos adicionales */
.accent-line {
    position: absolute;
    right: 46%;
    top: 50%;
    transform: translateY(-50%);
    height: 120px;
    width: 10px;
    background-color: var(--febimbo-amarillo);
    z-index: 1;
}

.cross {
    position: absolute;
    top: 10%;
    right: 15%;
    font-size: 80px;
    color: #ebbe32;
    opacity: 0.5;
    z-index: 1;
}

.stripes {
    position: absolute;
    top: 350px;
    left: 2%;
    width: 200px;
    height: 150px;
    background: repeating-linear-gradient(
        45deg,
        var(--febimbo-amarillo),
        #ffd016 5px,
        white 5px,
        white 12px
    );
    opacity: 0.7;
    z-index: 1;
}

/* SECCIÓN DE BÚSQUEDA */
.convenios-search {
    padding: 60px 0;
    background-color: white;
    position: relative;
}

.search-container {
    max-width: 900px;
    margin: 0 auto;
    background-color: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.search-accent {
    position: absolute;
    left: 0;
    top: 0;
    width: 8px;
    height: 70%;
    background-color: var(--febimbo-verde);
    border-radius: 4px;
}

.search-text {
    margin-bottom: 25px;
    padding-left: 20px;
}

.search-title {
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--febimbo-gris-oscuro);
    margin-bottom: 12px;
    position: relative;
}

.search-subtitle {
    color: var(--febimbo-gris);
    font-size: 1rem;
}

.search-form {
    display: flex;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.search-input:focus {
    border-color: var(--febimbo-amarillo);
    outline: none;
}

.search-button {
    padding: 0 25px;
    background-color: var(--febimbo-verde);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(15, 158, 91, 0.2);
    transition: all 0.3s ease;
}

.search-button:hover {
    background-color: var(--febimbo-verde-claro);
}

/* SECCIÓN DE CONVENIOS - ADAPTADA DEL ESTILO DE PROTECCIÓN */
.convenios-section {
    padding: 70px 0 90px;
    background-color: white;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.section-title {
    font-family: "Titillium Web", sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--febimbo-gris-oscuro);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--febimbo-amarillo);
}

.section-subtitle {
    text-align: center;
    color: var(--febimbo-gris);
    max-width: 700px;
    margin: 30px auto 50px;
    font-size: 1.1rem;
}

/* Filtros de Categorías */
.filter-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    background-color: white;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: var(--febimbo-gris);
}

.filter-btn:hover {
    background-color: #f5f5f5;
}

.filter-btn.active {
    background-color: var(--febimbo-verde);
    color: white;
    border-color: var(--febimbo-verde);
    box-shadow: 0 4px 12px rgba(15, 158, 91, 0.25);
}

/* Acordeón de Categorías - Estilo protección */
#convenioCategorias {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.accordion-category {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.accordion-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease;
}

.category-header:hover {
    background-color: rgba(15, 158, 91, 0.05);
}

.category-icon-container {
    margin-right: 20px;
    flex-shrink: 0;
}

.category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background-color: var(--febimbo-verde);
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(15, 158, 91, 0.2);
}

/* Alternar color de icono en categorías pares */
.accordion-category:nth-child(even) .category-icon {
    background-color: var(--febimbo-amarillo);
    box-shadow: 0 5px 15px rgba(235, 190, 50, 0.2);
}

.category-title {
    font-family: "Titillium Web", sans-serif;
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--febimbo-gris-oscuro);
    margin: 0;
    flex: 1;
    padding-right: 10px;
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--febimbo-verde);
    color: white;
    font-size: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Alternar color de icono toggle en categorías pares */
.accordion-category:nth-child(even) .toggle-icon {
    background-color: var(--febimbo-amarillo);
}

.category-content {
    display: none;
}

/* Convenio Item - Estilo adaptado */
.convenio-item {
    border-bottom: 1px solid #eee;
}

.convenio-item:last-child {
    border-bottom: none;
}

.convenio-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px 20px 100px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.convenio-header:hover {
    background-color: #f9f9f9;
}

.convenio-title-container {
    display: flex;
    align-items: center;
    gap: 18px;
}

.convenio-logo-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    background-color: white;
    padding: 4px;
    transition: all 0.3s ease;
}

.convenio-header:hover .convenio-logo-small {
    transform: scale(1.1);
}

.convenio-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--febimbo-gris-oscuro);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.convenio-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background-color: var(--febimbo-amarillo);
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 6px;
    align-self: flex-start;
}

/* Alternar color de badge en convenios dentro de categorías pares */
.accordion-category:nth-child(even) .convenio-badge {
    background-color: var(--febimbo-verde);
}

.convenio-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--febimbo-verde);
    color: white;
    font-size: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Alternar color de icono toggle en convenios dentro de categorías pares */
.accordion-category:nth-child(even) .convenio-toggle {
    background-color: var(--febimbo-amarillo);
}

.convenio-content {
    padding: 0 30px 30px 100px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--febimbo-gris);
    display: none;
}

.convenio-details {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.convenio-info {
    flex: 1;
    min-width: 300px;
}

.convenio-info h4 {
    font-family: "Titillium Web", sans-serif;
    font-size: 1.2rem;
    color: var(--febimbo-verde);
    margin-bottom: 18px;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

/* Alternar color de títulos en convenios dentro de categorías pares */
.accordion-category:nth-child(even) .convenio-info h4 {
    color: var(--febimbo-amarillo);
}

.convenio-info h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: currentColor;
}

.convenio-detail-item {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
}

.detail-icon {
    margin-right: 12px;
    color: var(--febimbo-verde);
    width: 20px;
    text-align: center;
}

/* Alternar color de iconos en convenios dentro de categorías pares */
.accordion-category:nth-child(even) .detail-icon {
    color: var(--febimbo-amarillo);
}

.discount-highlight {
    background-color: rgba(15, 158, 91, 0.1);
    border-left: 4px solid var(--febimbo-verde);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
    color: var(--febimbo-gris);
}

/* Alternar color de destacados en convenios dentro de categorías pares */
.accordion-category:nth-child(even) .discount-highlight {
    background-color: rgba(235, 190, 50, 0.1);
    border-left-color: var(--febimbo-amarillo);
}

.discount-highlight h5 {
    color: var(--febimbo-verde);
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 600;
}

/* Alternar color de títulos destacados en convenios dentro de categorías pares */
.accordion-category:nth-child(even) .discount-highlight h5 {
    color: var(--febimbo-amarillo);
}

.convenio-logo-container {
    flex: 0 0 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.convenio-logo-large {
    max-width: 180px;
    max-height: 120px;
    object-fit: contain;
    border-radius: 12px;
    padding: 15px;
    background-color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.convenio-logo-large:hover {
    transform: scale(1.05);
}

.convenio-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    gap: 12px;
}
.action-btnmore{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background-color: var(--febimbo-verde);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(15, 158, 91, 0.2);
}
.action-btn {
    padding: 10px 18px;
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 25px;
  background-color: var(--febimbo-verde);
  color: white;
  border: none;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 20px rgba(15, 158, 91, 0.2);
}

/* Alternar color de botón de contacto en convenios dentro de categorías pares */
.accordion-category:nth-child(even) .contact-btn {
    background-color: var(--febimbo-amarillo);
    color: var(--febimbo-gris-oscuro);
    box-shadow: 0 4px 12px rgba(235, 190, 50, 0.2);
}

.contact-btn:hover {
    background-color: var(--febimbo-verde-claro);
    transform: translateY(-3px);
}

/* Alternar hover de botón de contacto en convenios dentro de categorías pares */
.accordion-category:nth-child(even) .contact-btn:hover {
    background-color: #f0c135;
}

.favorite-btn {
    background-color: #f5f5f5;
    color: var(--febimbo-gris);
}

.favorite-btn:hover {
    background-color: #eee;
}

.favorite-btn.active {
    color: #ff5e62;
}

.favorite-btn.active i {
    color: #ff5e62;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 40px 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    display: none;
}

.empty-state i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--febimbo-gris-oscuro);
    margin-bottom: 10px;
    font-size: 1.3rem;
    font-family: "Titillium Web", sans-serif;
}

.empty-state p {
    color: var(--febimbo-gris);
    max-width: 500px;
    margin: 0 auto;
}


/* NOVEDADES SECTION */
.novedades-section {
    background-color: white;
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.novedades-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: var(--febimbo-verde);
    opacity: 0.05;
    z-index: 0;
}

.novedades-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: var(--febimbo-amarillo);
    opacity: 0.1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
}

.novedades-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.novedades-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 40px;
}

.novedades-icon {
    width: 55px;
    height: 55px;
    background-color: var(--febimbo-verde);
    color: white;
    font-size: 1.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 158, 91, 0.2);
    position: relative;
}

.novedades-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px dashed var(--febimbo-amarillo);
    opacity: 0.4;
    animation: spin 30s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.novedades-title {
    font-family: "Titillium Web", sans-serif;
    font-size: 2.1rem;
    color: var(--febimbo-gris-oscuro);
    font-weight: 600;
}

.novedades-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.novedad-item {
    flex: 1;
    min-width: 300px;
    background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 100%);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.novedad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.novedad-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    background-color: var(--febimbo-verde);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(15, 158, 91, 0.15);
}

/* Etiqueta de Turismo en verde */
.novedad-item[data-type="turismo"] .novedad-label {
    background-color: var(--febimbo-verde);
}

/* Etiqueta de Salud Dental en azul */
.novedad-item[data-type="salud-dental"] .novedad-label {
    background-color: #2C82C9;
}

/* Etiqueta de Gimnasio en amarillo */
.novedad-item[data-type="gimnasio"] .novedad-label {
    background-color: var(--febimbo-amarillo);
    color: var(--febimbo-gris-oscuro); /* Para mejor contraste */
}

.novedad-text {
    color: var(--febimbo-gris-oscuro);
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.novedad-date {
    color: var(--febimbo-gris);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.novedad-date::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 1px;
    background-color: #ccc;
    margin-right: 8px;
}


.novedad-item a{
    text-decoration: none;
    color: #143755;
    font-weight: 600;
    font-size: 15px;
}

.novedad-item a:hover{
    
    color: #164b79;
    
}

/* Animaciones */
.fadeIn {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fadeIn.animated {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Contador de categorías */
.category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color:#ebbe32;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-left: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Estilos responsivos */
@media (max-width: 1660px) {
    .hero-text {
        margin-left: 200px;
        padding: 60px;
    }
    .hero-image {
        padding: 20px;
    }
    .hero-img {
        max-width: 450px;
    }
    .dot-pattern {
        bottom: 20px;
    }
}

@media (max-width: 1400px) {
    .hero-text {
        margin-left: 120px;
        padding: 40px 0px;
    }
    .hero-heading {
        font-size: 4rem;
    }
    .hero-subheading {
        font-size: 1rem;
        max-width: 350px;
    }
    .hero-image {
        padding: 10px;
    }
    .hero-img {
        max-width: 400px;
    }
    .accent-line {
        right: 10%;
        height: 100px;
    }
    .cross {
        top: 20%;
        right: 10%;
        font-size: 2.5rem;
    }
    .stripes {
        top: 300px;
        left: 2%;
        width: 150px;
        height: 100px;
    }
    .dot-pattern {
        left: 10%;
        width: 250px;
        gap: 12px;
     
    }
    .dot {
        width: 6px;
        height: 6px;
    }
    .img-frame {
        right: 5%;
        bottom: 10%;
        width: 60px;
        height: 90px;
        border-width: 5px;
    }

    /* Acordeón */
    .category-header {
        padding: 20px 25px;
    }
    .category-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    .category-title {
        font-size: 1.3rem;
    }
    .convenio-content {
        padding: 0 25px 25px 90px;
        font-size: 0.95rem;
    }

}


@media (max-width: 1200px) {
    .hero-text {
        width: 60%;
        margin-left: 100px;
        padding: 30px;
    }
    .hero-heading {
        font-size: 3.6rem;
    }
    .hero-subheading {
        font-size: 1rem;
        max-width: 400px;
    }
    .hero-image {
        width: 100%;
        margin-top: 20px;
        order: 2;
        padding: 10px;
    }
    .hero-img {
        max-width: 450px;
    }
    .accent-line {
        right: 48%;
        height: 80px;
    }
    .cross {
        top: 15%;
        right: 8%;
        font-size: 2rem;
    }
    .stripes {
        top: 250px;
        left: 8%;
        width: 120px;
        height: 80px;
    }
    .dot-pattern {
        display: none;
    }
    .img-frame {
        right: 20%;
        bottom: 8%;
        width: 70px;
        height: 100px;
        border-width: 6px;
    }
}

@media (max-width: 992px) {
    /* Layout apilado */
    .convenios-hero {
        flex-direction: column;
        margin-top: 60px;
        min-height: auto;
        padding-bottom: 60px;
        justify-content: center;
    }
    .hero-text {
        width: 100%;
        padding: 30px 20px;
        margin-left: 0;
        margin-top: 0;
        text-align: center;
        order: 1;
        align-items: center;
    }
    .hero-heading {
        font-size: 3rem;
        margin-bottom: 10px;
        margin-top: 80px;
    }
    .hero-subheading {
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    .hero-image {
        width: 100%;
        margin-top: 20px;
        order: 2;
        padding: 10px;
    }
    .hero-img {
        max-width: 300px;
        width: 80%;
        margin: 0 auto;
    }
    /* Ajusta posiciones de elementos decorativos */
    .accent-line {
        left: 50%;
        bottom: 20px;
        top: auto;
        transform: translateX(-50%);
        height: 60px;
        width: 4px;
    }
    .cross {
        top: auto;
        bottom: 10%;
        right: 5%;
        font-size: 1.5rem;
    }
    .stripes {
        top: auto;
        bottom: 40px;
        left: 5%;
        width: 80px;
        height: 50px;
    }
    .img-frame {
        right: 10%;
        bottom: 10%;
        width: 40px;
        height: 60px;
        border-width: 3px;
    }

    /* Acordeón */
    .category-header {
        padding: 15px 20px;
    }
    .category-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        margin-right: 15px;
    }
    .category-title {
        font-size: 1.2rem;
    }
    .toggle-icon {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .convenio-header {
        padding: 15px 20px 15px 80px;
    }
    .convenio-content {
        padding: 0 20px 20px 80px;
        font-size: 0.9rem;
    }
    .convenio-details {
        flex-direction: column;
    }
    .convenio-logo-container {
        margin-bottom: 20px;
    }
    .convenio-actions {
        flex-direction: column;
    }
    
    .steps-container {
      max-width: 1000px;
      margin: 40px;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 10px;
}
}

@media (max-width: 768px) {

    .hero-button {
    padding: 10px 20px;
    font-size: 0.9rem;
}
    .convenios-hero {
        padding: 60px 0;
    }
    .hero-heading {
        font-size: 2.5rem;
    }
    .hero-subheading {
        font-size: 0.9rem;
    }
    .hero-img {
        max-width: 250px;
    }
    /* Ajusta posiciones de elementos decorativos */
    .accent-line {
        height: 40px;
        width: 3px;
    }
    .cross {
        font-size: 1.2rem;
    }
    .stripes {
        width: 60px;
        height: 40px;
        bottom: 30px;
    }
    .img-frame {
        right: 5%;
        bottom: 5%;
        width: 30px;
        height: 45px;
        border-width: 2px;
    }

    /* Acordeón */
    .category-header {
        padding: 12px 15px;
    }
    .category-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 10px;
    }
    .category-title {
        font-size: 1.1rem;
    }
    .toggle-icon {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    .convenio-header {
        padding: 12px 15px 12px 60px;
    }
    .convenio-content {
        padding: 0 15px 15px 60px;
        font-size: 0.85rem;
    }
    .filter-tabs {
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
    }
    .filter-btn {
        white-space: nowrap;
    }
    
     .steps-container {
      max-width: 500px;
      margin: 40px auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 30px;
}
}
@media (max-width: 576px) {
    .hero-heading {
        font-size: 2.2rem;
        margin-top: 50px;
    }
    .hero-subheading {
        font-size: 0.85rem;
        max-width: 400px;
    }
    .hero-img {
        max-width: 200px;
    }

    .hero-button {
    padding: 8px 16px;
    font-size: 0.85rem;
    }
    /* Ajusta posiciones de elementos decorativos */
    .accent-line {
        height: 30px;
        width: 2px;
    }
    .cross {
        font-size: 1rem;
        right: 3%;
    }
    .stripes {
        width: 50px;
        height: 30px;
        bottom: 20px;
    }
    .img-frame {
        display: none;
    }

    /* Acordeón */
    .category-header {
        padding: 10px;
    }
    .category-icon {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        margin-right: 8px;
    }
    .category-title {
        font-size: 1rem;
    }
    .toggle-icon {
        width: 18px;
        height: 18px;
        font-size: 8px;
    }
    .convenio-header {
        padding: 10px 10px 10px 48px;
    }
    .convenio-content {
        padding: 0 10px 10px 48px;
        font-size: 0.8rem;
    }
    .convenio-title {
        font-size: 0.9rem;
    }
    .convenio-badge {
        font-size: 0.7rem;
    }
    .novedad-item {
        min-width: 100%;
    }
    .step-card {
        min-width: 100%;
    }
     .steps-container {
      max-width: 300px;
      margin: 40px auto;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 30px;
}
}