/* ==========================================================================
   Adhequim Materias Primas Grid Stylesheet
   ========================================================================== */

/* Wrapper Principal */
.adhequim-mp-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* Cabecera de la Sección */
.adhequim-mp-header {
    text-align: left;
    margin-bottom: 48px;
    max-width: 800px;
}

.adhequim-mp-header-title {
    font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.22;
    color: #060a17;
    margin: 0 0 16px 0;
    text-wrap: balance;
    letter-spacing: -0.01em;
}

.adhequim-mp-header-desc {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15.5px;
    line-height: 1.625;
    color: #64748b;
    margin: 0;
    text-wrap: balance;
}

/* Cuadrícula CSS Grid */
.adhequim-mp-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 24px;
    width: 100%;
}

/* Tarjeta Base */
.adhequim-mp-card {
    position: relative;
    border-radius: 20px;
    padding: 40px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    z-index: 1;
}

.adhequim-mp-card-title,
.adhequim-mp-card-desc,
.adhequim-mp-card-icon,
.adhequim-mp-card-icon i,
.adhequim-mp-card-icon svg {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}


/* Anchos de Tarjeta (Escritorio) */
.adhequim-mp-card-wide {
    grid-column: span 6; /* 60% */
}

.adhequim-mp-card-narrow {
    grid-column: span 4; /* 40% */
}

.adhequim-mp-card-full {
    grid-column: span 10; /* 100% */
}

/* Contenido Interno con Z-Index superior a la marca de agua */
.adhequim-mp-card-icon,
.adhequim-mp-card-content {
    position: relative;
    z-index: 2;
}

/* Icono en Círculo Pequeño */
.adhequim-mp-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-bottom: 28px;
    flex-shrink: 0;
}

.adhequim-mp-card-icon i,
.adhequim-mp-card-icon svg {
    font-size: 15px;
    width: 1em;
    height: 1em;
}

/* Textos de Tarjeta */
.adhequim-mp-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.adhequim-mp-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.55;
    margin: 0;
    max-width: 440px;
}

/* Marca de Agua en Fondo (Icono Gigante) */
.adhequim-mp-watermark {
    position: absolute;
    right: -24px;
    bottom: -36px;
    line-height: 1;
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.adhequim-mp-watermark i,
.adhequim-mp-watermark svg {
    font-size: 180px;
    width: 1em;
    height: 1em;
}

/* ==========================================================================
   Temas de Tarjeta (Claro / Oscuro)
   ========================================================================== */

/* Tema Claro (Blanco) */
.adhequim-mp-card-theme-light {
    background-color: #ffffff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.02), 0 1px 4px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.adhequim-mp-card-theme-light .adhequim-mp-card-title {
    color: #060a17;
}

.adhequim-mp-card-theme-light .adhequim-mp-card-desc {
    color: #64748b;
}

.adhequim-mp-card-theme-light:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.04);
}

/* Tema Oscuro (Azul Marino) */
.adhequim-mp-card-theme-dark {
    background-color: #0b1536;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.adhequim-mp-card-theme-dark .adhequim-mp-card-title {
    color: #ffffff;
}

.adhequim-mp-card-theme-dark .adhequim-mp-card-desc {
    color: rgba(255, 255, 255, 0.72);
}

.adhequim-mp-card-theme-dark:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(11, 21, 54, 0.28);
    border-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Diseño Responsivo (Media Queries)
   ========================================================================== */

@media (max-width: 1024px) {
    .adhequim-mp-header-title {
        font-size: 32px;
    }
    
    /* En tabletas cambiamos a una rejilla simétrica de 2 columnas */
    .adhequim-mp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .adhequim-mp-card-wide,
    .adhequim-mp-card-narrow,
    .adhequim-mp-card-full {
        grid-column: span 1;
    }
    
    /* Si hay un elemento impar al final (ej. si son 3 tarjetas), o si el usuario quiere que una sea full,
       permitimos que la marcada como full ocupe las 2 columnas */
    .adhequim-mp-card-full {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .adhequim-mp-header {
        margin-bottom: 32px;
    }
    
    .adhequim-mp-header-title {
        font-size: 28px;
    }
    
    .adhequim-mp-header-desc {
        font-size: 14.5px;
    }

    /* En móviles se apilan en 1 sola columna vertical */
    .adhequim-mp-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .adhequim-mp-card-wide,
    .adhequim-mp-card-narrow,
    .adhequim-mp-card-full {
        grid-column: span 1;
    }
    
    .adhequim-mp-card {
        padding: 30px;
        min-height: auto;
    }
    
    .adhequim-mp-card-icon {
        margin-bottom: 20px;
    }
}
