/* Main CSS file */

/* Add your custom styles here */
:root {
    --color-primary-dark: #212529;
    /* Near Black/Dark Gray */
    --color-accent-blue: #187173;
    /* Theme Blue */
    --color-accent-green: #159092;
    /* Light Green for highlights */
    --color-text-body: #555555;
    --color-bg-light: #f8f9fa;
    --color-bg-footer: #f9f9f9;
    /* Light Gray Footer */
}

/* General Typography */
body {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text-body);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary-dark);
    font-weight: 700;
}

/* Utilities */
.section-padding {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

/* Global Override for Bootstrap Primary Text */
.text-primary {
    color: var(--color-accent-blue) !important;
}

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

.text-justify {
    text-align: justify;
}


/* Navbar */
.navbar {
    transition: all 0.5s;
    z-index: 997;
    padding: 15px 0;
}

.navbar .nav-link {
    color: var(--color-primary-dark);
    font-weight: 600;
    font-size: 15px;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

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

.navbar-logo {
    max-height: 90px;
    height: auto;
    width: auto;
    transition: all 0.3s ease;
}

.footer-logo {
    max-width: 150px;
    height: auto;
    width: auto;
    transition: all 0.3s ease;
}

/* Custom Buttons */
.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus {
    background-color: var(--color-accent-blue) !important;
    border-color: var(--color-accent-blue) !important;
    color: #fff;
}

.btn-outline-primary {
    color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

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

.btn-citar {
    border-radius: 50px;
    /* Modern rounded borders */
    padding: 10px 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(19, 109, 212, 0.3);
    transition: 0.3s;
}

.btn-citar:hover {
    transform: translateY(-3px);
    /* Lift effect on hover */
}

/* Hero Section */
#hero {
    width: 100%;
    min-height: 90vh;
    background: #fff;
    /* Optional: Light background image */
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

#hero h1 {
    font-size: 48px;
    line-height: 1.2;
}

/* 
   VARIANT: Full Width Background Hero
   Usage: Add class "hero-bg" to the <section id="hero"> 
   and add style="background-image: url(...)" inline
*/
#hero.hero-bg {
    background-color: var(--color-primary-dark); /* Fallback for missing image */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    /* Default text color for dark backgrounds */
}

/* Dark Overlay for Hero Background */
#hero.hero-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    /* Darkened overlay for white text */
    z-index: 1;
}

#hero.hero-bg .container {
    position: relative;
    z-index: 2;
    /* Bring content above overlay */
}

/* Text Colors for Hero variants */
#hero.hero-bg h1 {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hero Tags */
.hero-tag {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hero-tag:hover {
    background: var(--color-accent-blue);
    border-color: var(--color-accent-blue);
    color: white;
    transform: translateY(-2px);
}

/* Company Cards Stylings */
.company-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.company-card-img-container {
    height: 180px;
    overflow: hidden;
}

.company-card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.company-card:hover .company-card-img-container img {
    transform: scale(1.05);
}




.badge-premium {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    /* Gold Gradient */
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.4);
    /* Gold shadow */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Shimmer Animation */
.badge-premium::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    transform: skewX(-20deg);
}

.company-card:hover .badge-premium::after {
    animation: shimmer 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes shimmer {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}



.badge-premium-inline {
    background: linear-gradient(135deg, #FFD700 0%, #B8860B 100%);
    color: white !important;
    font-size: 0.5em;
    /* Relative to the H1 */
    font-weight: 700;
    vertical-align: middle;
    padding: 0.3em 0.6em;
    border-radius: 50rem;
    box-shadow: 0 4px 10px rgba(184, 134, 11, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    margin-left: 10px;
    position: relative;
    overflow: hidden;
}

/* Shimmer for inline too (optional, maybe on hover of the badge itself) */
.badge-premium-inline:hover::after {
    animation: shimmer 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-premium-inline::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.8),
            transparent);
    transform: skewX(-20deg);
}

.section-title h1 {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.section-padding {
    padding: 80px 0;
}

/* Company Detail Page Styles */
.company-detail-hero {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #000000 100%);
    color: white;
    padding: 100px 0 60px;
    margin-bottom: 0;
}

.company-detail-hero .breadcrumb-item,
.company-detail-hero .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

.company-detail-hero .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    border: 1px solid #eee;
}

.review-card .bi-star-fill,
.company-rating .bi-star-fill,
.company-rating .bi-star-half,
.company-rating .bi-star {
    color: #ffc107 !important;
    /* Force Yellow for all stars */
}

.feature-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(24, 113, 115, 0.1);
    color: var(--color-accent-blue);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.contact-info-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
}

.sticky-top-offset {
    top: 100px;
}

#hero.hero-bg p {
    color: #cccccc;
    /* Light gray for description on dark bg */
    text-shadow: none;
}

/* Services */
.service-box {
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
}

.service-box:hover {
    border-color: var(--color-accent-blue);
    transform: translateY(-10px);
}

.service-box .icon {
    margin-bottom: 20px;
    color: var(--color-accent-blue);
}

.service-box h3,
.company-card h4,
.company-card h5 {
    color: var(--color-accent-blue);
    transition: color 0.3s ease;
}

.company-card:hover h4,
.company-card:hover h5 {
    color: var(--color-accent-green);
}

/* Contact */
.info-wrap {
    background-color: var(--color-bg-footer) !important;
    /* Gray Background */
}

.info-wrap h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}

.info-wrap p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.php-email-form .form-control {
    border-radius: 0;
    box-shadow: none;
    font-size: 14px;
    padding: 12px 15px;
}

.php-email-form .form-control:focus {
    border-color: var(--color-accent-blue);
}

/* Footer Minimalist */
.footer-dark {
    background-color: var(--color-bg-footer);
    color: var(--color-text-body);
    padding-top: 60px;
    padding-bottom: 30px;
    border-top: 1px solid #eee;
}

.footer-dark h5,
.footer-dark h6 {
    color: var(--color-primary-dark);
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-dark a {
    color: var(--color-text-body);
    transition: all 0.3s ease;
}

.footer-dark a:hover {
    color: var(--color-accent-blue);
    padding-left: 5px;
}

.footer-dark .bi {
    font-size: 1.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 40px;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Testimonials */
.testimonial-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.testimonial-card .bi-quote {
    opacity: 0.3;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}