/* Estilos generales */
* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-decoration: none;
}
:root {
    --color-Verde: #00A651;
    --color-Azul: #0047BB;
    --color-Magenta: #ED008C;
    --color-Morado: #652D90;
    --color-Turquesa: #00B0B9;
}
.verde {
    color: var(--color-Verde)
}.azul {
    color: var(--color-Azul)
}.magenta {
    color: var(--color-Magenta)
}.morado {
    color: var(--color-Morado)
}.turquesa {
    color: var(--color-Turquesa)
}
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: #101820;
    /* Negro corporativo */
    background-color: white;
}

/* Header */
.service-header {
    background-color: #101820;
    /* Negro corporativo */
    color: white;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.service-header-container {
    max-width: 1024px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    /* Aqua corporativo */
    text-decoration: none;
    margin-bottom: 2rem;
}

.back-link:hover {
    color: var(--color-Morado)
}

.back-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.service-header-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.service-header-content p {
    font-size: 1.25rem;
    line-height: 1.75rem;
    color: #d1d5db;
    /* Gris claro */
    max-width: 42rem;
}

/* Sección de Servicios */
.service-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.service-container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.service-grid {
    display: grid;
    gap: 1rem;
    margin: 0 auto;
}

@media (min-width: 768px) {

    .service-header-content h1 {
            font-size: 3rem;
        }
    /* Nuevo breakpoint para tablets */
    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 800px;
    }
}

.service-card {
    background-color: #f9fafb;
    /* Gris claro */
    padding: 2rem;
    border-radius: .5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    /* Aqua corporativo */
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 1rem;
    color: #6b7280;
    /* Gris corporativo */
}
.bg-color-verde{
    background-color: #00A651;
}
.bg-color-azul {
    background-color: #0047BB;
}
.bg-color-morado {
    background-color: #652D90;
}
.bg-color-turquesa {
    background-color: #00B0B9;
}
/* Sección de CTA */
.cta-section {
    /* Aqua corporativo */
    color: white;
    padding: 80px 0;
    text-align: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}



.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.cta-container h2{
    font-weight: 700;
    font-size: 1.875rem;
    line-height: 2.25rem;
    margin-bottom: 1.5rem;
}
.cta-container p{
    font-size: 1.25rem;
    line-height: 1.75rem;
    max-width: 42rem;
    margin-bottom: 2rem;
}
.cta-button{
        transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 150ms;
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        padding-left: 2rem;
        padding-right: 2rem;
        background-color: rgb(255 255 255);
        border-radius: 9999px;
        display: inline-block;
        text-decoration: none;
}
.cta-button:hover{
    color: #652D90;
    background-color: rgb(16 24 32);
        transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
        transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
        transition-duration: 200ms;
}
/* Estilos generales para el footer */
.footer {
    background-color: rgb(16 24 32);
    /* Negro corporativo */
    color: white;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Contenedor de columnas */
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Estilos para cada columna */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: start;
}

.footer-logo {
    height: 3rem;
    margin-bottom: 1rem;
    max-width: 100%;
    display: block;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.5rem;
    color: #9ca3af;
    /* Gris claro */
}

.footer-title {
    font-size: 1.25rem;
    line-height: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 1rem;
}

.footer-link {
    font-size: 1rem;
    color: #9ca3af;
    /* Gris claro */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #00B0B9;
    /* Aqua corporativo */
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social-link {
    background-color: rgba(255, 255, 255, 0.1);
    /* Fondo semi-transparente */
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.footer-social-link:hover {
    background-color: #00B0B9;
    /* Aqua corporativo */
}

.footer-social-icon {
    width: 20px;
    height: 20px;
    color: white;
}

/* Línea divisoria y derechos reservados */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Línea divisoria */
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer-copyright {
    font-size: 0.875rem;
    color: #9ca3af;
    /* Gris claro */
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal-link {
    font-size: 0.875rem;
    color: #9ca3af;
    /* Gris claro */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-link:hover {
    color: #00B0B9;
    /* Aqua corporativo */
}

/* Responsividad */
@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ============================================= */
/* === CSS PARA LA SECCIÓN "CASO DE ESTUDIO DESTACADO" === */
/* ============================================= */

.featured-case-study {
    padding: 80px 0;
    background-color: #f9fafb;
    /* Fondo gris claro para crear contraste con la sección anterior */
}

.case-study-container {
    max-width: 900px;
    /* Ancho máximo para mantener la legibilidad */
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.case-study-container h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #101820;
    /* Negro corporativo */
    margin-bottom: 16px;
}

.case-study-container p {
    font-size: 1rem;
    color: #6b7280;
    /* Gris corporativo */
    max-width: 600px;
    margin: 0 auto 48px;
    /* Margen inferior para separar del card */
}

.case-study-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    /* Sombra sutil */
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Dos columnas: imagen e info */
    text-align: left;
    /* Alineamos el texto a la izquierda dentro de la tarjeta */
    overflow: hidden;
    /* Para que la imagen respete los bordes redondeados */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-study-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* La imagen cubre todo el espacio disponible */
}

.case-study-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.case-study-info h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #101820;
    margin-bottom: 12px;
}

.case-study-info p {
    font-size: 1rem;
    color: #6b7280;
    margin: 0 0 24px 0;
    /* Reiniciamos márgenes y añadimos inferior */
    max-width: 100%;
    /* El párrafo puede ocupar todo el ancho */
    line-height: 1.6;
}

.case-study-button {
    display: inline-block;
    /* Cambiado para que respete márgenes */
    align-self: flex-start;
    /* Se alinea a la izquierda */
    background-color: #ED008C;
    /* ROJO/MAGENTA para acción de portafolio */
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.case-study-button:hover {
    background-color: #652D90;
    /* MORADO en hover */
    transform: scale(1.05);
}


/* --- Responsividad para la sección de Caso de Estudio --- */

@media (max-width: 768px) {
    .featured-case-study {
        padding: 60px 0;
    }

    .case-study-card {
        grid-template-columns: 1fr;
        /* Una sola columna en móviles */
    }

    .case-study-card img {
        height: 250px;
        /* Altura fija para la imagen en móvil */
    }

    .case-study-info {
        padding: 30px;
    }

    .case-study-info h3 {
        font-size: 1.25rem;
    }
}

/* =================================================== */
/* === CSS ADICIONAL PARA VIDEO DESTACADO === */
/* =================================================== */

.video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* Proporción 16:9 para videos (9 / 16 = 0.5625) */
    margin: 3rem auto 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-context {
    max-width: 700px;
    margin: 2.5rem auto 0;
    text-align: center;
}

.video-context h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #101820;
    margin-bottom: 1rem;
}

.video-context p {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* El botón .case-study-button ya tiene estilos, pero lo centramos aquí */
.video-context .case-study-button {
    display: inline-block;
    align-self: center;
    /* Asegura centrado si es flex */
}

   /* Blog */
.blog-hero {
    padding: 140px 20px 80px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    text-align: center;
}

.blog-hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 20px;
}

.blog-hero p {
    font-size: 20px;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-button {
    padding: 10px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: #cbd5e1;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover {
    border-color: #667eea;
    color: #ffffff;
}

.filter-button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #ffffff;
}

.blog-main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.featured-post {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 500px;
    margin-bottom: 60px;
    cursor: pointer;
}

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

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(16, 24, 32, 0.95) 0%, rgba(16, 24, 32, 0.7) 60%, transparent 100%);
    padding: 60px 40px 40px;
}

.featured-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
}

.featured-post h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.featured-post p {
    font-size: 18px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #94a3b8;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
}

.post-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.post-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.post-content {
    padding: 24px;
}

.post-tag {
    display: inline-block;
    background: rgba(102, 126, 234, 0.2);
    color: #94a3b8;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.post-card h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card .excerpt {
    font-size: 15px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: #94a3b8;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #667eea;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 10px;
}

.navbar-simple {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(16, 24, 32, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    padding: 20px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 40px;
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-back:hover {
    color: #ffffff;
    gap: 12px;
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 36px;
    }

    .blog-hero p {
        font-size: 16px;
    }

    .featured-post {
        height: 400px;
    }

    .featured-overlay {
        padding: 40px 24px 24px;
    }

    .featured-post h2 {
        font-size: 28px;
    }

    .posts-grid {
        grid-template-columns: 1fr;
    }

    .navbar-simple {
        padding: 16px 20px;
    }
}

.hidden {
    display: none;
}
/* ============================================= */
/* === ESTILOS PARA EL AVISO DE COOKIES === */
/* ============================================= */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #101820;
    /* Tu negro corporativo */
    color: #f9fafb;
    /* Texto blanco/gris claro */
    padding: 20px 40px;
    z-index: 9999;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    /* Empieza oculto abajo */
    transition: transform 0.5s ease-in-out;
}

.cookie-banner.show {
    transform: translateY(0);
    /* Se desliza hacia arriba */
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    /* Ancho máximo consistente con tu sitio */
    gap: 20px;
}

.cookie-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-text a {
    color: #00B0B9;
    /* Tu color Turquesa para enlaces */
    text-decoration: underline;
    font-weight: 500;
}

.cookie-text a:hover {
    color: #652D90;
}

.cookie-banner-actions {
    flex-shrink: 0;
    /* Evita que el botón se encoja */
}

.cookie-button-accept {
    background-color: #00A651;
    /* Tu Verde Corporativo para "Aceptar" */
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cookie-button-accept:hover {
    background-color: #652D90;
    /* Tu Morado de hover */
    transform: scale(1.05);
}

/* --- Responsividad para el banner de cookies --- */

@media (max-width: 768px) {
    .cookie-banner {
        padding: 20px;
    }

    .cookie-banner-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .cookie-banner-actions {
        width: 100%;
    }

    .cookie-button-accept {
        width: 100%;
        padding: 12px;
    }
}