:root {
    --primary-color: #e75200;
    --secondary-color: #d90e00;

    --font-family-primary: 'Poppins', sans-serif;
}


body {
    font-family: var(--font-family-primary);
    color: black;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    font-family: var(--font-family-primary);
}

.align-content__left {
    margin-inline: 0 auto;
}

.align-content__right {
    margin-inline: auto 0;
}

.align-content__center {
    margin-inline: auto;
}

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

.btn-vm {
    height: 45px;
    border-radius: 5px;
    padding-inline: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.btn-vm__primary:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

.swiper-pagination-bullet {
    background: white;
    width: 15px;
    height: 15px;
    border-radius: 5px;
    opacity: .5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--color-primary);
}

.titles-vm {
    margin-bottom: 80px;
}

.site-header {
    position: absolute;
    width: 100%;
    max-width: 1320px;
    top: 0;
    left: 0;
    z-index: 1020;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 auto;
    right: 0;
}

.site-header .navbar {
    background-color: white !important;
    padding: 0 !important;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.titles-vm h2 {
    font-size: 46px;
    font-weight: 600;
    margin-bottom: 25px;
}

.titles-vm h3 {
    font-size: 24px;
    font-weight: normal;
}

/* Footer */
.bg-footer {
    background-color: #141b2d;
}

.footer-logo img {
    max-width: 260px;
    height: auto;
}

.footer-info-text p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
    opacity: 0.75;
}

.footer-map-link {
    font-weight: 500;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
}

.footer-map-link i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.footer-hover {
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-hover:hover {
    opacity: 1 !important;
    color: var(--primary-color) !important;
}

.scroll-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    text-decoration: none;
}

.scroll-to-top:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header-logo-wrap {
    min-width: 250px;
    min-height: 72px;
    border-radius: 0 0 0 10px;
}

.header-logo-wrap img {
    height: auto;
    width: 100%;
    max-width: 250px;
}

.site-header .nav-link {
    color: #000;
    font-size: 15px;
    font-weight: 500;
    padding: 25px 0 !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--primary-color) !important;
}

.site-header .dropdown-toggle::after {
    display: none;
    /* Hide default arrow */
}

.site-header .dropdown-menu {
    top: 100%;
    margin-top: 0;
}

.navbar-nav .nav-item {
    padding: 0 10px;
}


/* Universal Parallax Background */
.parallax-bg {
    background-size: cover;
    background-position: center 50%;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.archive-hero {
    min-height: 400px;
    display: flex;
    align-items: center;
}

.dot-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    z-index: 1;
}

.z-index-2 {
    z-index: 2;
}

.especialidad-card {
    transition: transform 0.3s ease, shadow 0.3s ease;
}

.especialidad-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

/* Social Sidebar */
.social-sidebar {
    position: fixed;
    right: 0;
    top: 30%;
    transform: translateY(-50%);
    z-index: 1050;
    padding: 10px;
    background: white;
    border-radius: 10px 0 0 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: scale(1.1);
    color: white;
}

.social-btn.facebook {
    background-color: #3b5998;
}

.social-btn.instagram {
    background-color: #e4405f;
}

.social-btn.tiktok {
    background-color: #000000;
}

.social-btn.youtube {
    background-color: #cd201f;
}

.social-btn.whatsapp {
    background-color: #25d366;
}

.social-btn.linkedin {
    background-color: #0077b5;
}

.social-btn.youtube {
    background-color: #cd201f;
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    z-index: 1050;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.4);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.play-btn {
    width: 70px;
    height: 70px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.especialidad-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1.5rem;
    overflow: hidden;
    background: transparent;
    padding: 40px;
    border: 1px solid;
    border-radius: 10px;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    text-align: left;
}

.especialidad-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.especialidad-icon {
    display: inline-flex;
    align-items: center;
    justify-content: start;
    width: 100%;
    height: auto;
    transition: background 0.3s ease;
}

.especialidad-card .card-text p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.especialidad-card .btn {
    transition: all 0.3s ease;
}

.especialidad-card .btn:hover {
    filter: brightness(1.1);
    transform: scale(1.05);
}

.post-type-archive-especialidad .banner-content {
    max-width: 50%;
}

.archive-grid .titles-vm {
    max-width: 50%;
}

.archive-grid .titles-vm h1 {
    font-size: 30px;
    color: var(--primary-color);
}

.archive-grid .titles-vm h2 {
    font-size: 20px;
    color: #000000;
}

/*.viamedical-form .input-with-icon::before {
    content: "\F5C1";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 5;
}*/

.viamedical-form br {
    display: none !important;
}

.viamedical-form .input-with-icon input {
    padding-left: 45px !important;
    margin-bottom: 0 !important;
}

.viamedical-form input {
    margin-bottom: 0 !important;
}

/* Post Cards */
.post-thumbnail {
    height: 250px;
    background: #f8f9fa;
    overflow: hidden;
}

.post-thumbnail img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
    padding: 1rem;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
    background: #fff;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.08);
}

/* Single Post Layout */
.single-post-main {
    background-color: #fff;
    padding-bottom: 80px;
}

.post-featured-image img {
    max-height: 400px;
}

.post-featured-image-container {
    padding-top: 100px;
    margin-bottom: 3rem;
}

.featured-image-wrapper {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.featured-image-wrapper img {
    max-height: 400px;
}

.entry-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #1a1a1b !important;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.entry-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #000;
    margin-bottom: 0rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
}

/* CTA Banner */
.post-cta-banner {
    position: relative;
    overflow: hidden;
    padding: 3rem 4rem;
    margin: 4rem 0;
    border-radius: 1.5rem;
    color: #fff !important;
    background: #e75200;
    /* Fallback color */
    background-size: cover;
    background-position: center;
}

.post-cta-banner h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    color: #fff !important;
}

.post-cta-banner .btn-vm {
    background-color: #e75200 !important;
    font-weight: 600;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    height: auto;
    border-radius: 8px;
    color: #fff !important;
}

.post-cta-banner .btn-vm:hover {
    background-color: #fff !important;
    color: var(--primary-color) !important;
}

.entry-meta {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    font-size: 0.95rem;
    color: #888;
}

/* Related Posts Section */
.related-posts {
    padding-top: 5rem;
    margin-top: 2rem;
    border-top: 1px solid #eee;
}

.related-posts h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #1a1a1b;
}

.related-post-card {
    transition: all 0.3s ease;
    border: none;
    background: transparent;
}

.related-post-card:hover {
    transform: translateY(-8px);
}

.related-post-thumbnail {
    overflow: hidden;
    aspect-ratio: 16/10;
    margin-bottom: 1.25rem;
}

.related-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.related-post-card:hover .related-post-thumbnail img {
    transform: scale(1.1);
}

.related-post-body h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-post-body h3 a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post-body h3 a:hover {
    color: var(--secondary-color);
}

.related-post-body .post-date {
    font-size: 0.85rem;
    color: #999;
}

.cta-content {
    max-width: 60%;
    margin-inline: auto 0;
    width: 100%;
}

/* Single Specialty (Especialidad) Styles */
.single-especialidad-main {
    background-color: #fff;
    padding-bottom: 0;
}

.especialidad-hero {
    background: #141b2d;
    min-height: 450px;
    display: flex;
    align-items: center;
    position: relative;
}

.single-especialidad-main .breadcrumb {
    margin-top: -50px;
    position: relative;
    z-index: 10;
    padding: 1rem 0;
    background: transparent;
}

.single-especialidad-main .breadcrumb-item a {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

.single-especialidad-main .breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

.single-especialidad-main .entry-content {
    font-size: 1.1rem;
    color: #4a4a4a;
}

.single-especialidad-main .entry-content h2,
.single-especialidad-main .entry-content h3,
.single-especialidad-main .entry-content h4 {
    color: #1a1a1b;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.single-especialidad-main .accordion-button::after {
    display: none !important;
}

.single-especialidad-main .accordion-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.single-especialidad-main .accordion-button i {
    transition: transform 0.3s ease;
}

.single-especialidad-main .accordion-button:not(.collapsed) i {
    transform: rotate(45deg);
}

/* Related Specialties */

.related-specialties h2 {
    font-size: 2.5rem;
    color: #1a1a1b;
}

.specialty-related-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.related-specialties .especialidad-card {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.related-specialties .especialidad-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

@media (max-width: 1024px) {
    .parallax-bg {
        background-attachment: scroll;
        background-position: center !important;
    }

    .post-type-archive-especialidad .banner-content {
        max-width: 100%;
    }
}

@media (max-width: 991px) {
    .site-header nav .container-fluid {
        display: flex !important;
        justify-content: space-between !important;
        align-items: stretch !important;
        padding-right: 0 !important;
    }

    .header-logo-wrap {
        flex: 1;
        display: flex !important;
        justify-content: flex-start !important;
        padding-left: 20px !important;
        background-color: #000 !important;
        min-height: 70px;
    }

    .navbar-toggler {
        background-color: #fff !important;
        border: none !important;
        border-radius: 0;
        width: 70px;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .navbar-toggler:focus {
        box-shadow: none !important;
    }

    .navbar-toggler-icon {
        background-image: none !important;
        width: 25px;
        height: 2px;
        background-color: #000;
        position: relative;
    }

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after {
        content: "";
        position: absolute;
        width: 25px;
        height: 2px;
        background-color: #000;
        left: 0;
        transition: transform 0.3s ease, top 0.3s ease;
    }

    .navbar-toggler-icon::before {
        top: -8px;
    }

    .navbar-toggler-icon::after {
        top: 8px;
    }

    .navbar-toggler:not(.collapsed) .navbar-toggler-icon {
        background-color: transparent !important;
    }

    .navbar-toggler:not(.collapsed) .navbar-toggler-icon::before {
        top: 0;
        transform: rotate(45deg);
    }

    .navbar-toggler:not(.collapsed) .navbar-toggler-icon::after {
        top: 0;
        transform: rotate(-45deg);
    }

    .navbar-collapse {
        background: #fff !important;
        padding: 40px 20px !important;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        text-align: center;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .navbar-nav {
        gap: 15px !important;
    }

    .nav-link {
        font-size: 1.25rem !important;
        padding: 15px 0 !important;
        font-weight: 500;
        border: none !important;
    }

    .dropdown-toggle::after {
        display: none !important;
    }

    .dropdown-menu {
        border: none !important;
        width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
        text-align: center !important;
        box-shadow: none !important;
        margin-top: 0 !important;
    }

    .dropdown-item {
        color: #666;
        font-size: 1.1rem !important;
        padding: 10px 0 !important;
        background: transparent !important;
        font-weight: 400;
    }

    .dropdown-item:active,
    .dropdown-item:focus,
    .dropdown-item:hover {
        color: var(--primary-color) !important;
        background: transparent !important;
    }

    .archive-hero,
    .especialidad-hero {
        min-height: 260px !important;
    }

    .archive-hero>.container {
        padding-top: 0 !important;
    }

    .section-contacto .contacto-image-wrap {
        min-height: auto;
    }

    .archive-grid .titles-vm {
        max-width: 100%;
    }

    .banner-content {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .container-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .post-cta-banner {
        padding: 2.5rem 1.5rem;
        text-align: center;
    }

    .cta-content {
        flex-direction: column;
    }

    .cta-content h2 {
        margin-bottom: 1.5rem;
        font-size: 1.5rem;
    }

    .post-cta-banner {
        background-position: -165px;
    }
}