body {
    background-color: #ffffff;
    height: 100%;
}

html,
body {
    height: 100%;
    margin: 0;
}

.full-height {
    background: transparent;
    min-height: 60vh;
}

/* Top navigation wrapper (no large min-height) */
.top-nav {
    background: transparent;
    padding: 8px 0;
}

table {
    width: 100%;
    padding-top: 5px;

}

.heading-text {
    color: #212529;
    font-size: 42px;
    font-weight: 700;
    line-height: 63px;
    margin-top: 20px;
    text-align: center;
    margin-bottom: 0;
}

.sub-text2 {
    color: #6c757d;
    font-size: 17px;
    line-height: 27px;
    font-weight: 400;
    text-align: center;
    margin-top: 0;
}


.register-btn {
    background-color: rgba(240, 248, 255, 0.589);
    color: #345cc4;
}


.edoc-logo {
    color: #212529;
    font-weight: bolder;
    font-size: 20px;
    padding-left: 20px;
    animation: transitionIn-Y-over 0.5s;
}

.edoc-logo-sub {
    color: #6c757d;
    font-size: 12px;
}


.nav-item {
    color: #3b3b3b;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    animation: transitionIn-Y-over 0.5s;
}

.nav-item:hover {
    color: var(--primarycolor);
}

.footer-hashen {
    position: absolute;
    bottom: 0;
    left: 45%;
    font-size: 13px;
    animation: transitionIn-Y-over 0.5s;
}

.section {
    background: #ffffff;
    padding: 40px 0;
    border-top: 1px solid #f1f1f1;
}

.section-title {
    color: #212529;
    font-size: 28px;
    font-weight: 600;
    margin: 0 0 10px 0;
    text-align: left;
}

.section-text {
    color: #6c757d;
    font-size: 16px;
    line-height: 26px;
    text-align: left;
    margin: 0 0 20px 0;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.section-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
}

.nav-item-active {
    color: var(--primarycolor);
}

/* Hero Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Slides are stacked absolutely and faded/translated for smooth animation */
.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.03);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
    z-index: 0;
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: filter 0.3s, transform 0.8s;
}

/* Fallback para imágenes que no cargan */
.hero-slider .slide img[src=""],
.hero-slider .slide img:not([src]) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.3;
}

.hero-slider .slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 2;
    width: 90%;
    max-width: 800px;
    opacity: 0;
    transform: translate(-50%, -45%);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slider .slide.active .slide-content {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.hero-slider .slide-content .heading-text {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 20px;
}

.hero-slider .slide-content .sub-text2 {
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 3;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 40px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.slider-prev:hover,
.slider-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.slider-dots .dot.active {
    background: white;
}

/* Services Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}


.service-card .service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: transform 0.3s;
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-card .service-content {
    padding: 20px;
}

.service-card .service-title {
    color: #212529;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.service-card .service-description {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Certifications Gallery */
.certifications-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cert-item {
    text-align: center;
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.cert-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cert-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.cert-item .cert-text {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    padding-top: 10px;
    border-top: 1px solid #e9ecef;
}

/* Responsive */
@media (max-width: 768px) {
    .heading-text {
        font-size: 32px;
        line-height: 42px;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }

    .hero-slider .slide img {
        height: 50vh;
    }

    .slider-prev,
    .slider-next {
        font-size: 30px;
        padding: 8px 15px;
    }
}

/* Enhanced Agenda Section */
#agenda {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

#agenda::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

#agenda .agenda-container {
    position: relative;
    z-index: 1;
}

#agenda .agenda-header {
    text-align: center;
    margin-bottom: 30px;
}

#agenda .agenda-header .section-title {
    font-size: 36px;
    font-weight: 700;
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

#agenda .agenda-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

#agenda .agenda-columns {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

#agenda .agenda-left {
    flex: 1 1 500px;
    padding: 30px;
    border-right: 1px solid #e9ecef;
}

#agenda .agenda-right {
    flex: 1 1 320px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* Badge showing count of appointments */
.fc .agenda-count {
    position: relative;
}

.fc .agenda-count>div {
    /* wrapper returned by eventContent */
    position: absolute !important;
    right: 6px;
    bottom: 6px;
    background: var(--primarycolor, #0d6efd);
    color: #fff;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Contact Card Styles */
.contact-card {
    height: 100%;
}

.contact-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #212529;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}

.contact-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--primarycolor, #0d6efd), transparent);
    border-radius: 3px;
}

/* Contact Form Styles */
.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primarycolor, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button[type="submit"] {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primarycolor, #0d6efd) 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

.contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

.contact-form button[type="submit"]:active {
    transform: translateY(0);
}

/* Contact Info Items */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid #f1f3f5;
}

.contact-item:hover {
    background: #f8f9fa;
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-item span:first-child {
    font-size: 20px;
}

.contact-item a {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.contact-item a:hover {
    color: var(--primarycolor, #0d6efd);
}

/* Responsive: stack columns on small screens */
@media (max-width: 768px) {
    #agenda .agenda-left,
    #agenda .agenda-right {
        padding: 30px 20px;
        border-right: none;
        flex: 1 1 100%;
    }

    #agenda .agenda-left {
        border-bottom: 1px solid #e9ecef;
    }

    #agenda .agenda-header .section-title {
        font-size: 28px;
    }
}

/* Social Media Buttons */
.social-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 16px;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.9;
}

.social-icons a:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    background: white;
    color: #495057 !important;
}

.social-btn:hover {
    transform: translateX(4px);
    border-color: #dee2e6;
    background: #f8f9fa;
}

.social-btn.whatsapp:hover {
    border-color: #25D366;
    background: rgba(37, 211, 102, 0.05);
    color: #25D366 !important;
}

.social-btn.facebook:hover {
    border-color: #1877F2;
    background: rgba(24, 119, 242, 0.05);
    color: #1877F2 !important;
}

.social-btn.instagram:hover {
    border-color: #E1306C;
    background: rgba(225, 48, 108, 0.05);
    color: #E1306C !important;
}

.social-icon {
    font-size: 1.2em;
}


/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.news-card .news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.news-card .news-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card .news-title {
    color: #212529;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.news-card .news-date {
    color: #6c757d;
    font-size: 13px;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.news-card .news-excerpt {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 15px 0;
    flex: 1;
}

.news-card .news-link {
    color: var(--primarycolor, #0d6efd);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
    align-self: flex-start;
}

.news-card .news-link:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.team-card .team-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.team-card .team-content {
    padding: 20px;
}

.team-card .team-name {
    color: #212529;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.team-card .team-role {
    color: var(--primarycolor, #0d6efd);
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 12px 0;
}

.team-card .team-bio {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .news-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-card .team-image {
        height: 240px;
    }
} 
/* Gallery Styles */ 
.gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 24px; 
    margin-top: 30px; 
} 
.gallery-card { 
    background: white; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
} 
.gallery-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 8px 25px rgba(0,0,0,0.1); 
} 
.gallery-image-wrapper { 
    position: relative; 
    overflow: hidden; 
    aspect-ratio: 4/3; 
} 
.gallery-image-wrapper img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
} 
.gallery-card:hover .gallery-image-wrapper img { 
    transform: scale(1.08); 
} 
.gallery-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.3); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    opacity: 0; 
    transition: opacity 0.3s ease; 
} 
.gallery-card:hover .gallery-overlay { 
    opacity: 1; 
} 
.gallery-icon { 
    font-size: 24px; 
    color: white; 
    background: rgba(255,255,255,0.2); 
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    backdrop-filter: blur(4px); 
} 
.gallery-caption { 
    padding: 15px; 
    border-top: 1px solid #f1f1f1; 
} 
.gallery-caption p { 
    margin: 0; 
    color: #495057; 
    font-size: 14px; 
    line-height: 1.5; 
    text-align: center; 
}