@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #0073E6; /* Modern Blue */
    --secondary-color: #1a1a1a; /* Negro */
    --text-dark: #2d2d2d;
    --text-light: #ffffff;
    --accent-orange: #f37021;
    --bg-airy: #fdfdfd;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-airy);
}

/* Airy Spacing */
section {
    padding: 100px 0; /* More "airy" padding */
}

h1, h2, h3, h4, .navbar-brand {
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Header / Top Bar */
.top-bar {
    background-color: var(--secondary-color);
    font-size: 0.9rem;
    padding: 12px 0;
}

.top-bar a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
}

.top-bar a:hover {
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    padding: 20px 0;
    transition: all 0.3s ease;
}

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

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin: 0 10px;
}

/* Hero Carousel */
.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 80vh; /* Aumentado de 70vh a 80vh para más impacto */
    display: flex;
}

.hero-slide .container {
    padding-top: 60px; /* Margen para no chocar con el navbar */
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Fix for background image and fade transition */
.carousel-fade .carousel-item {
    opacity: 0;
    transition-duration: 0.8s;
    transition-property: opacity;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

.hero-slide .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-slide .container {
    z-index: 2;
}

/* Carousel Content Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }

/* Services / Cards */
.service-card {
    border: none;
    border-radius: 12px;
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    padding: 40px 30px;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #005bb5;
    border-color: #005bb5;
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white !important;
}

.btn-warning:hover {
    background-color: #d65c1a;
    border-color: #d65c1a;
}

/* Header line for titles */
.header-line {
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 25px;
    border-radius: 2px;
}

/* Experience Section */
.experience-section {
    background-color: var(--primary-color) !important;
}

/* Footer Improvements */
footer {
    background-color: var(--secondary-color) !important;
    padding-top: 80px !important;
}

footer h5 {
    color: var(--primary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

footer .text-white-50 {
    font-weight: 300;
    line-height: 1.8;
}

/* Partner Logos */
.partner-logo {
    max-height: 60px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Certificaciones Blocks */
.cert-image-container img {
    transition: transform 0.5s ease;
}

.cert-image-container:hover img {
    transform: scale(1.05);
}

.cert-carousel-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cert-carousel-logo:hover {
    transform: scale(1.1);
}

#certLogosCarousel .carousel-indicators [data-bs-target] {
    background-color: var(--primary-color);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
