/* Custom CSS for A.U.R.A Ingeniería Landing Page */

:root {
    --primary-color: #0056b3;
    --secondary-color: #ffc107;
    --accent-color: #34495e;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Poppins", sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Navigation */
.navbar {
    background: rgba(0, 86, 179, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    background: var(--primary-color) !important;
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.navbar-brand .logo {
    height: 50px;
    width: auto;
    /*filter: brightness(0) invert(1);*/
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--secondary-color) !important;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background-color: var(--secondary-color);
    transition: var(--transition);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Hero Section with Parallax */
.hero-section {
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-parallax {
    height: 100%;
    position: relative;
}

.parallax-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.8) 0%, rgba(52, 73, 94, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    margin-top: 2rem;
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #e6ac00;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
    color: var(--text-dark);
}

.btn-outline-light {
    border: 2px solid white;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    margin-top: 2rem;
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: block;
}

.stat-text {
    font-size: 0.9rem;
    color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
}

.scroll-indicator a {
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
.section-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.text-center .section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* About Section */
.about-content {
    padding-right: 2rem;
}

.about-image-wrapper {
    position: relative;
    height: 500px;
}

.about-image-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    z-index: 2;
}

.about-image-small {
    position: absolute;
    width: 40%;
    z-index: 3;
    border: 5px solid white;
    box-shadow: var(--shadow);
}

.about-image-1 {
    bottom: 20%;
    right: 0;
}

.about-image-2 {
    bottom: 0;
    left: 20%;
}

.about-experience {
    position: absolute;
    top: 20%;
    right: 0;
    background: var(--secondary-color);
    color: var(--text-dark);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    z-index: 4;
    box-shadow: var(--shadow);
}

.experience-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
}

.experience-text {
    font-size: 0.9rem;
    font-weight: 600;
}

.about-tabs {
    margin-top: 2rem;
}

.nav-tabs {
    border-bottom: 2px solid #eee;
}

.nav-tabs .nav-link {
    border: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: var(--transition);
}

.nav-tabs .nav-link.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    background: transparent;
}

.tab-content {
    padding: 2rem 0;
}

.tab-content-inner {
    text-align: center;
}

.tab-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.values-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.values-list li {
    margin-bottom: 0.5rem;
}

.values-list li i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* Service Cards */
.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--secondary-color);
}

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h4 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-link:hover {
    color: var(--secondary-color);
}

/* Why Us Section */
.why-us-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon i {
    color: white;
    font-size: 1.2rem;
}

.feature-text h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.why-us-video {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3);
}

.video-play-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    color: var(--text-dark);
}

/* Project Gallery */
.project-filter {
    margin-bottom: 3rem;
}

.filter-btn {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    transition: var(--transition);
    margin: 0 0.5rem;
    border: 2px solid transparent;
}

.filter-btn.active,
.filter-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(0, 86, 179, 0.1);
}

.project-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 179, 0.9), rgba(255, 193, 7, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    text-align: center;
    color: white;
    padding: 2rem;
}

.project-info h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Testimonial Carousel */
.testimonial-carousel {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    text-align: center;
    margin: 0 1rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: var(--secondary-color);
    margin: 0 0.2rem;
}

.testimonial-content {
    margin-bottom: 2rem;
}

.testimonial-content i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-image {
    margin-right: 1rem;
}

.author-image img {
    width: 60px;
    height: 60px;
}

.author-info h6 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section */
#cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.cta-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.cta-wrapper h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-form-wrapper,
.contact-info-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-form-wrapper h4,
.contact-info-wrapper h4 {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.contact-info-list {
    margin-bottom: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-text h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-map {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Footer */
.footer {
    background: var(--text-dark) !important;
}

.footer .logo {
    height: 50px;
    /*filter: brightness(0) invert(1);*/
}

.social-links {
    margin-top: 1.5rem;
}

.social-link {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-link {
    color: #bdc3c7;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-link:hover {
    color: var(--secondary-color);
}

.newsletter-form .input-group {
    margin-top: 1rem;
}

.newsletter-form .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.newsletter-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #e6ac00;
    transform: translateY(-3px);
}

/* Swiper Customization */
.swiper-pagination-bullet {
    background: white;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--secondary-color);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .about-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .about-image-wrapper {
        height: 300px;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .service-card,
    .testimonial-card {
        padding: 2rem;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto 1rem;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
    }

    .contact-icon {
        margin: 0 auto 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .contact-form-wrapper,
    .contact-info-wrapper {
        padding: 1.5rem;
    }

    .cta-wrapper {
        padding: 2rem;
    }
}

/* Loading Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Lightbox Customization */
.lb-data .lb-caption {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.lb-data .lb-number {
    color: var(--secondary-color);
}
