/* --- Agencia Hero --- */
.agencia-hero {
    background-color: #000;
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://igraphic.com.mx//img/banner-igraphic.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.agencia-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.agencia-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* --- Sección Autoridad Visual --- */
.agencia-autoridad-visual {
    padding: 100px 0;
    background-color: #fff;
}

.agencia-autoridad-visual .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.autoridad-grid {
    display: flex;
    align-items: center;
    gap: 50px;
}

.autoridad-img {
    flex: 1;
}

.autoridad-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 20px 20px 0px #f4f4f4; /* Detalle visual de diseño */
}

.autoridad-texto {
    flex: 1;
}

.autoridad-texto h2 {
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #000;
}

.autoridad-texto p {
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.autoridad-texto .btn-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 700;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
    transition: 0.3s;
}

.autoridad-texto .btn-link:hover {
    color: #555;
    border-color: #555;
}

/* --- Responsivo --- */
@media (max-width: 991px) {
    .autoridad-grid {
        flex-direction: column;
        gap: 40px;
    }
    
    .autoridad-img, .autoridad-texto {
        width: 100%;
        text-align: center;
    }

    .autoridad-img img {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .agencia-autoridad-visual {
        padding: 60px 0;
    }
    
    .autoridad-texto h2 {
        font-size: 1.8rem;
    }



/* --- Sección Servicios Grid (SOLO CSS) --- */
.agencia-servicios-grid {
    padding: 80px 0;
    background-color: #f4f4f4;
    width: 100%;
}

.agencia-servicios-grid .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.servicios-header {
    text-align: center;
    margin-bottom: 50px;
}

.servicios-header h2 {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #000;
}

.servicios-header p {
    font-size: 1.2rem;
    color: #666;
}

/* Contenedor de las tarjetas */
.grid-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* La Tarjeta de cada servicio */
.servicio-card-item {
    background: #ffffff;
    flex: 1 1 calc(33.333% - 40px); /* Esto obliga a que sean 3 columnas */
    min-width: 300px;
    padding: 40px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #e1e1e1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-box {
    margin-bottom: 20px;
    font-size: 40px;
    color: #000;
}

.servicio-card-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #000;
}

.servicio-card-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}


/* --- Sección Servicios Grid (SOLO CSS) --- */
.agencia-servicios-grid {
    padding: 80px 0;
    background-color: #f4f4f4;
    width: 100%;
}

.agencia-servicios-grid .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.servicios-header {
    text-align: center;
    margin-bottom: 50px;
}

.servicios-header h2 {
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #000;
}

.servicios-header p {
    color: #666;
}

/* Contenedor de las tarjetas */
.grid-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* La Tarjeta de cada servicio */
.servicio-card-item {
    background: #ffffff;
    flex: 1 1 calc(33.333% - 40px); /* Esto obliga a que sean 3 columnas */
    min-width: 300px;
    padding: 40px;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #e1e1e1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-box {
    margin-bottom: 20px;
    font-size: 40px;
    color: #000;
}

.servicio-card-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #000;
}

.servicio-card-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

/* --- Responsivo de Servicios --- */

/* Tablets (2 columnas) */
@media (max-width: 1024px) {
    .servicio-card-item {
        flex: 1 1 calc(50% - 20px); /* Ajusta a dos columnas */
    }
    
    .servicios-header h2 {
        font-size: 2.5rem;
    }
}

/* Celulares (1 columna) */
@media (max-width: 768px) {
    .agencia-servicios-grid {
        padding: 60px 0;
    }

    .servicios-header h2 {
        font-size: 2rem;
    }

    .grid-contenedor {
        gap: 15px;
    }

    .servicio-card-item {
        flex: 1 1 100%; /* Ocupa todo el ancho disponible */
        padding: 30px 20px;
        min-width: unset;
    }

    .servicios-header p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
}


/* --- Sección Metodología --- */
.agencia-metodología {
    padding: 100px 0;
    background-color: #ffffff;
    width: 100%;
}

.agencia-metodología .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.metodologia-header {
    text-align: center;
    margin-bottom: 70px;
}

.metodologia-header h2 {
    font-weight: 800;
    text-transform: uppercase;
    color: #000;
}

.metodologia-header p {
    color: #666;
    margin-top: 10px;
}

/* Contenedor de Pasos */
.proceso-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

/* Item Individual */
.paso-item {
    display: flex;
    align-items: flex-start;
    flex: 0 1 calc(50% - 40px); /* 2 columnas en desktop para mejor lectura */
    gap: 20px;
    margin-bottom: 20px;
}

.paso-numero {
    font-size: 3rem;
    font-weight: 900;
    color: #eee; /* Color tenue para el número de fondo */
    line-height: 1;
    transition: 0.3s;
}

.paso-item:hover .paso-numero {
    color: #000; /* Resalta al pasar el mouse */
}

.paso-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #000;
}

.paso-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

/* --- Responsivo --- */

/* Tablets */
@media (max-width: 991px) {
    .paso-item {
        flex: 0 1 100%; /* Una columna para que el texto respire */
        max-width: 700px;
        margin: 0 auto 30px;
    }
}

/* Celulares */
@media (max-width: 768px) {
    .agencia-metodología {
        padding: 60px 0;
    }

    .metodologia-header h2 {
        font-size: 2rem;
    }

    .paso-numero {
        font-size: 2.2rem;
    }

    .paso-content h3 {
        font-size: 1.3rem;
    }
}

/* --- Sección Story Directo --- */
.agencia-story-directo {
    padding: 100px 0;
    background-color: #fff;
}

.agencia-story-directo .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.story-grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 20px 20px 0px #f4f4f4; /* Detalle elegante pero sobrio */
}

.story-text {
    flex: 1.2;
}

.tagline {
    color: #000;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}

.story-text h2 {
    font-weight: 800;
    line-height: 1.1;
    color: #000;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.story-text p {
    line-height: 1.7;
    color: #333;
    margin-bottom: 20px;
}

.story-text p strong {
    color: #000;
}

.story-cta-box {
    margin-top: 30px;
    padding: 20px;
    background: #f9f9f9;
    border-left: 5px solid #000;
}

/* --- Responsivo --- */
@media (max-width: 991px) {
    .story-grid {
        flex-direction: column;
        gap: 40px;
    }
    
    .story-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .agencia-story-directo {
        padding: 60px 0;
    }
    
    .story-text h2 {
        font-size: 2rem;
    }
}



/***************************** Modal tienda*************************************/
/* 3. Filtros Estilizados */
.filter-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.btn-filter {
    padding: 10px 20px;
    border: 1px solid #6a1b9a;
    background: #fff;
    color: #6a1b9a;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-filter:hover, .btn-filter.active {
    background: #6a1b9a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(106, 27, 154, 0.3);
}

/* 4. Grid de Productos */
.grid-productos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    min-height: 600px;
    align-items: start;
}

/* 5. Card de Producto */
.producto-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.producto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #6a1b9a;
}

.producto-img {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #f4f4f4;
}

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

.producto-card:hover .producto-img img {
    transform: scale(1.1);
}

.cat-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #6a1b9a;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.producto-body h3 {
    font-size: 1.25rem;
    color: #222;
    margin-bottom: 10px;
    line-height: 1.3;
}

.producto-body p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 20px;
}

.producto-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f9f9f9;
    margin-top: auto;
}

.precio {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
}

/* Estilo para el botón "Ver Detalles" en la card */
.btn-ver-producto {
    text-decoration: none;
    color: #6a1b9a;
    font-weight: 700;
    font-size: 0.85rem;
    border: 1.5px solid #6a1b9a;
    padding: 8px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-ver-producto:hover {
    background: #6a1b9a;
    color: #fff;
}

/* =========================================
   6. LIGHTBOX / MODAL STYLES
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none; /* Se activa con JS */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
    padding: 20px;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 900px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    animation: modalAppear 0.4s ease;
}

@keyframes modalAppear {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 35px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.modal-img img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
}

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

.modal-info h2 {
    font-size: 2rem;
    margin: 10px 0 20px;
    color: #333;
}

.modal-description-text {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1rem;
}

.modal-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn-wa-tienda {
    background: #25d366;
    color: #fff;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.3s ease;
}

.btn-wa-tienda:hover {
    background: #128c7e;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
    .modal-grid { grid-template-columns: 1fr; }
    .modal-img { height: 300px; }
    .modal-img img { min-height: 300px; }
    .modal-info { padding: 25px; }
}

@media (max-width: 768px) {
    .tienda-hero h1 { font-size: 2.2rem; }
    .hero-stats { flex-direction: column; gap: 10px; }
    .grid-productos { grid-template-columns: 1fr; }
}