/********** Template CSS **********/
:root {
    --primary: #015FC9;
    --secondary: #F7B731;
    --light: #F6F7FC;
    --dark: #15233C;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.float{
	position:fixed;
	width:60px;
	height:60px;
	bottom:40px;
	right:40px;
	background-color:#25D366;
	color:#FFF;
	border-radius:50px;
	text-align:center;
  font-size:30px;
	box-shadow: 2px 2px 3px #999;
  z-index:100;
}

.my-float{
	margin-top:16px;
}

.float-cta{
	position:fixed;
	bottom:40px;
	left:40px;
	background-color:#F7B731;
	color:#000;
	border-radius:50px;
	text-align:center;
	font-size:13px;
	font-weight:700;
	line-height:1.3;
	padding:12px 18px;
	box-shadow: 2px 2px 3px #999;
	z-index:100;
	text-decoration:none;
	display:inline-block;
}

.float-cta:hover{
	background-color:#e5a820;
	color:#000;
	text-decoration:none;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-outline-primary:hover,
.btn.btn-secondary,
.btn.btn-outline-secondary:hover {
    color: #FFFFFF;
}

.btn.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}


/*** Navbar ***/
.navbar.sticky-top {
    top: 0;
    background-color: #ffffff;
    transition: background-color .4s ease, box-shadow .4s ease;
}

.navbar.sticky-top.navbar-transparent {
    background-color: transparent !important;
    box-shadow: none !important;
}

.navbar.sticky-top.navbar-transparent .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.navbar.sticky-top.navbar-transparent .navbar-nav .nav-link:hover,
.navbar.sticky-top.navbar-transparent .navbar-nav .nav-link.active {
    color: var(--secondary);
}

.navbar .navbar-brand img {
    max-height: 60px;
}

.navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 10px 0;
    color: #696E77;
    font-weight: 500;
    outline: none;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    color: var(--secondary);
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

@media (max-width: 991.98px) {
    .navbar .navbar-brand img {
        max-height: 45px;
    }

    .navbar .navbar-nav {
        margin-top: 20px;
        margin-bottom: 15px;
    }

    .navbar .nav-item .dropdown-menu {
        padding-left: 30px;
    }
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        right: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    text-align: start;
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 15%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    border: 15px solid var(--primary);
    border-radius: 50px;
}

@media (max-width: 768px) {
    #header-carousel .carousel-item {
        position: relative;
        min-height: 450px;
    }
    
    #header-carousel .carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.page-header {
    background: url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.page-header .breadcrumb-item,
.page-header .breadcrumb-item a {
    font-weight: 500;
}

.page-header .breadcrumb-item a,
.page-header .breadcrumb-item+.breadcrumb-item::before {
    color: #696E77;
}

.page-header .breadcrumb-item a:hover,
.page-header .breadcrumb-item.active {
    color: var(--primary);
}


/*** Section Title Underlines ***/
#about_ent .display-6::after,
#beneficios .display-6::after,
#servicios .display-6::after,
#testimonios .display-6::after,
.facts-text h1::after,
.footer h5.text-light::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--secondary);
    margin-top: 12px;
    border-radius: 2px;
}

#servicios .display-6::after,
#testimonios .display-6::after {
    margin-left: auto;
    margin-right: auto;
}


/*** Facts ***/
@media (min-width: 992px) {
    .container.facts {
        max-width: 100% !important;
    }

    .container.facts .facts-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.facts .facts-counter {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .container.facts .facts-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }

    .container.facts .facts-counter  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .container.facts .facts-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }

    .container.facts .facts-counter  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}

.container.facts .facts-text {
    background: linear-gradient(rgba(1, 95, 201, .9), rgba(1, 95, 201, .9)), url(../img/carousel-1.jpg) center right no-repeat;
    background-size: cover;
}

.container.facts .facts-counter {
    background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, .9)), url(../img/carousel-2.jpg) center right no-repeat;
    background-size: cover;
}

.container.facts .facts-text .h-100,
.container.facts .facts-counter .h-100 {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.facts-counter .display-5 {
    color: var(--secondary);
}


/*** Service ***/
.service-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07), inset 4px 0 0 var(--primary);
    transition: box-shadow .3s ease;
}

.service-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, .12), inset 4px 0 0 var(--secondary);
}

.service-item .service-icon {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
}

.service-item .service-icon img {
    max-width: 60px;
    max-height: 60px;
}

.service-item a.btn {
    color: var(--primary);
}

.service-item a.btn:hover {
    color: #FFFFFF;
    background: var(--secondary);
    border-color: var(--secondary);
}


/*** Appointment ***/
.appointment {
    background: linear-gradient(rgba(1, 95, 201, .9), rgba(1, 95, 201, .9)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}


/*** Team ***/
.team-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
}

.team-text {
    position: absolute;
    width: 100%;
    left: 0;
    bottom: -50px;
    opacity: 0;
    transition: .5s;
}

.team-item:hover .team-text {
    bottom: 0;
    opacity: 1;
}

.team-item a.btn {
    color: var(--primary);
}

.team-item a.btn:hover {
    color: #FFFFFF;
    background: var(--primary);
    border-color: var(--primary);
}


/*** Testimonial Section (Dark Grid) ***/
.testimonial-section {
    background-color: var(--dark);
}

.testi-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 28px 24px 22px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, background .3s ease, border-color .3s ease;
}

.testi-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--secondary);
    transform: translateY(-4px);
}

.testi-quote {
    font-family: Georgia, serif;
    font-size: 72px;
    line-height: 0.6;
    color: var(--secondary);
    opacity: 0.5;
    margin-bottom: 12px;
    user-select: none;
}

.testi-stars {
    color: var(--secondary);
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.testi-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.65;
    flex-grow: 1;
    margin-bottom: 20px;
}

.testi-footer {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}

.testi-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.testi-footer strong {
    display: block;
    color: #ffffff;
    font-size: 0.95rem;
}

.testi-badge {
    display: inline-block;
    margin-top: 4px;
    background: rgba(247, 183, 49, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(247, 183, 49, 0.3);
    border-radius: 20px;
    font-size: 11px;
    padding: 2px 10px;
    font-weight: 500;
}

/* Keep legacy carousel styles for testimonial.html */
.animated.pulse {
    animation-duration: 1.5s;
}

.testimonial-left,
.testimonial-right {
    position: relative;
}

.testimonial-left img,
.testimonial-right img {
    position: absolute;
    padding: 5px;
    border: 1px dashed var(--primary);
    border-radius: 10px;
}

.testimonial-left img:nth-child(1),
.testimonial-right img:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.testimonial-left img:nth-child(2),
.testimonial-right img:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.testimonial-left img:nth-child(3),
.testimonial-right img:nth-child(1) {
    width: 50px;
    height: 50px;
    bottom: 10%;
    right: 10%;
}

.testimonial-carousel .owl-item img {
    width: 100px;
    height: 100px;
}

.testimonial-carousel .owl-nav {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    margin: 0 5px;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 10px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}


/*** Footer ***/
.footer {
    color: #A7A8B4;
    border-top: 4px solid var(--secondary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #A7A8B4;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #A7A8B4;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    color: var(--light);
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .btn.btn-square {
    color: #A7A8B4;
    border: 1px solid#A7A8B4;
}

.footer .btn.btn-square:hover {
    color: var(--secondary);
    border-color: var(--light);
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--secondary);
}

.footer .copyright a:hover {
    color: #FFFFFF;
}


/*** WhatsApp Pulse Animation ***/
@keyframes whatsapp-pulse {
    0%   { box-shadow: 2px 2px 3px #999, 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70%  { box-shadow: 2px 2px 3px #999, 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 2px 2px 3px #999, 0 0 0 0 rgba(37, 211, 102, 0); }
}

.float {
    animation: whatsapp-pulse 2s infinite;
}


/*** Responsive Floating Buttons ***/
@media (max-width: 576px) {
    .float {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 16px;
        font-size: 22px;
    }

    .my-float {
        margin-top: 12px;
    }

    .float-cta {
        bottom: 20px;
        left: 16px;
        font-size: 11px;
        padding: 9px 13px;
        max-width: 130px;
        line-height: 1.2;
    }

    @keyframes whatsapp-pulse {
        70% { box-shadow: 2px 2px 3px #999, 0 0 0 12px rgba(37, 211, 102, 0); }
    }
}

/*** Blog ***/

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 9999;
    transition: width .1s linear;
}

/* Blog Hero */
.blog-hero {
    background: linear-gradient(135deg, var(--dark) 60%, var(--primary) 100%);
    padding: 80px 0 60px;
}

.blog-hero h1 { color: #ffffff; }
.blog-hero p  { color: rgba(255,255,255,0.7); }

/* Category colors */
.cat-claims    { --cat-color: #e74c3c; }
.cat-vida      { --cat-color: #015FC9; }
.cat-auto      { --cat-color: #25D366; }
.cat-supervisa { --cat-color: #F7B731; }

/* Featured card */
.blog-featured {
    border-radius: 16px;
    overflow: hidden;
    background: var(--light);
    box-shadow: 0 8px 40px rgba(0,0,0,.10);
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}

.blog-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(0,0,0,.15);
}

.blog-featured-icon {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cat-color, var(--primary)), rgba(0,0,0,0.4));
    font-size: 90px;
    color: rgba(255,255,255,0.9);
}

.blog-featured-body {
    padding: 32px 36px 36px;
}

/* Regular blog card */
.blog-card {
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .3s ease, box-shadow .3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,.13);
}

.blog-card-icon {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255,255,255,0.9);
    background: linear-gradient(135deg, var(--cat-color, var(--primary)), rgba(0,0,0,0.3));
}

.blog-card-body {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-body p {
    flex-grow: 1;
    color: #555;
    font-size: 0.93rem;
    line-height: 1.6;
}

/* Category badge */
.cat-badge {
    display: inline-block;
    background: var(--cat-color, var(--primary));
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.cat-badge.dark-text { color: #15233C; }

/* Reading time */
.reading-meta {
    font-size: 12px;
    color: #999;
    margin-bottom: 10px;
}

.reading-meta i { margin-right: 4px; }

/* Blog post page */
.blog-post-header {
    background: linear-gradient(135deg, var(--dark) 60%, var(--primary) 100%);
    padding: 80px 0 60px;
    color: #fff;
}

.blog-post-header .cat-badge { margin-bottom: 20px; }

.blog-post-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: #333;
}

.blog-post-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary);
}

.blog-post-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
}

.blog-post-content ul, 
.blog-post-content ol {
    padding-left: 1.4rem;
    margin-bottom: 1.2rem;
}

.blog-post-content li { margin-bottom: 6px; }

.blog-post-content .highlight-box {
    background: #EEF5FF;
    border-left: 4px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.97rem;
}

.blog-post-content .warning-box {
    background: #FFF8E7;
    border-left: 4px solid var(--secondary);
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.97rem;
}

/* Sidebar */
.blog-sidebar-inner {
    position: sticky;
    top: 90px;
}

.sidebar-cta-card {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    border-radius: 14px;
    padding: 28px 24px;
    color: #fff;
    text-align: center;
    margin-bottom: 24px;
}

.sidebar-cta-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    margin-bottom: 14px;
}

.sidebar-cta-card h5 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.sidebar-cta-card p  { color: rgba(255,255,255,0.75); font-size: 0.85rem; margin-bottom: 18px; }

.sidebar-related { background: var(--light); border-radius: 14px; padding: 22px; }
.sidebar-related h6 { font-family: 'Poppins', sans-serif; font-weight: 700; color: var(--dark); margin-bottom: 14px; font-size: 0.95rem; }

.related-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.07);
    text-decoration: none;
    color: #444;
    font-size: 0.88rem;
    transition: color .2s;
}

.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--primary); }

.related-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
    background: var(--cat-color, var(--primary));
}

/* Inline CTA box inside post */
.post-cta-box {
    background: linear-gradient(135deg, var(--dark), var(--primary));
    border-radius: 14px;
    padding: 32px;
    text-align: center;
    margin: 40px 0;
    color: #fff;
}

.post-cta-box h4 { color: #fff; margin-bottom: 10px; }
.post-cta-box p  { color: rgba(255,255,255,0.8); margin-bottom: 20px; font-size: 0.95rem; }

/* Author box */
.author-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--light);
    border-radius: 14px;
    padding: 24px;
    margin-top: 40px;
}

.author-box img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid var(--secondary);
    flex-shrink: 0;
}

.author-box h6 { font-family: 'Poppins', sans-serif; font-weight: 700; margin-bottom: 2px; color: var(--dark); }
.author-box small { color: #888; display: block; margin-bottom: 6px; font-size: 0.8rem; }
.author-box p { color: #555; font-size: 0.88rem; margin: 0; }

/* FAQ accordion in post */
.faq-post .accordion-button {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--dark);
    background: var(--light);
}

.faq-post .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: #EEF5FF;
    box-shadow: none;
}

.faq-post .accordion-button::after {
    filter: none;
}

.faq-post .accordion-body {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.7;
    background: #fff;
}
