/* Variables & Setup */
:root {
    --primary-color: #e87817;
    --primary-hover: #fa8a2e;
    --secondary-color: #2c3e50;
    --light-bg: #f8f9fa;
    --dark-text: #333333;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--dark-text);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Navbar */
.navbar-custom {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 8px 15px;
}

.navbar-brand img {
    height: 75px;
    transition: transform 0.3s;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 600;
    color: var(--secondary-color) !important;
    font-size: 1.1rem;
    padding: 0 20px !important;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link:hover::after {
    width: 70%;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: url('../IMAGENES/wallpaper.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(232, 120, 23, 0.8));
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    /* Ensure it does not exceed container or max-width */
    margin-bottom: 30px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

@media (max-width: 576px) {
    .hero-logo {
        max-width: 80%;
        /* Reduce size on mobile to prevent overflow */
        height: auto;
    }
}

.btn-custom {
    background-color: var(--primary-color);
    border: none;
    color: white;
    padding: 12px 35px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(232, 120, 23, 0.3);
}

.btn-custom:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 120, 23, 0.4);
    color: white;
}

/* Services / Info Cards */
.feature-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Team Section */
.team-member {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-5px);
}

.member-info {
    padding: 25px;
}

.member-role {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.member-contact {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Gallery (Carousel) */
.carousel-custom {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.carousel-item {
    height: 500px;
}

.carousel-item img {
    height: 100%;
    object-fit: cover;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 6%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    top: 50%;
    transform: translateY(-50%);
    height: 80px;
    opacity: 0.7;
    margin: 0 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--primary-color);
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
}

/* Contact Custom */
.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.form-control {
    border: 2px solid #eee;
    padding: 12px 20px;
    border-radius: 10px;
    transition: all 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(232, 120, 23, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 50px 0 20px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--primary-color);
}

hr.light {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-section {
        height: auto;
        padding: 150px 0 100px;
    }

    .carousel-item {
        height: 300px;
    }


    /* Ensure swipe works better by not blocking it */
    .carousel-inner {
        touch-action: pan-y;
    }
}

@media (max-width: 991px) {
    .navbar-nav .nav-item {
        margin-bottom: 20px;
        /* Increased spacing for mobile menu items */
    }

    .navbar-collapse {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}