/* Hero Section */
.hero-section {
    position: relative;
    height: 90vh;
    background-image: url('../img/carrusel/imageninicio.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0, 86, 179, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
}

.hero-content h4 {
    color: var(--accent-color);
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Animaciones del Hero */
.animated-text {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 1s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-images {
    position: relative;
    height: 500px;
}

.img-box {
    position: absolute;
    width: 70%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.img-box img {
    width: 100%;
    height: auto;
    transition: transform 0.5s;
}

.img-box:hover img {
    transform: scale(1.05);
}

.img-box.offset {
    bottom: 0;
    right: 0;
    border: 5px solid var(--white);
}

.section-subtitle {
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.features-list {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Services Section */
.services-section {
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    top: 0;
}

.service-card:hover {
    top: -10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 25px;
    position: relative;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    position: absolute;
    top: -30px;
    right: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.service-content h3 {
    margin-top: 10px;
    color: var(--secondary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    margin-bottom: 10px;
}

.cta-content p {
    margin-bottom: 30px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        height: 300px;
        margin-bottom: 30px;
    }
}
