/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url("../../public/images/TrasladoEIntercambio2.jpg");
    background-size: cover;
    background-position: 60% 0%;
}
 
.hero-background {
    width: 100%;
    min-height: 80vh;
    background-color: rgba(0, 0, 0, 0.6);
    display: grid;
    place-items: center;
}

.hero-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: auto;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: center;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-image .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.hero-image:hover .image-overlay {
    opacity: 1;
}

.hero-image .image-overlay {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.hero-floating-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(230, 0, 18, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 2rem;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 1px;
}

.observer-hero {
    opacity: 0;
    transform: translateX(-80px);
}

.observer-hero-show {
    animation: show-hero ease-in-out 0.5s forwards;
}

@keyframes show-hero {
    0% {
        opacity: 0;
        transform: translateX(-80px);
    }
    100% {
        opacity: 1;
        transform: translateX(0px);
    }
}

@media (max-width: 768px) {
  .about-hero h1, .services-hero h1, .products-hero h1, .all-gallery h2, .projects-hero h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  .about-hero p, .services-hero p, .products-hero p, .all-gallery .section-header p, .projects-hero p {
    font-size: 1.1rem !important;
  }
}

