﻿/* ================== BANNER CORPORATIVO - ALTURA Y CENTRADO ================== */
.corporate-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/images/Banner1.png') center/cover no-repeat;
    color: white;
    padding: 4rem 0;
    text-align: center;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

@media (max-height: 800px) and (min-width: 992px) {
    .corporate-banner {
        min-height: 320px;
        padding: 2.5rem 0;
    }
}

@media (max-width: 768px) {
    .corporate-banner {
        min-height: 300px;
        padding: 2.5rem 1rem;
    }

    .corporate-title {
        font-size: 2.2rem;
    }

    .corporate-subtitle {
        font-size: 1.4rem;
    }

    .corporate-description {
        font-size: 1rem;
        max-width: 600px;
    }
}

/* ================== HEADER PRINCIPAL - LAYOUT AJUSTADO Y CENTRADO ================== */
.top-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 0;
    max-width: 1600px;
    margin: 0 auto;
    align-items: stretch;
}

/* --- ESCRITORIO (≥1200px): Alineación perfecta con márgenes idénticos a las tarjetas inferiores --- */
@media (min-width: 1200px) {
    .top-section {
        gap: 0.5rem; /* Reducido para más cercanía */
        max-width: 1350px; /* Igual que .features */
        margin: 0 auto; /* Centrado como las tarjetas */
        padding: 0; /* Evita duplicar padding */
    }

    .modern-menu-container {
        flex: 0 0 18%;
        min-width: 180px;
    }

    .carousel-container {
        flex: 0 0 49%; /* Carrusel más estrecho para dejar espacio */
        min-width: 400px;
    }

    .image-panel {
        flex: 0 0 18%;
        min-width: 180px;
    }

    /* Altura aumentada en 50% */
    .modern-menu-container,
    .carousel-container,
    .image-panel {
        min-height: 420px;
        max-height: 420px;
    }
}

/* --- TABLET / iPad (768px – 1199px): 3 bloques en fila, sin salto --- */
@media (min-width: 768px) and (max-width: 1199px) {
    .top-section {
        gap: 0.8rem; /* Reducido de 1.5rem para ahorrar espacio */
        align-items: stretch;
        max-width: 1400px; /* Igual que .features */
        margin: 0 auto;
        padding: 0;
    }

    .modern-menu-container {
        flex: 0 0 22%;
        min-width: 170px;
        max-width: 190px;
    }

    .carousel-container {
        flex: 0 0 56%;
        min-width: 380px;
    }

    .image-panel {
        flex: 0 0 22%;
        min-width: 170px;
        max-width: 190px;
    }

    /* Altura uniforme y visualmente equilibrada */
    .modern-menu-container,
    .carousel-container,
    .image-panel {
        min-height: 300px;
        max-height: 300px;
    }
}

/* --- MÓVIL (<768px): Apilado vertical --- */
@media (max-width: 767px) {
    .top-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .modern-menu-container,
    .carousel-container,
    .image-panel {
        width: 100%;
        max-width: 100%;
        min-height: auto !important;
        max-height: none;
    }

    .modern-menu-container {
        padding: 1rem;
    }

    .modern-menu a {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
        gap: 0.75rem;
    }

    .modern-menu i {
        width: 24px;
        height: 24px;
    }
}

/* ================== MENÚ DE BOTONES - BOTONES CENTRADOS VERTICALMENTE ================== */
.modern-menu-container {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    justify-content: center; /* ✅ Centrado vertical de botones */
    align-items: stretch;
}

.modern-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
}

    .modern-menu a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.9rem 1.1rem;
        background: white;
        border-radius: 12px;
        text-decoration: none;
        color: #2c3e50;
        font-weight: 600;
        font-size: 1.05rem;
        transition: all 0.35s ease;
        border: 1px solid #e0e0e0;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        text-align: center;
    }

        .modern-menu a:hover {
            background: #007bff;
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 8px 16px rgba(0, 123, 255, 0.25);
            border-color: #0056b3;
        }

    .modern-menu i {
        width: 28px;
        height: 28px;
        background-color: #007bff;
        mask-size: contain;
        mask-repeat: no-repeat;
        mask-position: center;
        -webkit-mask-size: contain;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        transition: all 0.3s ease;
    }

    .modern-menu a:hover i {
        background-color: white;
        transform: scale(1.1);
    }

/* ================== CARRUSEL - PROPORCIÓN Y AJUSTE ================== */
.carousel-container {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.swiper {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 1.2rem;
        color: white;
        font-weight: bold;
    }

/* ================== PANEL DE IMAGEN LATERAL - IMAGEN CENTRADA Y AJUSTADA ================== */
.image-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    background: #fff;
}

    .image-panel img {
        max-width: 96%;
        max-height: 96%;
        object-fit: contain;
        border-radius: 12px;
        transition: transform 0.3s ease;
        display: block;
        margin: 0 auto; /* Centrada horizontalmente */
    }

        .image-panel img:hover {
            transform: scale(1.02);
        }

/* ================== SECCIÓN DE CARACTERÍSTICAS ================== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 3rem 1rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .features {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
    }
}

@media (min-width: 992px) {
    .features {
        grid-template-columns: repeat(4, 1fr); /* 4 columnas en escritorio */
    }
}

.feature-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    }

    .feature-card h3 {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        padding: 1.25rem;
        background: #007bff;
        color: white;
        text-align: center;
        font-size: 1.2rem;
    }

    .feature-card img {
        width: 100%;
        height: 180px;
        object-fit: cover;
    }

    .feature-card p {
        padding: 1.25rem;
        font-size: 0.98rem;
        color: #555;
        line-height: 1.7;
        flex-grow: 1;
    }

/* ================== FOOTER ================== */
.site-footer {
    background: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.9rem;
    margin-top: 2rem;
}

    .site-footer .container {
        max-width: 1200px;
        margin: 0 auto;
    }
