/* Mediclic Custom Styles */

:root {
    --mediclic-blue: #0B4F9F;
    --mediclic-green: #00C896;
    --mediclic-light-blue: #E8F4F8;
    
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* Links */
a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--mediclic-blue);
    color: #fff;
}

.btn-primary:hover {
    background: #094080;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(11, 79, 159, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--mediclic-blue);
    color: var(--mediclic-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--mediclic-blue);
    color: #fff;
}

/* Cards */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

/* Sections */
section {
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--mediclic-blue);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--mediclic-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #094080;
}

/* Utilities */
.text-mediclic-blue {
    color: var(--mediclic-blue) !important;
}

.text-mediclic-green {
    color: var(--mediclic-green) !important;
}

.bg-mediclic-blue {
    background-color: var(--mediclic-blue) !important;
}

.bg-mediclic-green {
    background-color: var(--mediclic-green) !important;
}

.bg-mediclic-light-blue {
    background-color: var(--mediclic-light-blue) !important;
}

.bg-medicuan-opaco {
    background-color: #f5f5f5 !important;
}

/* AUX */
.text-justify {
    text-align: justify;
}

/* Loading Spinner */
.spinner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Responsive */
@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn {
        display: none;
    }
}

/* Slide  Styles custom  */
.splide .splide__pagination__page {
    width: 20px;
    height: 20px;
    margin: 0 8px;
    background: #000;
    border-radius: 50%;
    opacity: 0.6;
    transform: scale(1);
    transition: all 0.3s ease;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.splide .splide__pagination__page.is-active {
    background: var(--mediclic-blue);
    opacity: 1;
    transform: scale(1.4);
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(11, 79, 159, 0.5);
}

/*STYLES DE PASOS PARA CITAS*/
 .container-icon-steeps {
    width: 80%;
    max-width: 160px; 
    height: 160px; 
    font-size: 2rem;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;        

}
.numeration-steeps{
    background-color: var(--mediclic-blue);
    padding: 10px;
    color: white;
    width: 50px;
    float:left;
}
.text-steeps{
    height: 100%;
    width: auto;
    text-align: left;
}
.subtitle-steeps {
    color: var(--mediclic-blue);
}

/* STYLES ESPECIALIDADES */

.container-specialty {
    
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
}

.main-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.btn-menu {
    padding: 10px 20px;
    border: none;
    background-color: #667b9221;
    color: #667b92;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 25px;
}

.btn-menu.active {
    background-color: var(--mediclic-blue);
    color: white;
    font-weight: 600;
}

.submenu-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.submenu-question {
    font-size: 0.95rem;
    color: black;
    margin-bottom: 20px;
}

.submenu-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.btn-submenu {
    padding: 8px 20px;
    border: 2px solid transparent;
    background-color: transparent;
    color: #667b92;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    
}

.btn-submenu.active {
    color: black;
    border-bottom: 4px solid var(--mediclic-blue);
}

.services-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
    justify-content: center;
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, 280px);
        max-width: 1400px;
        margin-left: auto;
        margin-right: auto;
        
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns:  repeat(min(3, auto-fit), 280px);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .services-grid-container {
        max-width: 900px; /* 3×280px + 2×20px + margen */
        margin: 0 auto;
    }
    .services-grid {
        grid-template-columns: repeat(auto-fit, 280px);
        gap: 12px;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .main-menu {
        gap: 10px;
    }

    .btn-menu {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, 280px);
            justify-content: center;
    }

    .services-grid-container {
        
        margin: 0 auto;
    }
    .section-title {
        font-size: 1.25rem;
    }

    .main-menu {
        gap: 8px;
    }

    .btn-menu {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .submenu-buttons {
        gap: 10px;
    }

    .btn-submenu {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

.service-card {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 4px 4px 10px #8c8c8c40;
}

.service-card:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(144, 198, 64, 0.5);
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .service-image {
        height: 120px;
    }
}

.service-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

h3.service-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: black;
    text-align: center;
}

@media (max-width: 768px) {
    .service-title {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }
}

.price-section {
    margin-bottom: 12px;
    font-size: 1rem;
}

.price-label {
    color: var(--mediclic-blue);
    font-weight: 600;
    display: block;
    margin-bottom: 3px;
}

.price-value {
    color: black;
    font-weight: 600;
}

.price-type {
    color: #999;
    font-size: 1rem;
    margin-bottom: 8px;
}

.action-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    font-size: 0.8rem;
}

.link-action {
    color:  var(--mediclic-blue);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.link-action:hover {
    color: black;
}

.hidden {
    display: none !important;
}

.btn-card-specialy{
    background-color:white;
    color: var(--mediclic-blue);
    border: 1px solid var(--mediclic-blue);
}
.btn-card-specialy:hover{
    background-color:var(--mediclic-blue);
    color: white;
}
.link-more-than {
    text-align: center;
    margin: 10px;
    font-size: 15px;
}