/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,500;1,900&display=swap');

/* Variables CSS */
:root {
    --color-primary: #920cf4;
    --color-secondary: #162938;
    --color-white: #ffffff;
    --color-black: #000000;
    --font-primary: 'Poppins', sans-serif;
    --transition: transform 0.5s;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-secondary);
    justify-content: center;
    align-items: center;
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-secondary);
}

/* Estilos de navegación */
#main-nav {
    background: var(--color-secondary);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 80px;
    width: auto;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a  {
    color: var(--color-white);
    font-size: 1.1em;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -3px;
    left: 0;
    background-color: var(--color-white);
    transform-origin: right;
    transform: scaleX(0);
    transition: var(--transition);
}

.nav-links a:hover::after {
    transform-origin: left;
    transform: scaleX(1);
}

.nav-links .active {
    color: var(--color-primary);
    font-weight: bold;
    position: relative;
}

.nav-links .active::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    bottom: -3px;
    left: 0;
    background: var(--color-primary);
    border-radius: 3px;
    transform-origin: left;
    transform: scaleX(1);
    transition: var(--transition);
}

.nav-links .cta-button {
    background: transparent;
    border: 2px solid var(--color-white);
    cursor: pointer;
    color: var(--color-white);
    border-radius: 30px;
    transition: 0.5s;
}

.nav-links .cta-button:hover {
    background: var(--color-white);
    color: var(--color-secondary);
}

.nav-links .cta-button::after {
    display: none;
}

/* Menú hamburguesa para móvil */
.menu-hamburguesa {
    display: none;
    cursor: pointer;
}

.menu-hamburguesa span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    margin: 6px 0;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .menu-hamburguesa {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-secondary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }
}

/* Botones y CTAs */
.cta-button {
    background: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.cta-button:hover {
    background: var(--color-white);
    color: var(--color-secondary);
    transform: translateY(-4px);
}

/* Hero Section */
.hero {
    background: url("../images/background.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    top: 100px;
}

.hero-content {
    color: var(--color-white);
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero .cta-button {
    box-shadow: 0 0 20px rgba(146, 12, 244, 0.7);
}

.hero .cta-button:hover {
    transform: scale(1.05);
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 0 25px rgba(146, 12, 244, 0.8);
    transition: all 0.3s ease-in-out;
}


/* Secciones generales */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 5rem 0;
}

h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--color-white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.featured-cases {
    background: var(--color-white);
    color: var(--color-secondary);
}


/* Cards y grids */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background: var(--color-white);
    border: 1px solid var(--color-secondary);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-card img {
    filter: contrast(1.1) saturate(1.2);
    max-width: 80px;
    height: auto;
    border-radius: 10px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.service-card .learn-more {
    text-decoration: none;
    font-weight: bold;
    color: var(--color-primary);
}

.service-card .learn-more:hover {
    text-decoration: underline;
}

.services-cta {
    text-align: center;
    margin-top: 3rem;
}

.secondary-button {
    background: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.secondary-button:hover {
    transform: scale(1.05);
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 0 25px rgba(146, 12, 244, 0.8);
    transition: all 0.3s ease-in-out;
}

/* Sección de Clientes */
.trusted-clients {
    padding: 2rem 1rem;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra elementos en el eje transversal */
}

.trusted-clients .container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex; /* Añadido para centrar contenido interno */
    flex-direction: column;
    align-items: center; /* Centra el contenido horizontalmente */
}

.trusted-clients .container h2 {
    text-align: center; /* Cambiado a center */
    margin-bottom: 1.5rem;
    color: var(--color-secondary);
}

.trusted-clients .container p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: center; /* Cambiado a center */
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.2rem;
    align-items: center;
    justify-items: center; /* Centra los items en sus celdas */
    width: 100%; /* Asegura que ocupe todo el ancho disponible */
}

.clients-grid img {
    width: 100%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    display: block; /* Ayuda a centrar la imagen */
    margin: 0 auto; /* Centra la imagen horizontalmente */
}

/* Media Queries */
@media screen and (min-width: 768px) {
    .trusted-clients {
        flex-direction: row;
        justify-content: center; /* Centra elementos en pantallas grandes */
    }

    .trusted-clients .container {
        max-width: 50%;
        padding: 3rem;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}



/* Estilos específicos para la página About */
.about-hero {
    background: linear-gradient(rgba(22, 41, 56, 0.8), rgba(22, 41, 56, 0.8)), url("/metadatos/images/about-bg.jpg");
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: 100px;
}

.about-section {
    background: var(--color-white);
    padding: 5rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--color-secondary);
    text-align: left;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.values-section {
    background: var(--color-secondary);
    padding: 5rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.value-card {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

.team-section {
    background: var(--color-white);
    padding: 5rem 0;
}

.team-section .container h2 {
    color: var(--color-secondary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.team-card {
    text-align: center;
}

.team-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    object-fit: cover;
}

.team-card h3 {
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.team-card p {
    color: var(--color-primary);
}

/* Media Queries */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }

    .team-grid {
        gap: 2rem;
    }
}


/* Estilos específicos para la página de Servicios */
.services-hero {
    background: linear-gradient(rgba(22, 41, 56, 0.8), rgba(22, 41, 56, 0.8)), url("../images/services-bg.jpg");
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: 100px;
}

.main-services {
    background: var(--color-white);
    padding: 5rem 0;
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.services-intro h2 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
}

.services-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.service-detailed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.service-detailed:nth-child(even) {
    direction: rtl;
}

.service-detailed:nth-child(even) .service-content {
    direction: ltr;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    color: var(--color-secondary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.service-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-content ul {
    list-style: none;
    margin-bottom: 2rem;
}

.service-content ul li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-content ul li:before {
    content: "✓";
    color: var(--color-primary);
    position: absolute;
    left: 0;
}

.service-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Paquetes de Servicios */
.service-packages {
    background: var(--color-secondary);
    padding: 5rem 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.package-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.package-card:hover {
    transform: translateY(-10px);
}

.package-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
}

.package-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.package-card h3 {
    color: var(--color-secondary);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%; 
}

.package-subtitle {
    text-align: center; 
    width: 100%;        
    margin-bottom: 1rem; 
}

.price {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: bold;
    text-align: center; 
    width: 100%
}

.package-card ul {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.package-card ul li {
    margin-bottom: 1rem;
    color: var(--color-secondary);
}

/* FAQs */
.faq-section {
    background: var(--color-white);
    padding: 5rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.faq-section h2 {
    color: var(--color-primary);
}

.faq-item h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
    .services-hero {
        height: 50vh;
    }

    .services-intro h2 {
        font-size: 1.5rem;
    }

    .services-intro p {
        font-size: 1rem;
    }

    .service-detailed {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }

    .package-card {
        padding: 2rem 1.5rem;
    }

    .package-card h3 {
        font-size: 1.5rem;
    }

    .price {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .services-hero {
        height: 40vh;
    }

    .service-detailed {
        padding: 1rem;
    }

    .package-card {
        padding: 1.5rem 1rem;
    }

    .package-card h3 {
        font-size: 1.3rem;
    }

    .price {
        font-size: 1.8rem;
    }

    .service-image img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Asegura que las imágenes cubran el área sin perder proporción */
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
}

    

/* Estilos específicos para la página de Portafolio */
.portfolio-hero {
    background: linear-gradient(rgba(22, 41, 56, 0.8), rgba(22, 41, 56, 0.8)), url("../images/portfolio-bg.jpg");
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: 100px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.portfolio-item {
    background: var(--color-white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-10px);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    color: var(--color-secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.portfolio-content p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: #f0f0f0;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    color: var(--color-secondary);
}

.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.filter-button {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-button:hover,
.filter-button.active {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Media Queries para la página de portafolio */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-button {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}




/* Estilos mejorados para el blog */

/* Hero del blog con animación de gradiente */
.blog-hero {
    background: linear-gradient(
        135deg,
        rgba(22, 41, 56, 0.95),
        rgba(146, 12, 244, 0.85)
    ), url("/api/placeholder/1920/1080");
    background-size: cover;
    background-position: center;
    min-height: 70vh;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.blog-hero::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: linear-gradient(
        45deg,
        rgba(146, 12, 244, 0.3),
        rgba(22, 41, 56, 0.3)
    );
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% { transform: translate(-25%, -25%) rotate(0deg); }
    50% { transform: translate(-15%, -15%) rotate(180deg); }
    100% { transform: translate(-25%, -25%) rotate(360deg); }
}

.blog-hero .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

/* Sección de búsqueda mejorada */
.search-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin: -50px auto 2rem;
    max-width: 900px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.search-box {
    display: flex;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--color-secondary);
    border-radius: 30px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(146, 12, 244, 0.1);
    outline: none;
}

.search-button {
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    padding: 0 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-button:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(146, 12, 244, 0.2);
}

/* Categorías del blog */
.blog-categories {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 1rem;
}

.category-button {
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-white);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.category-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    transition: all 0.4s ease;
    z-index: -1;
}

.category-button:hover::before {
    left: 0;
}

.category-button:hover {
    color: white;
    transform: translateY(-3px);
}

.category-button.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(146, 12, 244, 0.2);
}

/* Grid de posts del blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Tarjetas de blog mejoradas */
.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-image {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.blog-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    transition: all 0.5s ease-in-out;
}

.blog-card:hover .blog-image img {
    transform: translate(-50%, -50%) scale(1.05);
    filter: brightness(1.1);
}

.blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.05) 100%
    );
    transition: opacity 0.3s ease;
}

.blog-card:hover .blog-image::after {
    opacity: 0.8;
}


.blog-content {
    padding: 2rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-title {
    color: var(--color-secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-title {
    color: var(--color-primary);
}

.blog-excerpt {
    color: var(--color-text);
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

.read-more {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 3px;
}

.read-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.read-more:hover::after {
    width: 100%;
}

.read-more:hover {
    gap: 0.8rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .blog-hero {
        min-height: 60vh;
    }
    
    .search-section {
        margin: -30px 1rem 2rem;
        padding: 1.5rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 2rem;
    }
    
    .blog-categories {
        padding: 0 0.5rem;
    }

    .blog-image {
        padding-top: 66.67%; /* Ratio 3:2 para móviles */
    }
    
    .category-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (min-width: 1200px) {
    .blog-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .blog-image {
        padding-top: 56.25%; /* Mantiene ratio 16:9 en pantallas grandes */
    }
}




/* Estilos mejorados para el contenedor del post */
.post-hero {
    padding-top: 200px;
    min-height: calc(70vh + 80px);
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(123, 58, 237, 0.8)),
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.05),
            rgba(255, 255, 255, 0.05) 10px,
            transparent 10px,
            transparent 20px
        );
    margin-top: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-blend-mode: overlay; /* Mezcla las capas */
}

.post-container {
    max-width: 900px;
    margin: -100px auto 60px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.post-header-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 24px 24px 0 0;
    border-bottom: 4px solid #7C3AED;
}

.post-content {
    padding: 3rem;
}

/* Meta información mejorada */
.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.post-meta-left {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #7C3AED;
    padding: 2px;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.author-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
}

.post-date {
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Etiquetas de categoría mejoradas */
.post-categories {
    display: flex;
    gap: 0.8rem;
}

.category-tag {
    background: #7C3AED;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(124, 58, 237, 0.2);
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* Título del post mejorado */
.post-title {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Contenido principal mejorado */
.post-body {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #334155;
    text-align: justify;
}

.post-body p {
    margin-bottom: 2rem;
}

.post-body h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: #0f172a;
    font-weight: 700;
}

.post-body h3 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    color: #0f172a;
    font-weight: 600;
}

/* Sección de compartir mejorada */
.share-section {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 2px solid #f1f5f9;
}

.share-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #0f172a;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.share-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.share-button.facebook {
    background: #1877F2;
}

.share-button.twitter {
    background: #1DA1F2;
}

.share-button.linkedin {
    background: #0A66C2;
}

.share-button.whatsapp {
    background: #25D366;
}

/* Posts relacionados mejorados */
.related-posts {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid #f1f5f9;
}

.related-posts-title {
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
    color: #0f172a;
    font-weight: 700;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.related-post-card {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.related-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.related-post-content {
    padding: 1.8rem;
}

.related-post-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.4;
}

.related-post-excerpt {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .post-container {
        margin: -50px 1rem 40px;
        border-radius: 20px;
    }
    
    .post-content {
        padding: 2rem;
    }
    
    .post-header-image {
        height: 300px;
    }
    
    .post-title {
        font-size: 2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .share-button {
        min-width: 160px;
        justify-content: center;
    }
}


/* Estilos específicos para la página de contacto */
.contact-hero {
    background: linear-gradient(rgba(22, 41, 56, 0.8), rgba(22, 41, 56, 0.8)), url("../images/contact-bg.jpg");
    background-size: cover;
    background-position: center;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem;
    margin-top: 100px;
}

.contact-section {
    background: var(--color-white);
    padding: 5rem 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-info {
    padding: 2rem;
    background: var(--color-secondary);
    border-radius: 20px;
    color: var(--color-white);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-white);
}

.contact-details {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-details i {
    color: var(--color-primary);
    font-size: 1.5rem;
}

.contact-form {
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(146, 12, 244, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(146, 12, 244, 0.3);
}

.map-section {
    padding: 5rem 0;
    background: #f8f9fa;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.map-frame {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        order: 2;
    }
    
    .contact-form {
        order: 1;
    }
}


/* Servicios detallados */

/* Hero Section */

.service-overview {
   margin-top: 100px;

}

.service-overview h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.2;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.service-overview p {
    padding: 0 10vh;
    font-size: 1.2rem;
    color: var(--color-white);
    text-align: justify;
}

/* Características del Servicio */
.service-features {
    background: var(--color-secondary);
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--color-white);
    color: var(--color-secondary);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Proceso de Trabajo */
.work-process {
    background: var(--color-white);
    padding: 4rem 0;
}

.work-process h2 {
    color: var(--color-secondary);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    background: var(--color-secondary);
    color: var(--color-white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.process-step .step-number {
    background: var(--color-primary);
    color: var(--color-white);
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

.process-step h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.process-step p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Planes y Precios */
.service-plans {
    background: var(--color-secondary);
    padding: 5rem 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.plan-card {
    background: var(--color-white);
    color: var(--color-secondary);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.plan-card .price {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.plan-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 1rem 0;
    min-height: 300px;
}

.plan-card ul li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.plan-card .cta-button {
    margin-top: 1rem;
}

.plan-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
}

.plan-card.featured .plan-badge {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    position: absolute;
    top: -10px;
    right: 20px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Portafolio */
.portfolio-preview {
    background: var(--color-white);
    padding: 4rem 0;
}

.portfolio-preview h2 {
    color: var(--color-secondary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-cta {
    text-align: center;
    margin-top: 2rem;
}

/* FAQs */
.service-faqs {
    background: var(--color-secondary);
    padding: 4rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: var(--color-white);
    color: var(--color-secondary);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.faq-item h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.6;
}







/* Estilo para la sección de Call To Action */
.cta-section {
    background: linear-gradient(rgba(22, 41, 56, 0.9), rgba(22, 41, 56, 0.9)), url("../images/call.svg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: gradient 8s ease infinite;
}

.cta-section .container {
    position: relative;
    background: rgba(146, 12, 244, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.cta-section h2 {
    color: var(--color-white);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section p {
    color: var(--color-white);
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-section .cta-button {
    background: var(--color-primary);
    color: var(--color-white);
    cursor: pointer;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.cta-section .cta-button:hover {
    transform: scale(1.05);
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 0 25px rgba(146, 12, 244, 0.8);
    transition: all 0.3s ease-in-out;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}




/* Footer Styles */
footer {
    background: var(--color-secondary);
    color: var(--color-white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    color: var(--color-white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

/* Estilos para los íconos sociales */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--color-white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(146, 12, 244, 0.3);
}

.social-links i {
    font-size: 1.2rem;
}

/* Estilos específicos para cada red social */
.social-links a:nth-child(1):hover { /* WhatsApp */
    background: #25D366;
}

.social-links a:nth-child(2):hover { /* LinkedIn */
    background: #0077B5;
}

.social-links a:nth-child(3):hover { /* Instagram */
    background: #E4405F;
}

.social-links a:nth-child(4):hover { /* Facebook */
    background: #1877F2;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}


/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none; /* Se manejará con JavaScript */
    }

    .menu-hamburguesa {
        display: block;
    }
}

/* Efectos y animaciones */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}