@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;700&family=Source+Sans+Pro:wght@400;600&display=swap');


/* ===== Base Styles ===== */
:root {
    --color-primary: #037da5;
    --color-secondary: #FA9140;
    --color-accent: #91ced3;
    --color-white: #ffffff;
    --color-light: #f8f9fa;
    --color-dark: #343a40;
    --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.1);

    --font-primary: 'Source Sans Pro', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-primary);
    color: var(--color-dark);
    line-height: 1.5;
    background-color: var(--color-white);
    padding-top: 100px;
    overflow-x: hidden;
    font-size: 16px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

.paragraph,
p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Responsive: Mobile */
@media only screen and (max-width: 420px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    .paragraph, p { font-size: 0.85rem; }
    li { font-size: 0.9rem; }
    .plan-title-img {
        margin: auto;
        height: 35px;
    }
}

/* Responsive: Tablets y escritorios */
@media only screen and (min-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.7rem; }
    h3 { font-size: 1.3rem; }
    .paragraph, p { font-size: 1rem; }
    li { font-size: 1rem; }
}

/* Responsive: Escritorios grandes */
@media only screen and (min-width: 1000px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.5rem; }
    .paragraph, p { font-size: 1rem; }
}


/* --- Buttons --- */
.btn {
    display: inline-block;
    cursor: pointer;
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 30px;
    transition: all 0.3s ease;
    z-index: 500;
}

.btn-darken {
    color: var(--color-primary);
    background-color: var(--color-light);
    border: 2px solid var(--color-primary);
}

.btn-darken:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* --- Lists --- */
.smile-list {
    list-style: none;
    position: relative;
    padding-left: 30px;
    text-align: left;
}

.smile-list::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 25px;
    height: 25px;
    background: url('../img/bullet-smile.png') no-repeat center/contain;
}


.sticky-button {
    position: sticky;
    -webkit-position: sticky; 

    bottom: 40px;
    left: 40px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(3px);
    border: 3px solid var(--color-secondary);
    color: var(--color-secondary);
    text-decoration: none;
    padding: 10px 25px;
    cursor: pointer;
    z-index: 1000;
}
.sticky-button:hover{
    background-color: var(--color-secondary);
    color: var(--color-white);
    text-decoration: none;
}










.container {
    width: 100%;
    /* Set a max-width for your design on large screens */
    max-width: 1200px; 
    /* Center the container horizontally */
    margin-left: auto;
    margin-right: auto;
    /* Add safe-area padding for mobile screens */
    padding-left: 20px;
    padding-right: 20px;
}




/* ===== Banner Section Styles ===== */
#principal-heading {
    color: var(--color-primary);
}

#principal-heading span {
    color: var(--color-secondary);
}
.banner-section {
    /* margin-right: 5%;
    margin-left: 5%; */
    margin-top: 8%;
}

.banner-column {
    position: relative;
    display: grid;
    align-items: center;
    row-gap: 3rem;
    margin-top: -30px;
}

.banner-image {
    display: block;
    max-width: 18rem;
    height: auto;
    object-fit: cover;
    justify-self: center;
}

.banner-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-links {
    position: absolute;
    top: 30%;
    right: 1.5rem;
    display: grid;
    justify-items: center;
    row-gap: 0.5rem;
    opacity: 0; /* Hidden on mobile */
}

.banner-links>* {
    font-size: 1.8rem;
    line-height: 1.25;
    color: #037da5;
}

.banner-links::before,
.banner-links::after {
    position: absolute;
    content: "";
    width: 4rem;
    height: 1.5px;
    transform: rotate(90deg);
    background: #037da5;
}

.banner-links::before {
    top: -3rem;
}

.banner-links::after {
    bottom: -3rem;
}

/* ===== Features Section Styles ===== */
.section-features {
    /* overflow: hidden; */
    box-sizing: border-box;
    /* margin: 5%; */
    margin-top: 10%;
}

/* Mobile-First (Stacked layout) */
.us-column {
    display: grid;
    background-color: #91ced3;
    border-radius: 40px;
    /* margin: 0 20px; */
    padding: 2.5rem 1.5rem;
    overflow: hidden;
    box-sizing: border-box;
}

.us-image {
    display: block;
    width: 100%;
    max-width: 300px;
    height: auto;
    margin: 1rem auto 0 auto;
    order: 2;
    margin-top: -90px;
    margin-bottom: -40px;
}

.us-inner {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    color: #037da5;
    order: 1;
}

#us-paragraph {
    color: #f1f1f1;
}

.features-grid,
.specialties-grid,
.treatments-grid,
.locations-grid {
    display: grid;
    gap: 30px;
    margin-top: 50px;
}

.features-grid {
    gap: 10px;
    margin-top: 80px;
    grid-template-columns: repeat(2, 1fr);
}

.feature-item {
    padding: 20px;
    text-align: center;
    margin-top: -30px;
}

.feature-item h3 {
    color: #037da5;
    font-weight: 900;
    /* margin-top: -30px; */
    margin-bottom: 10px;
}
.feature-item ul{
    display: inline-block;
    text-align: left;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: translateY(-10px);
}

.feature-img {
    width: 6rem;
    box-shadow: var(--shadow-medium);
    border-radius: 50%;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
}

/* ===== Brands Section Styles ===== */
.section-brands {
    overflow: hidden;
    margin-bottom: 120px;
}

.section-brands h1 {
    color: var(--color-primary);
    /* background-color: #91ced3; */
    text-align: center;
    font-weight: 900;
    /* margin: 0 -10% 5%; */
    padding: 15px 30px;
}

.logos-slide {
    display: inline-flex;
    animation: slide 30s linear infinite;
    white-space: nowrap;
}

.logos-slide img {
    height: 25px;
    margin: 0 40px;
    margin-top: 20px;
    flex-shrink: 0;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ===== Plans Section Styles ===== */
.section-plans {
    /* padding: 0 20px; */
    margin-top: 5rem;

    /* margin-bottom: 5rem; */
}

#plans-heading {
    display: block;
    width: 100%;
    background-color: var(--color-primary);
    color: #f1f1f1;
    text-align: center;
    /* border-radius: 30px 30px 0 0; */
    padding: 20px 15px;
    margin-bottom: 0;
}

#blue-bg {
    /* background-color: var(--color-primary); */
    padding: 80px;
    /* border-radius: 0 0 30px 30px; */
}

/* .section-plans .container {
    padding: 0;
    margin: 5%;
    max-width: 100%;
    box-sizing: border-box;
    padding-bottom: 100px;
} */

.plans-grid {
    display: grid;
    gap: 25px;
    margin-top: 5%;
    grid-template-columns: 1fr;
    overflow-x: hidden; /* Prevent horizontal scroll */
    max-width: 100%;
    box-sizing: border-box;
}

/* .plan-item {
    padding: 25px;
    background: var(--color-light);
    border: solid 5px #037da5;
    border-radius: 25px;
    text-align: center;
    box-shadow: var(--shadow-medium);
} */

.plan-title-img {
    display: block;
    height: 50px;
    object-fit: contain;
    margin: 0 auto 25px auto;
}

#ortodoncia {
    grid-column: auto;
}

/* This one rule handles all screen sizes! */
.ortodoncia-grid {
    display: grid;
    /* This is the magic line */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
/* .ortodoncia-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-top: 20px;
} */

.ortodoncia-item.grow {
    position: relative;
    padding: 20px;
    border-radius: 25px;
    background: var(--color-white); /* Fondo blanco por defecto */
    box-shadow: var(--shadow-small);
    overflow: hidden;
    z-index: 1;
    color: var(--color-dark); /* Texto oscuro por defecto */
    display: flex;
    flex-direction: column;
    min-height: 250px; /* Una altura base para todas */
}

/* El fondo de imagen está OCULTO por defecto */
.ortodoncia-item.grow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0;
}

/* El contenido por defecto (la lista <ul>) es VISIBLE */
.default-content {
    opacity: 1;
    pointer-events: auto;
    text-align: left; /* Aseguramos la alineación a la izquierda */
}

/* El contenido del "hover" (párrafo y botón) está OCULTO */
.hover-reveal-text,
.hover-reveal-button {
    opacity: 0;
    pointer-events: none;
}
.hover-reveal-button{
    color: var(--color-light);
    border-radius: 20px;
    padding: 7px 1px;
    border: 4px solid var(--color-light);
    font-weight: 600;
}

.content-swap-container {
    position: relative;
    flex-grow: 1;
    margin: 1rem 0;
    display: flex;
    align-items: center; /* Centra verticalmente el contenido */
}

.default-content,
.hover-reveal-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease-in-out;
}



.plan-item ul {
    padding-left: 20px;
    text-align: left;
}

#odontologia,
#odontopediatria {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.plan-body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: hidden; /* Prevent horizontal scroll */
    max-width: 100%;
    box-sizing: border-box;
}

.plan-body ul {
    flex: 1;
    padding-left: 20px;
    min-width: 0;
    overflow-wrap: break-word;
}

.plan-body .with-img {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}
.plan-body .with-img ul {
    flex: 1;
    padding-left: 20px;
    min-width: 0;
    overflow-wrap: break-word;
}

#odonto-img,
#pediatria-img {
    flex-shrink: 0;
    width: 40%;
    max-width: 200px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 15px;
}





/* ===== Specialties Section Styles ===== */
.section-specialties{
    position: relative; /* ¡CRÍTICO! Todos los 'position: absolute' internos se posicionarán con respecto a esta sección */
    /* margin: 5%; */
    margin-top: 0;
    padding: 5rem 0;
    /* margin-top: 0; */
    text-align: center;
    margin-bottom: 0;
}
#smile {
    position: absolute;
    width: clamp(300px, 40vw, 600px); /* Tamaño adaptable */
    z-index: 0;
    top: 50%;
    left: 0;
    transform: translate(-30%, -50%); /* Lo saca un poco y lo centra */
  }

  #bg-smile {
    width: 100%;
    height: auto;
    opacity: 0.35;
    margin-top: -100px;
    margin-bottom: -750px;
    /* margin-top: -20%; */
    margin-left: -20%;
  }
  #specialties-heading,
.section-specialties .container {
  position: relative;
  z-index: 1;
}


#specialties-heading {
    display: block;
    margin: auto;
    width: 80%;
    color: var(--color-secondary);
    text-align: center;
    border: solid 3px var(--color-secondary);
    border-radius: 30px;
    padding: 10px 15px;
    text-align: center;
}
.section-specialties .container {
    /* display: block;
    width: 90%;
    padding: 0 20px;
    margin-left: 5%; */
    margin-top: 8%;
    /* margin-bottom: 5rem; */
    align-items: center;
    row-gap: 3rem;
}
#specialties-text{
    display: block;
    flex-direction: column;
    align-items: flex-end;
    width: 90%;
    margin-left: 5%;
    text-align: center;
}
#specialties-text h2{
   color: var(--color-accent);
}
.section-specialties .cards{
    margin: auto;
    margin-top: 40px;
    
    /* width: 45%; */
    min-width: 300px;
}

.specialty-item img {
    height: 45px;
}





/* ===== Locations Section Styles ===== */

.section-locations {
    padding: 0; 
    text-align: center;
    margin-bottom: 5%;
  }
/* .section-locations .container{
    width: 90%;
    margin-left: 5%;
} */
  .section-locations h1 {
    margin-bottom: 50px; 
    color: var(--color-accent)
  }
  
  /* 3. La rejilla (Grid) que contiene las clínicas */
  .locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 40px; /* Espacio entre las tarjetas de las clínicas */
  }
  
  .location-item {
    border-radius: 12px; 
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: left; 
    transition: transform 0.3s ease;
  }
  
  .location-item:hover {
    transform: translateY(-5px);
  }
  
  .location-item p {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px; 
    color: #555;
    display: flex; 
    align-items: center;
  }
  
  .location-item .fa-map-marker-alt {
    color: #FF6B00; 
    font-size: 1.3rem;
    margin-right: 10px; 
  }
  
  .location-item iframe {
    width: 100%; 
    height: 300px;
    border: none; 
    border-radius: 8px;
  }
  
    
  @media (max-width: 992px) {
    .locations-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }
  }
    @media (max-width: 576px) {
      .section-locations h2 {
          font-size: 2rem; 
      }
  
      .location-item {
          padding: 20px; 
      }
  }


.locations-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.location-item {
    padding: 20px;
    background: var(--color-light);
    border-radius: 15px;
    width: 100%;
    background-color: white;
    overflow: hidden;
}



















@media (max-width: 760px) {
    .ortodoncia-item.grow.mobile-expanded {
        min-height: 380px;
        color: var(--color-white); /* Texto blanco */
    }

    .ortodoncia-item.grow.mobile-expanded::before {
        opacity: 1; /* Muestra la imagen */
    }

    .ortodoncia-item.grow.mobile-expanded .default-content {
        opacity: 0; /* Oculta la lista */
        pointer-events: none;
    }

    .ortodoncia-item.grow.mobile-expanded .hover-reveal-text,
    .ortodoncia-item.grow.mobile-expanded .hover-reveal-button {
        opacity: 1; /* Muestra el párrafo y el botón */
        pointer-events: auto;
    }
    .hover-reveal-button{
        text-align: center;
    }
    .hover-reveal-button:hover{
        cursor: pointer;
        text-decoration: none;
        background-color: #f1f1f1;
        color: var(--color-primary);
    }

}

/* Asigna las imágenes de fondo verticales para el estado móvil */
.ortodoncia-item.grow.BC::before { background-image: url('../img/Index-img/Plans/orto-conv-bg-vertical.jpg'); }
.ortodoncia-item.grow.BA::before { background-image: url('../img/Index-img/Plans/orto-auto-bg-vertical.jpg'); }
.ortodoncia-item.grow.AL::before { background-image: url('../img/Index-img/Plans/orto-alin-bg-vertical-100.jpg'); }


/* ===== Responsive Media Queries ===== */

/* Tablets and Desktops (min-width: 768px) */
@media (min-width: 768px) {
    
    .sticky-button{
        font-size: 1rem;
        padding: 12px 23px;
    }

    /* Banner Section */
    .banner-section{
        margin-top: 5%;
    }
    .banner-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: center;
        margin-top: -20px;
        row-gap: 3rem;
    }

    .banner-image {
        order: 1;
        max-width: 20rem;
    }

    /* Features Section */
    .section-features {
        padding-top: 10rem;
    }

    .us-column {
        position: relative;
        display: block;
        margin: -10rem auto 0 auto;
        max-width: 1100px;
        min-height: 300px;
        z-index: 5;
        overflow: visible;
    }

    .us-image {
        position: absolute;
        max-width: 350px;
        bottom: 0;
        left: 0;
        margin: 0;
        order: initial;
    }

    .us-inner {
        position: absolute;
        width: 55%;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        align-items: flex-start;
        text-align: left;
        padding-right: 4rem;
        order: initial;
    }

    /* Brands Section */
    .logos-slide img {
        height: 30px;
        margin-top: 30px;
    }

    .section-brands h1 {
        margin-bottom: 5%;
    }

    .plans-grid {
        display: grid;
        gap: 25px;
        margin-top: 5%;
        grid-template-columns: 1fr;
        overflow-x: hidden; /* Prevent horizontal scroll */
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .plan-item {
        padding: 25px;
        background: var(--color-light);
        border: solid 5px #037da5;
        border-radius: 25px;
        text-align: center;
        box-shadow: var(--shadow-medium);
    }

    #plans-heading {
        display: inline-block;
        width: auto;
        padding: 20px 40px;
        border-radius: 0 30px 30px 0;
    }


    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #ortodoncia {
        grid-column: 1 / -1;
    }

    .plan-title-img {
        margin: 0;
    }

    #ortodoncia .plan-title-img {
        margin: auto;
    }
    
    /* .ortodoncia-item.grow {
        height: 250px;
        cursor: pointer;
        transition: width 0.4s ease-in-out;
        will-change: width;
    } */
    
    /* Asigna las imágenes de fondo horizontales para desktop */
    .ortodoncia-item.grow.BC::before { background-image: url('../img/Index-img/Plans/orto-conv-bg.jpg'); }
    .ortodoncia-item.grow.BA::before { background-image: url('../img/Index-img/Plans/orto-auto-bg.jpg'); }
    .ortodoncia-item.grow.AL::before { background-image: url('../img/Index-img/Plans/orto-alin-bg_1-100.jpg'); }

    /* ESTADO :HOVER para TODAS las tarjetas en desktop */
    /* .ortodoncia-item.grow:hover {
        width: 50vw;
        height: 300px;
        color: var(--color-white);
    } */

    /* .ortodoncia-item.grow:hover::before {
        opacity: 1;
        transform: scale(1.05);
        transition: opacity 0.5s ease-in-out, transform 0.8s ease-out;
    }
    
    .ortodoncia-item.grow:hover h3,
    .ortodoncia-item.grow:hover li {
        text-align: left;
        color: var(--color-white);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .ortodoncia-item.grow:hover .default-content {
        opacity: 0;
        pointer-events: none;
    }
    
    .ortodoncia-item.grow:hover .hover-reveal-text,
    .ortodoncia-item.grow:hover .hover-reveal-button {
        opacity: 1;
        pointer-events: auto;
        transition-delay: 0.2s;
        text-align: left;
        align-items: start;
    } */


    .ortodoncia-item.grow {
        flex: 1; /* Each item takes up 1 part of the available space */
        height: 300px; /* Set a consistent height */
        transition: flex 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); /* Animate the 'flex' property for a smooth effect! */
        will-change: flex;
    }
    
    /* 2. Hover state for the specific item being hovered */
    .ortodoncia-item.grow:hover {
        flex: 3; /* The hovered item grows to take 3 parts of the space */
        color: var(--color-white); /* Keep your other styles */
        text-align: left;
    }
    
    /* The rest of your hover styles for content fading can remain the same */
    .ortodoncia-item.grow:hover::before {
        opacity: 1;
        transform: scale(1.05);
    }
    
    .ortodoncia-item.grow:hover .default-content {
        opacity: 0;
    }
    
    .ortodoncia-item.grow:hover .hover-reveal-text,
    .ortodoncia-item.grow:hover .hover-reveal-button {
        opacity: 1;
    }
    .hover-reveal-button:hover{
        background-color: var(--color-light);
        color: var(--color-primary);
        font-weight:bold;
        text-decoration: none;
    }




    #odontologia,
    #odontopediatria {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    #odontologia .plan-content,
    #odontopediatria .plan-content {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    #odontologia > div:first-child,
    #odontopediatria > div:first-child {
        display: block;
        text-align: left;
        align-items: stretch;
    }

    #odonto-img,
    #pediatria-img {
        flex: 1;
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 15px;
    }

    #odontologia ul,
    #odontopediatria ul {
        flex: 1;
        padding-left: 20px;
    }
    .section-specialties {
        position: relative;
        margin-top: 0;
        padding: 5rem 0;
        text-align: center;
        overflow: hidden;
    }
    #specialties-heading {
        display: inline-block;
        margin-left: 0;
        margin-right: auto;
        width: auto;
        padding: 20px 40px;
    }

    .section-specialties .container {
        display: flex;
        width: 90%;
        padding: 0 20px;
        margin-top: 2%;
        margin-bottom: 5rem;
        align-items: start;
        row-gap: 3rem;
    }
    #specialties-text{
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        width: 50%;
        margin-left: 0;
        text-align: left;
        align-items: baseline;
        margin-right: 10%;
        margin-top: 40px;
    }
    .section-specialties .cards{
        margin: auto;
        
        /* width: 45%; */
        min-width: 300px;
    }
    .section-specialties button{
        margin-top: 50px;
    }
    .section-locations{
        margin-top:-70px
    }


}

/* Larger Tablets and Desktops (min-width: 800px) */
@media (min-width: 800px) {
    /* .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    } */
    .ortodoncia-grid {
        display: flex; /* Change from grid to flex */
        gap: 15px; /* You can keep your gap */
    }

    #ortodoncia {
        grid-column: 1 / -1;
    }

    /* .ortodoncia-grid {
        grid-template-columns: repeat(3, 1fr);
    } */
    .ortodoncia-item.grow {
        min-height: auto; /* Reseteamos la altura mínima */
        height: 250px;    /* Altura fija en estado colapsado */
        color: var(--color-dark); /* Texto oscuro por defecto */
        cursor: pointer;
        /* ¡Añadimos las transiciones para el efecto hover! */
        transition: width 0.4s ease-in-out, height 0.4s ease-in-out;
        will-change: width, height;
    }

    .ortodoncia-item.grow::before {
        opacity: 0; /* Ocultamos la imagen de fondo */
        transform: scale(1); /* Reseteamos la escala */
        transition: opacity 0.5s ease-in-out, transform 0.8s ease-out;
    }
    
    /* Rutas de imagen para la vista horizontal (desktop) */
    .ortodoncia-item.grow.BC::before {
        background-image: url('../img/Index-img/Plans/orto-conv-bg.jpg');
    }
    .ortodoncia-item.grow.BA::before {
        background-image: url('../img/Index-img/Plans/orto-auto-bg.jpg');
    }
    .ortodoncia-item.grow.AL::before {
        background-image: url('../img/Index-img/Plans/orto-alin-bg_1-100.jpg');
    }

    .ortodoncia-item.grow h3,
    .ortodoncia-item.grow li {
        color: var(--color-dark); /* Texto oscuro */
        text-shadow: none;        /* Sin sombra */
        transition: color 0.3s ease;
    }
    
    .default-content {
        opacity: 1; /* Contenido por defecto VISIBLE */
        pointer-events: auto;
        transition: opacity 0.3s ease-in-out;
    }

    .hover-reveal-text,
    .hover-reveal-button {
        opacity: 0; /* Contenido del hover OCULTO */
        pointer-events: none;
        transition: opacity 0.3s ease-in-out 0.2s; /* Añadimos un pequeño retraso */
    }
    .hover-reveal-button{
        text-align: center;
    }


    /* --- 2. ESTADO :HOVER (INTERACTIVO) --- */

    .ortodoncia-item.grow:hover {
        width: 50vw; /* Se expande */
        height: 300px; /* Ajusta esta altura si es necesario */
        color: var(--color-white); /* El color general del texto cambia a blanco */
    }

    .ortodoncia-item.grow:hover::before {
        opacity: 1; /* Mostramos la imagen de fondo */
        transform: scale(1.05); /* Aplicamos un sutil zoom */
    }

    .ortodoncia-item.grow:hover h3,
    .ortodoncia-item.grow:hover li {
        color: var(--color-white); /* El texto se vuelve blanco */
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }
    
    .ortodoncia-item.grow:hover .default-content {
        opacity: 0; /* Ocultamos el contenido por defecto */
        pointer-events: none;
    }
    
    .ortodoncia-item.grow:hover .hover-reveal-text,
    .ortodoncia-item.grow:hover .hover-reveal-button {
        opacity: 1; /* Mostramos el contenido del hover */
        pointer-events: auto;
    }
}


/* Larger Desktops (min-width: 1000px) */
@media only screen and (min-width: 1000px) {
    .features-grid {
        gap: 30px;
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Extra Large Desktops (min-width: 64rem / 1024px) */
@media only screen and (min-width: 64rem) {
    .banner-image {
        max-width: 25rem;
        margin-right: 1rem;
    }

    .banner-inner {
        row-gap: 1.75rem;
    }

    .banner-links {
        opacity: 1; /* Visible on larger screens */
    }
}

