/* Estilos para la sección de Estrategia */
.estrategia {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
    padding: 110px 20px 40px; /* Aumentado el padding superior para evitar solapamiento con el header */
    position: relative; /* Para controlar mejor el posicionamiento */
    z-index: 1; /* Asegura que esté por debajo del header */
}

.estrategia-left-column {
    flex: 1;
    padding-right: 20px;
}

.estrategia-right-column {
    flex: 1.5;
}

.estrategia-section-header {
    margin-bottom: 30px;
}

.estrategia h1 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
}

.estrategia p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 14px;
}

.estrategia-image-container {
    width: 100%;
    height: 770px;
    overflow: hidden;
    position: relative;
    margin-top: 30px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.estrategia-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.estrategia-image-container:hover img {
    transform: scale(1.1);
}

.estrategia-section {
    margin-bottom: 40px;
    border-left: 1px solid #e0e0e0;
    padding-left: 20px;
}

.estrategia-section-number {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

.estrategia-section-title {
    color: #000;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

.estrategia-section-content {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.estrategia-btn-container {
    margin-top: 40px;
    text-align: center;
}

.estrategia-btn {
    background-color: #fff;
    border: 1px solid #ddd;
    color: #000;
    padding: 12px 25px;
    text-align: center;
    display: inline-block;
    font-size: 14px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.estrategia-btn:hover {
    background-color: #f5f5f5;
    border-color: #000;
}

/*META SECTION*/

.meta-section {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.meta-left-column {
    flex: 1;
    padding-right: 60px;
    display: flex;
    align-items: center;
}

.meta-right-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.meta-title {
    font-size: 42px;
    font-weight: 500;
    line-height: 1.2;
    align-items: center;
    color: #333;
    margin-bottom: 40px;
}

.meta-title span {
    color: #1a5276;
}

.meta-card {
    margin-bottom: 40px;
}

.meta-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.meta-card-line {
    width: 40px;
    height: 2px;
    background-color: #ccc;
    margin-right: 15px;
}

.meta-card-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    color: #333;
}

.meta-card-content {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    height: 600px;
}

.slider-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.slider-slide.active {
    opacity: 1;
}

.slider-logo {
    display: flex;
    flex-direction: row; /* Cambiado de column a row */
    align-items: center;
    margin-bottom: 20px;
}

.slider-logo-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.slider-line {
    height: 3px;
    background-color: white;
    margin: 8px 0;
}

.slider-line.line-1 {
    width: 180px;
}

.slider-line.line-2 {
    width: 250px;
}

.slider-line.line-3 {
    width: 160px;
}

.slider-vertical-line {
    width: 3px;
    height: 80px;
    background-color: white;
    margin-left: 20px;
}

.slider-title {
    color: white;
    text-align: center;
    text-transform: uppercase;
    margin-top: 20px;
}

.slider-title h1 {
    font-size: 52px;
    font-weight: 600;
    letter-spacing: 6px;
}

.slider-title h2 {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 8px;
    margin-top: 10px;
}

.cta-button {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: #1a1a1a;
    color: white;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #333;
}

.arrow {
    margin-left: 20px;
    font-size: 20px;
}


.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
}


/*servicios*/
.services-section {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

/*.services-container {
    max-width: 1200px;
    margin: 0 auto;
}*/
.services-container {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px 40px;
}

.section-title {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 25px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #1a1a1a;
    margin: 20px auto 0;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 120px; /* Efecto hover en la línea */
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-weight: 300;
    letter-spacing: 1.5px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 20px;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Ajustado para mejor proporción */
    gap: 15px;
}

.service-card {
    position: relative;
    height: 140px;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    color: #333;
    display: flex; /* Añadido para mejor centrado */
    justify-content: center; /* Centrado horizontal */
    align-items: center; /* Centrado vertical */
}

.service-card:hover {
    transform: translateY(-5px);
}

.card-content {
    padding: 15px;
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
    text-align: center; /* Centrado del texto */
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrado horizontal de elementos flex */
    justify-content: center; /* Centrado vertical */
    position: relative;
    z-index: 2; /* Asegura que el contenido esté sobre el overlay */
}

.icon {
    width: 30px; /* Tamaño restaurado */
    height: 40px; /* Tamaño restaurado */
    margin-bottom: 10px; /* Espaciado aumentado */
}

.service-card h4 {
    font-size: 1.2rem; /* Tamaño original restaurado */
    line-height: 1.4;
    margin: 0;
    padding: 0 10px; /* Evita que el texto toque los bordes */
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(1.05);
}

.service-card:hover .card-image {
    opacity: 1;
    transform: scale(1);
}

.service-card:hover .card-content {
    background: rgba(255, 255, 255, 0.7);
}
.service-card:hover {
    color: white; /* Cambia color de texto a blanco */
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Capa oscura semi-transparente */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}
.service-card:hover::before {
    opacity: 1; /* Muestra el overlay oscuro */
}
.service-card:hover .card-content {
    background: transparent; /* Elimina el fondo blanco anterior */
}
/* Color blanco para iconos */
.service-card:hover .icon {
    filter: brightness(0) invert(1); /* Convierte iconos a blanco */
}

/* Color blanco para texto */
.service-card:hover h4 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); /* Mejor contraste */
}

/* Ajuste de imagen de fondo */
.service-card:hover .card-image {
    opacity: 0.8; /* Reduce luminosidad de la imagen */
    filter: brightness(0.7); /* Oscurece la imagen de fondo */
}


/* ===== RESPONSIVE DESIGN ===== */

/* Tablets (hasta 992px) */
@media screen and (max-width: 992px) {
    /* Sección Estrategia */
    .estrategia {
        flex-direction: column;
        padding: 80px 20px 30px;
    }
    .estrategia-section-header{
        margin-top: 60px;
    }
    .estrategia-left-column, 
    .estrategia-right-column {
        flex: 1;
        width: 100%;
        padding-right: 0;
    }

    .estrategia-image-container {
        height: 450px;
        margin-bottom: 30px;
    }

    /* Sección Meta */
    .meta-section {
        flex-direction: column;
        padding: 40px 20px;
    }

    .meta-left-column {
        padding-right: 0;
        margin-bottom: 30px;
    }

    .meta-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    /* Slider */
    .slider-container {
        height: 500px;
    }

    .slider-title h1 {
        font-size: 42px;
    }

    .slider-title h2 {
        font-size: 20px;
    }

    /* Servicios */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Móviles grandes (hasta 768px) */
@media screen and (max-width: 768px) {
    /* Sección Estrategia */

    .estrategia h1 {
        font-size: 24px;
    }

    .estrategia-image-container {
        height: 350px;
    }

    /* Sección Meta */
    .meta-right-column {
        padding: 20px;
    }

    .meta-title {
        font-size: 28px;
    }

    /* Slider */
    .slider-container {
        height: 400px;
    }

    .slider-title h1 {
        font-size: 36px;
        letter-spacing: 4px;
    }

    .slider-title h2 {
        font-size: 18px;
        letter-spacing: 6px;
    }

    .slider-line.line-1 {
        width: 140px;
    }

    .slider-line.line-2 {
        width: 190px;
    }

    .slider-line.line-3 {
        width: 120px;
    }

    .slider-vertical-line {
        height: 60px;
    }

    /* Servicios */
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* Móviles pequeños (hasta 576px) */
@media screen and (max-width: 576px) {
    /* Sección Estrategia */
    .estrategia {
        padding: 50px 10px 20px;
    }
    .estrategia-section-header{
        margin-top: 70px;
    }

    .estrategia-section-title {
        font-size: 16px;
    }

    .estrategia-image-container {
        height: 250px;
    }

    .estrategia-btn {
        padding: 10px 20px;
        font-size: 12px;
    }

    /* Sección Meta */
    .meta-section {
        padding: 30px 10px;
    }

    .meta-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .meta-card {
        margin-bottom: 25px;
    }

    /* Slider */
    .slider-container {
        height: 350px;
    }

    .slider-title h1 {
        font-size: 28px;
        letter-spacing: 3px;
    }

    .slider-title h2 {
        font-size: 16px;
        letter-spacing: 4px;
    }

    .cta-button {
        padding: 15px 25px;
        font-size: 12px;
    }

    .slider-controls {
        bottom: 10px;
        right: 10px;
    }

    /* Servicios */
    .services-container {
        padding: 40px 10px 20px;
    }

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

    .service-card {
        height: 120px;
    }

    .icon {
        width: 25px;
        height: 30px;
    }

    .service-card h4 {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-title::after {
        width: 60px;
        margin: 15px auto 0;
    }

    .section-title:hover::after {
        width: 90px;
    }

    .section-subtitle {
        margin-bottom: 30px;
    }
}

/* Para dispositivos muy pequeños (hasta 375px) */
@media screen and (max-width: 375px) {
    /* Sección Estrategia */
    .estrategia h1 {
        font-size: 22px;
    }

    .estrategia-image-container {
        height: 200px;
    }

    /* Slider */
    .slider-container {
        height: 300px;
    }

    .slider-title h1 {
        font-size: 24px;
    }

    .slider-title h2 {
        font-size: 14px;
    }

    /* Servicios */
    .services-grid {
        grid-template-columns: 1fr; /* Una sola columna para dispositivos muy pequeños */
    }

    .service-card {
        height: 100px;
    }
}

/* Orientación horizontal en móviles */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .slider-container {
        height: 250px;
    }
    .estrategia-section-header{
        margin-top: 90px;
    }
    .estrategia {
        padding-top: 40px;
    }

    .slider-title h1 {
        font-size: 22px;
    }

    .slider-title h2 {
        font-size: 12px;
    }
}